Questions tagged [extension-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Adding attributes to OrderItemSearchResult

Sorry for beginner question, but I need to add aggregate field to /V1/orders/items response (2 sum fields) - can you give me a hint how it is usually done?
0
votes
0answers
23 views

ExtensionAttribute does not have accessor method getXYZ in class

currently i'm facing the Problem that an extension attribute wont work as expected. On our test setup i get the Property has no accessor Error, while my local setup runs fine. Message: Property "...
0
votes
0answers
26 views

Retrieving product collection with all possible data in one call

I'm building a custom API endpoint that produces a product data dataset for a custom front-end application. All works fine, but I want to optimize the code because I still have multiple database ...
0
votes
0answers
18 views

Save extension attribute without plugin

I have created an extension_attribute for "Magento\Quote\Api\Data\CartInterface". Have a custom table to save that extension_attribute. How I can save the extension_attribute attribute to a ...
1
vote
0answers
26 views

Why are extension attributes not loaded during this integration test?

I have a module that adds two extension attributes to Magento\Sales\Api\Data\OrderAddressInterface: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
27 views

Magento 2: Getting and save extension attributes in ShippingInformation

I want to display my custom extension attributes that are saved in quote on the ShippingInformation sidebar (underneath shipping method). I have been able to successfully save my extension attributes ...
0
votes
1answer
35 views

Custom Order API Extension Attribute Not Saving

I am trying to create a new extension attribute for the order API but I keep getting "does not have accessor method getRepeatOrder" error when I call the API endpoint. This is how I ...
2
votes
0answers
28 views

Magento 2 : Extension attributes & Eav Attributes

Few question based on extension attributes & eav attributes. Answers to this question will clear the concept of this topic. What are extension & eav attributes in magento ? What is the ...
0
votes
1answer
41 views

Order custom attribute, extension attribute or EAV attribute | Magento 2

I want to add custom attribute for Order From what I have learned, there are two ways this attribtue can be associated to Order entity Having extension_attributes.xml + custom repository (and ...
0
votes
0answers
14 views

Add extension attribute to section in checkoutConfig

Hello how i can add extension attribute to discount segment? By default it get discount_lable as title but i wont discount name too. And how i can get shipping method handling free treshold value?
0
votes
0answers
40 views

Get Extension attributes from \Magento\Quote\Api\Data\PaymentInterface via Quote

I have a subscribe at checkout checkbox that subscribes customers to newsletters at checkout if a checkbox is checked however having issues with some custom payment methods. Most payment methods are ...
0
votes
2answers
300 views

Create extension attribute to inventory source

I have a requirement to add the custom attribute (delivery_time) to each inventory source. my-vendor/module/etc/di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3....
0
votes
1answer
111 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
16 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
0answers
31 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
98 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
51 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
1answer
105 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
0answers
34 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 ...
0
votes
1answer
42 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
27 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
65 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
24 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
20 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
0answers
46 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
27 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 ...
0
votes
0answers
18 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
291 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
77 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.
0
votes
1answer
138 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
2answers
342 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="...
1
vote
1answer
1k 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/...
0
votes
1answer
359 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 '...
1
vote
2answers
2k 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
60 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
300 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
767 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
1answer
472 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
620 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
2answers
1k 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
1answer
133 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
334 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 ...
1
vote
1answer
990 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 ...
1
vote
1answer
363 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": ...
2
votes
1answer
2k 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
1answer
2k 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
509 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:...
1
vote
0answers
134 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 ...
1
vote
0answers
83 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
181 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\...