Questions tagged [extension-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
4k views

How to get Extension Attribute in a model in Magento 2?

I have added an extension attribute by creating extension_attributes.xml file in etc. Its content is: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
9 views

Magento 2 get address extension attribute value in carrier collect rate model

I successfully pass the extension attribute value to estimate-shipping-method,like this: etc/extension_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3....
0
votes
0answers
12 views

Can't save to vertex_customer_code table

I have tried everything under the sun to save to the vertex_customer_code table but my data never winds up in the db. I have tried this in both an observer and plugin for the customer save event (both ...
0
votes
1answer
46 views

Add custom product attribute to Order API

I have added a custom product attribute via code, using InstallData.php public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $eavSetup = $this->...
0
votes
1answer
994 views

Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed()

I'm getting an error Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed() when running integration tests on my local development environment. For some reason it ...
0
votes
0answers
7 views

Where do scalar extension attributes save to?

Been reading the doc from Magento and i have been using extension attributes for more complex data structures but i'm basically wanting to add a simple scalar attribute <extension_attributes for=&...
0
votes
0answers
24 views

Magento 2 Adding extension attributes to Magento\Sales\Api\Data\ShipmentTrackInterface

I'm trying to add a custom track url to the trackings, using extension attributes, i added these in extension_attributes.xml <extension_attributes for="Magento\Sales\Api\Data\...
0
votes
1answer
30 views

Magento2: How to add extension attribute to rest/V1/products/attribute-sets/4/attributes

I want to add extension attribute to the default API to identify the visual and text swatches http://localhost/m2.4/rest/V1/products/attribute-sets/4/attributes API.
0
votes
0answers
29 views

Magento 2 / ShipHawk multiple warehouses

I need to extend the ShipHawk Magento 2 module so that order line items can be shipped from multiple locations. We are using Magento MSI and I have the functionality built to send the stock inventory ...
0
votes
0answers
18 views

Change display for Shipping Address Custom Attribute field

I am trying to change the display to show the label of a custom attribute in the shipping address summary when i got to the billing address form. Or would like to remove this field from showing in ...
1
vote
1answer
2k views

Magento 2 extension attribute issue for Magento\Quote\Api\Data\AddressInterface

i am trying to add extension attribute for Magento\Quote\Api\Data\AddressInterface but i am facing below issue. Message: Property "Addressfiled" does not have corresponding setter in class "Magento\...
0
votes
1answer
36 views

Trying to extend a 3rd party extension_attribute

I'm having a hard time wrapping my brain around how these extension attributes works. I sorta get how they work for an extension, but what I'm trying to do is extend a 3rd party extension's model to ...
0
votes
0answers
20 views

Magento2: Gift Option form custom field not saved

I have created some custom fields for Gift Option Form and i have created extension_attributes.xml file as well but the custom field is not getting saved.
0
votes
1answer
40 views

Module Disable/Uninstall Issue - Magento 2.4.0

I installed a module, But that was conflicting with the account dashboard, So I uninstalled that module and remove that extension folder from Code. But now my account dashboard is still not working, ...
0
votes
1answer
20 views

Get extension_attributes in Plugin

In my API response (all orders) I get this extension_attributes "extension_attributes": { "my_attributes": { "order_id": null, "company_id": ...
0
votes
0answers
15 views

Magento2 get applied fees (if any) in order

I'm updating an Invoicing module for Magento2, and I'm trying to add a block of code by which I check if in the order is applied any fee for payment, shipping, and so on. Surfing the net I found this ...
0
votes
2answers
95 views

Shipment Extension Attributes

I'm trying to set shipment extension attributes with the following XML; <extension_attributes for="Magento\Sales\Api\Data\ShipmentInterface"> <attribute code="...
9
votes
1answer
1k views

Saving custom payment field data in magento 2 through plugin not working,

I am trying to save my custom field data through plugin but it's not working. Plugin Class namespace Vendor\Module\Model\Checkout; class PaymentInformationManagementPlugin { protected $...
3
votes
1answer
925 views

Magento 2 - How get extension attributes from product collection

I need to get the product collection with all extension attributes, specifically I need then to get the stockItem object with $product->getExtensionAttributes()->getStockItem(). So I have ...
0
votes
0answers
24 views

Magento2 - Adding a new extension attribute to customer / no customer attribute

I am new to the Magento world. I would like to create a new extension attribute for Customer. The idea is for a new attribute to appear in the customer edition: favourite type of coffee. I've read the ...
2
votes
1answer
2k views

Extension attribute in quote item

Hello everyone i would like to add an extension_attribute to quote item in magento 2. I create extension attribute: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
14 views

“extension_attribute” is omitted in order item REST API Response

I am trying to add a new extension attribute to order items to be accessible in the REST API Response in OrderRespository and OrderItemRepository. Y create the etc/extension_attribute.xml and the two ...
1
vote
1answer
1k views

Adding extension attribute to customer in GraphQL Magento 2

In magento2 - I have created one extension attribute for customer using plugin, it's working fine for Rest API also. How can I include this extension attribute in GraphQL? In createCustomer mutation ...
2
votes
1answer
2k views

Extension attributes showing null value in in Magento 2

I have created one custom field in Magento 2 payment table through install schema and want to add getter and setter to the Magento\Quote\Api\Data\PaymentInterface to set and add data. ...
0
votes
0answers
17 views

Extension attribute values not being passed in post when Zero Subtotal Method activated

I am facing problem with the extension attributes: extension_attributes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1answer
2k views

create product attribute - file upload with certain extensions like pdf, csv etc

I have created custom attribute type - file upload of type ravi_file in magento2. public function execute(\Magento\Framework\Event\Observer $observer){ $response = $observer->getEvent()->...
18
votes
2answers
5k views

Magento 2 : What is difference between Extension Attributes and Custom Attributes?

I have question in my mind what is exact difference between Extension Attributes and Custom Attributes ? Any one here who can provide me some ideas ?!
0
votes
0answers
22 views

Customer Extension Attribute - Exception #0 (ReflectionException): Class object does not exist

I am trying to create an extension attribute on customer entity but running into an issue. I will omit model/resource model/collection in below example as I don't believe they are part of the problem. ...
0
votes
1answer
170 views

Magento 2.3.5-P2 : Method 'getExtensionAttributes' must be overridden in the interfaces

Recently we upgraded magento version from 2.3.2 to 2.3.5-p2. We are getting error while placing an order after update. In 2.3.2 version there is no issue. Error : report.CRITICAL: Method '...
0
votes
0answers
30 views

Magento 2 Certified: Extension Attributes

I'm prepared for Magento 2 Certified Exam, and i'm testing through this site. But i don't understand how this answers is correct Can some one explain please, i've read about the extension attribute ...
0
votes
2answers
2k views

Magento 2 order REST Api append Custom Attribute

I want to get Custom Attribute value which is already saved in database table, i just want to append it to my Sales order REST APi, i have tried adding extension attribute , i am able to get set and ...
0
votes
1answer
81 views

Payment interface extension attribute not saved in order table

I am trying to add an extension attribute in the Payment API. but value not saved in sales_order table. etc/extension_attributes.xml <extension_attributes for="Magento\Quote\Api\Data\...
0
votes
1answer
25 views

Magento 2 add custom checkbox after payment method

In checkout page, after payment methods I want to add custom checkbox and save it's value in sales_order and quote table when click on placeorder button.
2
votes
0answers
547 views

Get orders API does not include custom extension attributes

The reason is in the documentation itself: This call returns an array of objects, but detailed information about each object’s attributes might not be included. What I'm looking for is something to ...
0
votes
1answer
43 views

Extension_attribute value save in DB in magento 2

I am using Magento 2.3.4, and i created custom attibute in quote_item 'up_flag'. and throgh rest api i am passing the value of "up_flag": Post request Body for V1/carts/mine/items: {"...
0
votes
0answers
10 views

Magento 2: I want set a custom param to checkout session via API Rest

Eu criei um atributo de extensão chamado "device" para o order, agora quero setar esse atributo na sessão do checkout atraves de uma requisão API. Assim setar esse parametro no fechamento o ...
0
votes
0answers
26 views

Magento 2 Add extension attributes in order totals

I want to add a custom field in the cart totals API call /V1/guest-carts/:cartId/totals-information. The custom field value is stored in the quote table How can I do this?
0
votes
0answers
18 views

How to get attributes before adding product to the cart past api / rest?

I've been researching and testing plugins and events for more than 20 days add the customized item passed by POST /V1/carts/{quoteId}/items. { "cartItem": { "sku": "1809&...
1
vote
1answer
406 views

Where is the extensions attribute magento 2 actually save in Database?

For example, I've added an extension attribute to order <!-- etc/extension_attributes.xml --> <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
1
vote
2answers
628 views

Magento 2 add extra column in order grid using extension attribute

Thanks! for view this post. I just want to know if there is any feasibility in which we can add extra columns in grid using extension attributes? Please share your steps with me. Thanks!
1
vote
1answer
219 views

Magento 2 Extension attribute to Payment method

I want to set Extension attribute to V1/carts/mine/shipping-information API response like below. { "payment_methods": [ { "code": "braintree_cc_vault", "title": ...
1
vote
2answers
781 views

Magento 2 how add extension attribute to order item

I need to save the extension attribute for Order item. I have tried using plugin with below code, but it is not working for me. I have placed a log inside the method but the method is not working. <...
0
votes
1answer
52 views

Order Extension Attribute

I have added a custom extension attribute following this guide. However, I am struggling to understand it's purpose. By what I can see they are setting their extension attribute on the order every ...
0
votes
1answer
109 views

Difference between catalog_attributes.xml vs eav_attributes.xml vs extension_attributes.xml

In the Magento_Catalog module i have seen there are three different configuration (xml) files related to the catalog attributes, those three files are catalog_attributes.xml vs eav_attributes.xml ...
0
votes
2answers
517 views

WebP Conversion Tools optional for webp optimized image extension?

1.Are WebP Conversion Tools like GD, CWEBP OR Imagick needed if I buy the Web Optimized Images Extension, or these tools are optional? 2.In what format I need to continue upload the new images if I ...
13
votes
1answer
1k views

Magento2 : Filtering product list by extension attribute

I added a new extension attribute extensionattribute1 to Magento\Catalog\Api\Data\ProductInterface. <attribute code="extensionattribute1" type="string"> <join reference_table="...
1
vote
1answer
446 views

Magento 2 API: Extension Attribute with null value not showing

I'm retrieving from the Magento API an order by its increment_id attribute like this: http://mystore.com/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=increment_id&...
1
vote
2answers
1k views

Extra column in catalog_product_entity_tier_price not saving/updating in observer

I have added an extra column 'title' to the catalog_product_entity_tier_price table using Setup/UpdateSchema.php and an extra field to the tier price backend by overwriting Magento\Catalog\Ui\...
0
votes
0answers
33 views

How to get sales order address custom column value in order REST API magento 2.3.2 EE

We have a partner vendor they just run order REST API with the search criteria order status in processing. While they run the order REST API they get all the values related to orders and shipping ...
0
votes
0answers
19 views

How to add price_info to GET - v1/products or GET - v1/products/:sku

GET - v1/product-renders-info endpoint provides product details along with price_info (contains final_price, max_price, special_price and etc...) as a below mentioned response "price_info": { ...