Toby

How To Add Extension Attribute To Order In Magento 2?

No comments

There are six simple steps to add the extension attribute to order in Magento 2: Step 1: Let’s create the extension_attributes.xml file First and foremost, you need to declare your extension attributes in one XML file: <!– etc/extension_attributes.xml –> <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”Magento\Sales\Api\Data\OrderInterface”> <attribute code=”tigren_attribute” type=”Tigren\Example\Api\Data\TigrenAttributeInterface” /> </extension_attributes> </config> By this way, you are

TobyHow To Add Extension Attribute To Order In Magento 2?
read more