How to show product custom attribute value on sales order view page under magento 2.2.6 admin.

  • You will need to get Product Id from Order object then load product from ID. Finally you can get Attribute from Product Object. – Mohit chauhan Feb 18 at 9:36
  • Whenever I try to get product attribute from product object it shows always default value not selected. – Aashutosh Kumar Feb 18 at 10:21
  • To get Selected value you need to get all option's of attribute and then match option value from order item option. – Mohit chauhan Feb 18 at 13:14
  • It will be better if you can send me any example – Aashutosh Kumar Feb 18 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.