- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020
04:31 AM
07-09-2020
04:31 AM
Custom field on eav_attribute
Hi,
I've created a field in eav_attribute table (lets call it custom_field) and now I want this field to be part of the result when consuming the rest/V1/products/attributes.
I've try similar solutions, witouht success.
Anyone got the solution for this?
Labels:
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020
04:39 AM
07-09-2020
04:39 AM
Re: Custom field on eav_attribute
Hi @itreimanpt18a5
In your case, you need to create extension attribute to get value of custom field with rest api.
Kindly refer below link :
https://www.mageplaza.com/devdocs/how-get-value-custom-attribute-rest-api-magento-2.html
It may help you.
Problem Solved? Click on Kudos & Accept as Solution!
Problem solved? Click Accept as Solution!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020
04:46 AM
07-09-2020
04:46 AM
Re: Custom field on eav_attribute
My issue is at the OrderLoadAfter.php file. The example uses:
- $order = $observer->getOrder();
- \Magento\Sales\Api\Data\OrderExtension
How can I make it work with the rest/V1/products/attributes?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020
01:51 AM