Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
16 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
0answers
16 views

How to add extension attribute (string) for Custom Payment Method similar to Purchase Order in Magento 2

I am using Magento 2.2.5 (CE) and created a custom payment method similar to Purchase Order. I had followed the magento's core module (i.e. vendor/magento/module-offline-payments) of offline payment ...
0
votes
1answer
69 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
0answers
50 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
30 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
1answer
83 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
156 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
53 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.
0
votes
0answers
48 views

Add a custom getter/setter pair to a DTO class

I've added an additional column to the sales_order_item table and now I'm searching for a way to add a custom getter/setter pair to Magento\Sales\Model\Order\Item, without using a preference. Magic ...
0
votes
1answer
200 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
214 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
48 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
34 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 ...
0
votes
0answers
58 views

How to apply Search criteria filter on extension attribute

Is it possible to apply search criteria filter based on extension attributes? As /rest/V1/products?searchCriteria[pageSize]=10&searchCriteria[currentPage]=1&searchCriteria[filterGroups][1][...
0
votes
0answers
13 views

Magento2.0 - Could not shown product field detail

Product detail of fields is not shown when i fetch all the product when i used this URL to get bulk product in single API call "http://localhost/magento2.1/rest/all/V1/products?searchCriteria[pageSize]...
1
vote
1answer
99 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\...
1
vote
1answer
33 views

Extension attribute on admin page

I've successfully created a new field on the frontend with an extension_attribute by this documentation. My problem is that where should I hook the extension attributes on the admin page? The ...
8
votes
1answer
520 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
190 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\...
1
vote
0answers
56 views

Generation of Extension interfaces

What is the code that generates the ExtensionInterface suffixed classes ? For example, there is this file that declares extension attribute on the product options (and others). Magento/Catalog/etc/...
1
vote
0answers
37 views

Magento 2 add extension attribute to invoice_item

I need to put the shipment number for the item in 'sales_invoice_item' table from Rest Api, How to add extension attribute for invoice item?
1
vote
1answer
48 views

Adding extention_attributes to Oder not working

There's an extension in my project and I want to include one of its attributes in the Order object so that Zapier can see that field. I don't have to save that field, it's saved somewhere else, so I ...
1
vote
1answer
324 views

Adding custom column data to extension attribute in magento's default V1/orders API

I have a custom delivery_date column in quote table which I want to pass to V1/orders , I have passed this in extension_attribute.xml as following ; <?xml version="1.0"?> <config xmlns:xsi="...
3
votes
1answer
224 views

Magento 2 extension attributes

I'm a bit lost regarding the Magento 2 extension attributes. It's clear they offer a flexible way to extend the API/interfaces with your own attributes, but what I don't get is how to save the value ...
1
vote
0answers
375 views

Magento 2 Adding Extension Attribute to Quote_Item

I am trying to add an extension attributes to quote_item. I have a plugin that works perfectly well when I add a simple item to quote_item, converting it from quote_item to order_item, and when I an ...
0
votes
0answers
39 views

How to Add Magento Dynamic (Extension / Custom) Attributes

I am currently trying to add a customizable attribute to a product, so that when it is add to cart, it will "save" such attribute and be carried over to order, and invoice modules. I've read that the ...
2
votes
1answer
165 views

Magento2: Custom ExtensionAttributes for Customer_Address not saved into database

I am stuck. I hope someone had already solved my problem. The magento docu does not help me any further. I added some new ExtensionAttributes for Customer_Address entity. These fields are correctly ...
0
votes
1answer
136 views

Create extension attribute to quote_item table

I am trying to create extension attribute to quote_item table but in module-quote I haven't seen any QuoteItemInterface, but there is CartItemInterface. I tried with that extension_attributes.xml ...
0
votes
1answer
241 views

Saving order extension attribute to database

What is the process for saving an extension attribute to the database, when passed over using the REST API? How does it know which table / field to save the value to? the method are being generated in ...
1
vote
0answers
44 views

extension attributes

I'm trying to extend Magento 2 api, I found this (https://github.com/magento-south/magento2-samples/tree/MAGETWO-55017/sample-external-links) but its not working.. After some fixes I got an error ...
3
votes
2answers
2k views

Save a custom attribute from shipping method to quote_address

I have created a custom shipping method which allows delivery to a local office of the carrier. I have created a select when the shipping method is selected, so the user picks the office. Now I need ...
0
votes
2answers
3k views

Add extension attribute to Order

I want to add custom field "comment" to the order as an extension attribute. So, the first, I have added this column to following tables in database: "quote" and "sales_order". It's my xml file: &...
3
votes
0answers
322 views

Magento 2.1 Rest API - Adding to Extension Attributes for VI/Orders/?searchcriteria

I have some custom data that I gather on checkout. Using etc/extension_attributes.xml, I was able to add this data to the extension_attributes output on VI/Order/#id, but when I use VI/Order?...
3
votes
2answers
980 views

Trying to understand EAV attributes and extension attributes in Magento 2

I'm trying to figure out how to achieve a simple task that in magento 1 was very simple, adding an attribute to an entity. In my case an attribute to customer_address, so in magento tutorial only ...
1
vote
1answer
59 views

Creating Magento-attributes using Magento-Extension

Need help to create Magento attributes using Magento Extension. Here are the instructions: I have to create a new Yes/No attribute for products. The code should be display_product. The code should ...
2
votes
2answers
2k views

How to use extension attributes for customer EAV attributes?

I've created custom customer attributes via InstallData and want to make them available as extension attributes. But I have trouble with the admin interface and am unsure if I'm doing it right. I've ...
0
votes
1answer
432 views

Magento2: How to add custom attributes into CustomerGroups

I've already added some custom attributes into order and customer, now, I'm trying to do the same with CustomerGroups and it's not working. I'm failling on the first step, the setup script: class ...
0
votes
1answer
41 views

Loading Product List Withing Module Configuration Section?

I've been asked to write a module which gives the option to add a simple (string) value to one or more products in the store. I've created this functionality to add the attribute by editing an ...
1
vote
0answers
194 views

Magento 2 need to add extension attribute

I am using magento 2.1.5 . I want to add extension attribute to Magento\Tax\Api\Data\QuoteDetailsItemInterface I want to add product id attribute to QuoteDetailsItemInterface Can anyone suggest me ...
3
votes
0answers
167 views

Magento2 rest api error on product search on extension attribute

I've an extension attribute on products, declared in the following way: <attribute code="stock_item" type="Magento\CatalogInventory\Api\Data\StockItemInterface"> <resources> &...
1
vote
1answer
124 views

Retrieve extension_attributes with API searchCriteria working wrong

I created a new field on Creditmemos as an extension_attribute. I thought is working fine, when I create a Creditmemo, the field is saved correctly in the ddbb and when I get the creditmemo with the ...
0
votes
1answer
1k 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()->...
2
votes
1answer
1k 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="...
1
vote
2answers
787 views

Magento 2 - Losing data with extension attributes in bundle options collection

I am using Magento 2.1.4 I add a new column required_total on table catalog_product_bundle_option I created the extension_attributes.xmlfile <?xml version="1.0"?> <config xmlns:xsi="...
2
votes
1answer
929 views

class [] does not exist for custom extension_attributes over webapi

I created a custom module to store the details of discount per items. I have a custom tables to store informations (quote items, order items, invoice items), and I use a extension attributes to link ...
2
votes
1answer
1k views

Can't get extension attributes in observer - Magento 2

As the title says Background: I have followed the guide in the Magento 2.1 docs about adding a custom input to Shipping Address in checkout: http://devdocs.magento.com/guides/v2.1/howdoi/checkout/...
1
vote
0answers
20 views

Can I reuse adminhtml UI compontent on frontend? if so How?

I'm new to Magento, hope this is the right place to ask this question, well the thing is that I'm new to Magento 2 and I'm trying to see how everything works, I bought a Module that converts Magento 2 ...
1
vote
0answers
307 views

How is it possible to set an extension_attributes to the orders and have it appear with REST/SOAP API?

I am trying to use extension_attributes in order to add a field in the orders. The thing is, I want that field to appear when we get the orders with API calls (http://monsite.fr/soap/default?services=...
2
votes
2answers
3k views

Magento 2.1.3 : How can I add extension attributes to a product attribute?

I'm trying to add an extension attribute to a product attribute (\Magento\Catalog\Model\ResourceModel\Eav\Attribute). I've tried the documentations' examples and various articles on Magento Stack ...
2
votes
0answers
308 views

Exposing custom column value in api calls

I am building a module that needs to display a second custom price value at all times. I have solved most of what this entails but got stuck with the quite item. So far i added a column in the quote ...