Questions tagged [extension-attributes]
The extension-attributes tag has no usage guidance.
136
questions
0
votes
1answer
29 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
17 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
14 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
22 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 ...
0
votes
0answers
20 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
9 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
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
0answers
19 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
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
0answers
22 views
Magento 2 - How to set extension attribute?
In Magento 2, I add a custom checkbox in cart :
<input type="checkbox" name="my_checkbox_name" id="my_checkbox_id">
In this file :
app/design/frontend/[Vendor]/[...
0
votes
1answer
52 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
22 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
0answers
9 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
1answer
37 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
56 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="...
0
votes
0answers
22 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
236 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
127 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
565 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
50 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
81 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
316 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
31 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": {
...
0
votes
0answers
34 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
186 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
226 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
487 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
30 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
49 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
69 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
28 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
18 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
25 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
423 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
163 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
47 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/...
2
votes
1answer
770 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
783 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
354 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
64 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
46 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
101 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
1answer
59 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....
1
vote
1answer
869 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 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
455 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
110 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
1answer
503 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"?>
<...