Questions tagged [extension-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
23 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
28 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
20 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 ...
1
vote
1answer
46 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&...
0
votes
0answers
23 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
16 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": { ...
0
votes
0answers
20 views

Magento 2.3.5 SOAP API extension attributes as array of item

I have added an extension_attributes to Magento\Sales\Api\Data\OrderInterface this attribute is of return type mixed in interface E.G: CustomFieldInterface: /** * Get custom field * *...
0
votes
1answer
24 views

Magento 2.x.x extension attributes API add object array

Have added custom attribute to order API with following info here: https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ It adds the "customer_feedback": "this is my ...
0
votes
2answers
150 views

magento 2 extension attribute value is coming null

I an creating a customer address attribute using this code <?php namespace Ansh\CustomAddressAttribute\Setup; use Magento\Customer\Model\Customer; use Magento\Customer\Setup\CustomerSetup; use ...
1
vote
1answer
46 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!
0
votes
0answers
22 views

Magento 2 - Order Scalar Extension Attributes - Where to store

I need to store few disjoint scalar custom information on a completed sales Order in Magento 2 and display them in a completed Sales order detail view in the Magento admin and also in the Sales order ...
0
votes
1answer
28 views

Load Customer Model by Extension Attribute in Magento 2

How can I load the Customer Model and Collection by Extension Attribute in Magento 2? I've declared an extension attribute in extension_attributes.xml and saved to the Customer Model. Now, How can I ...
-1
votes
1answer
29 views

HOw to create more than one extension attribute and how to set data init magento 2.3

How to set the data in the extension attribute which i created and how to create more the one extension attribute in single module. My Following code is in below link. URL : My Following code ...
0
votes
0answers
20 views

EAV Extension attributes vs repository

What is the point of Extension attributes? As documentation says "They are used to extend functionality and often use more complex data types than custom attributes". Magento provides nice way to use ...
0
votes
0answers
15 views

How to insert/Set data to the custom extension attribute using REST API - Magento 2.3

How to set the data for extension attribute i had posted the question earlier there is solution URL : How to add the value for extension attribute
0
votes
0answers
22 views

When creating extension attribute i got this Uncaugth type error - Magento 2.3

When creating extension attribute i got this Uncaugth type error check :- "Fatal Error: 'Uncaught TypeError: Argument 1 passed to Magento\\Sales\\Api\\Data\\OrderExtension::setCustomerFeedback() ...
1
vote
1answer
102 views

How to set data for my extension attribute Magento 2.3

I can't set the value for my extension attribute , how to set the value for extension attribute using json array swagger. And i can't show the data in the order grid. The below attribute and value ...
0
votes
0answers
29 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": ...
0
votes
0answers
42 views

Magento 2 Rest Api Get Data

I have added 3 fields into Magento 2 Order Rest API using the "Extension Attributes". All these 3 fields are visible using order id call rest API: https://www.example.com/rest/default/V1/orders/...
0
votes
0answers
17 views

Magento2.3.3 - Extension attributes in PaymentInterface

I need to create some custom fields using extension attributes and I need to save them to the additional_data column from the sales_order_payment table. So how to do this ? Thanks in advance.
0
votes
0answers
17 views

How do I append an attribute field to the V1/products/attributes API call

When creating a product attribute, I have a custom property that can be assigned; it's stored as api_attribute_id. When making GET API calls to V1/products/attributes, I'd like for this data to be ...
2
votes
1answer
248 views

Extension attribute error “Call to undefined method Magento\Catalog\Api\Data\ProductExtension: : setDummyAttribute() on ProductExtension”

Error : Uncaught Error: Call to undefined method Magento\Catalog\Api\Data\ProductExtension: : setDummyAttribute() on ProductExtension in MyCompany\MyModule\Plugin\DummyAttribute" This is how I have ...
0
votes
0answers
335 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
1answer
153 views

Save payment interface extension attribute in Magento 2

My extension_attribute.xml file below: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
33 views

Magento 2: Add extension attributes to product collection

I have added extension attribute to Magento\Catalog\Api\Data\ProductInterface using extension_attrributes.xml and its getting reflected when I get product(s) using ProductRepository's get, getList and ...
0
votes
0answers
27 views

Extension attribute 'neighborhood' not working when payment method is PayPal standard

I have added an extension attribute via extension_attributes.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
50 views

Product Extension attributes is not return when request from rest api

I have created an extension attribute for a product. <extension_attributes for="Magento\Catalog\Api\Data\ProductInterface"> <attribute code="product_options" type="Sample\Module\Api\Data\...
0
votes
0answers
27 views

Adding a column in MSI Source Selection page (in ordered items dynamic rows)

I'm trying to customize MSI Order shipping source selection page (the step before shipment creation form). I need to add a column in "ordered items" dynamic rows. I was able to add my new column, but ...
0
votes
1answer
54 views

M2 | How to check extension attribute is working or not?

I created an extension attribute for customer as: Vendor/Module/etc/extension_attributes.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING....
0
votes
1answer
504 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 ...
1
vote
1answer
661 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
2answers
255 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 ...
1
vote
0answers
86 views

Magento 2.3.2 Invalid entity_type specified: Magento\Quote\Api\Data\AddressInterface on checkout

I have created a custom select field on the checkout address form. a field is displayed fine but when clicking on next button getting error "Invalid entity_type specified: Magento\Quote\Api\Data\...
0
votes
0answers
10 views

Extension attributes in order api with generic object without creating new interface

I want to add some data to order api using extension attributes. I know I can create an interface for the object I will use. But the object has variable depth. And the key names also varies. For ...
0
votes
0answers
22 views

Adding extention attribute while plasing order using knockout js in Magento 2

How to add and get extension data while placing order and extension data using knockout js and have to save extension data to quote and sales order table in Magento 2
0
votes
1answer
258 views

Extension Attributes is not working

I have added one field i.e. checksum alongwith coupon code on payment page. Now I want to get and set checksum field. I tried, etc/extension_attributes.xml <?xml version="1.0"?> <...
0
votes
0answers
756 views

Magento 2 Add extension attributes in Quote Item

I want to add custom attribute in quote items Magento\Quote\Api\Data\CartItemExtensionInterface <extension_attributes for="Magento\Quote\Api\Data\CartItemExtensionInterface"> <attribute ...
6
votes
0answers
195 views

How to pass a attribute code dynamically in extension_attributes.xml

How to pass a attribute code dynamically in extension_attributes.xml or how to save a custom field value in db in checkout page without extension_attributes extension_attributes.xml <?xml ...
0
votes
1answer
128 views

which model extend AbstractExtensibleModel by default

which model extend AbstractExtensibleModel by default so i can use extension attributes with it ?
1
vote
0answers
52 views

How i can work with extension attributes using collection?

Hello i have to add extension attributes to Magento\Catalog\Api\Data\ProductInterface So i added this one to extension_attrributes.xml: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
43 views

Extension attribute on order make a column error

I'm trying to add an extension attribute to my order entity. I've follewed this link : https://www.rakeshjesadiya.com/extension-attribute-in-order-data-magento-2/ But I can see my extension ...
0
votes
1answer
309 views

Magento 2.3 - How add new column/field to sales_shipment table

I need to add a new column/field (total_volume) to sales_shipment table. I know that I can use two approaches to do this, but what is the best? The first approach is to use the "Extension Attributes"....
0
votes
1answer
44 views

EntityManager is trying to insert an existing row instead of updating the row

I have an extension property on Magento's Invoice class, and I'm trying to make an API method that sets the value of my extension attribute for a specific invoice. I'm using my class as an extension ...
1
vote
1answer
96 views

How to override the GroupInterface by creating extension attributes in magento 2

I wish to override Magento\Customer\Api\Data\GroupInterface to add my custom fields. Custom fields are 1.custom_terms 2.handling_fee I have created the below file in etc/extension_attribues.xml &...
2
votes
1answer
531 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 ...
2
votes
0answers
859 views

Magento 2 Save custom customer address attribute in customer edit form using extension attributes

I want to save custom customer address attribute in Customer Edit Form under My Account section. I have created an attribute using Setup script and save that attribute using extension attributes. ...
2
votes
1answer
210 views

How do I query on an extension attribute through the API?

I added an extension attribute to the Invoice class, and I want to be able to query the Invoice database data by my extension attribute. My extension attribute (ExportedFlag) has these properties ...
1
vote
0answers
64 views

Error on set method of extensionAttributes

I realize this question is kind of vague, but I'm hoping that someone with more knowledge of Magento than me can give me an idea of where to look. I'm trying to add an extension attribute called ...
1
vote
0answers
119 views

API error when adding an extension attribute

I'm trying to follow Magento's tutorial for adding an extension attribute. I want to add an extension attribute called "exportedFlag" to the Invoice class, and have it returned through the V1/...
5
votes
0answers
613 views

How to display and save extension attributes on Magento 2 Admin create order page

I have created extension attributes to order for rest API services. Also, I'm able to display the attributes on the order grid. How can I display the same attributes on admin create order form and ...