Questions tagged [extension-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
42 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:framework:Api/etc/...
0
votes
0answers
19 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
17 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
36 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
12 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
43 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
168 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 ...
0
votes
1answer
88 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
1answer
52 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 ...
0
votes
0answers
48 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
21 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
74 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
346 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 ...
0
votes
0answers
26 views

Set extension attribute value in quote from paypal review page

I want to set extension attribute value in quote from pay-pal review page. I want to set the value of radio button selected to the database from using extension attribute. I already have that ...
5
votes
0answers
124 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
65 views

which model extend AbstractExtensibleModel by default

which model extend AbstractExtensibleModel by default so i can use extension attributes with it ?
1
vote
0answers
37 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
0answers
23 views

Magento2 Add Extension attribute to Order Items

I want to add Extension attribute to order items. Magento\Sales\Api\Data\OrderItemInterface I want to add field in order items that current item has custom options or not? How can i do it in order ...
0
votes
0answers
237 views

Magento 2 How to add custom attribute to Totals Information Interface

I have to add custom attribute to /rest/default/V1/carts/mine/totals-information, so I found TotalsInformationInterface and I tried to add on this, but it is not working. I am doing this because I ...
0
votes
0answers
45 views

How do I add product data and directly to the database, which tables need to be updated in what order?

TLDR: Migrating Opencart to Magento, currently have 300+sku's and 100k+ product pages. What is the best practice for storing complex product data and programmatically adding and maintaining it ...
0
votes
1answer
33 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
197 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
0answers
86 views

Storing & retriving a Customer extension attribute using Magento 2 REST API?

What I'm trying to do is associating a my_attribute extension attribute to any customer. Plus, I have to use the Magento API. Storing a Customer would be done by calling POST /V1/customers and ...
0
votes
1answer
22 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 ...
0
votes
1answer
42 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
289 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
512 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
122 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 ...
0
votes
0answers
32 views

How do I save a string extension attribute to the database

I'm trying to add a string extension attribute called exportedFlag to the Invoice class. I have the attribute added successfully when I'm retrieving data, but I'm struggling with how to save the ...
1
vote
0answers
43 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
70 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/...
0
votes
0answers
428 views

How to get the extension attributes in shipping info and order/{id} APi magento2?

I have created a sales attribute "port" in sale_order table. I want to POST this post attribute in shipping information API payload and get it in response as extension attribute. I also want to save ...
4
votes
0answers
433 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 ...
0
votes
0answers
27 views

Magento 2 soap api issue

I need to insert extension attributes into api. I have created extension attributes file and I have added it to api but when I change /** * Sets the tax relief state for the order payment. * * @...
1
vote
0answers
157 views

Unable to create extension attribute for billing address in Magento 2

I have added custom field in magento checkout billing form, to get the value for field, I have added extension attribute <extension_attributes for="Magento\Quote\Api\Data\AddressInterface"> ...
5
votes
1answer
439 views

Magento 2 REST - SKU to items on cart totals API response is not available, How to get SKU in response API

Magento 2 Rest API of cart totals doesn't provide SKU, Which is necessary for any operation like extension_attributes /rest/V1/carts/mine/totals The return array of Items is array (size=21) ...
1
vote
0answers
51 views

Magento 2: Extension Attributes for Total Model

I added custom total(discount row) model in cart and checkout summary but it is not getting saved in quote and order. So how to use extension attribute for such total model that works in order, ...
1
vote
1answer
145 views

Magento2 Extension-Attribute of type \DateTime?

I'am trying to add an extension-attribute to Magento_Customer like this: <extension_attributes for="Magento\Customer\Api\Data\CustomerInterface"> <attribute code="some_attribute" type="\...
0
votes
1answer
3k views

Magento 2: Property does not have accessor method in class "Magento\Checkout\Api\Data\ShippingInformationExtensionInterface

I'm working on get extension attribute through checkout page And i did it correctly(i thing), check this image below, the extension_attribute is rendered. But when i click on "Next" button, it appear ...
0
votes
1answer
596 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 ...
2
votes
0answers
370 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 ...
1
vote
2answers
1k views

Adding extension attribute to category api response

The default response from magento 2 category api endpoint /rest/V1/categories/3 is { "id": 3, "parent_id": 2, "name": "Gear", "is_active": true, "position": 4, "level": 2, "children": "4,5,6", "...
1
vote
0answers
384 views

Order item extension attributes are always last database entry

I have added extension attributes to order items, and values are successfully saved to table, when I get an order from rest API, extension attributes always show the value of last order item row for ...
0
votes
0answers
111 views

Add extension attribute in Product Custom Option Value

I would like add extension_attribute field in ProductCustomOptionValue entity. My idea is to use extension_attribute.xml to create news attributes to this entity liking with a new table.
1
vote
1answer
3k views

Magento 2 - Save Extension Attribute afterSave() returns void

I've been looking into extension attributes from various articles and tutorials: https://store.fooman.co.nz/blog/an-introduction-to-extension-attributes.html https://devdocs.magento.com/guides/v2.2/...
2
votes
1answer
472 views

Extension attribute for shipping method in Magento 2

I want to display some custom message from admin in front of my custom shipping method. in extension attribute not set individually in shipping method for custom shipping method of cart and checkout. ...
0
votes
0answers
78 views

Adding get and set methods for increment_id of customer_entity table

How to add get and set methods for increment_id of customer_entity table in magento2. i have added in extension_attribute and added plugin for customerinterface class but it is not effecting core ...
0
votes
0answers
55 views

Magento 2 - Add admin user to order

I created an external WebApp that communicates via REST API to my Magento instance (Magento version installed is 2.1.13). This WebApp will be used by shop's operators to sell the same shop products to ...
1
vote
2answers
646 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\...