How to show product attribute value in order detail in Magento 2.2.6?
I already tried below code but not working:
File Path:
public_html/vendor/magento/module-sales/view/adminhtml/templates/items/column/name.phtml
$_item->getProduct()->getAttributeText('attribute_code');
$_item->getProduct()->getProductAttribute('attribute_code');
Need Help.
Best Answer
You can get product attribute value using
$objectmanager
You can also try this code as well ( For select option attribute )