0

I am trying to display custom options in product list page. Can any one give me idea how can I achieve this?

  • Custom option means new attribute? – Jackson Mar 17 '17 at 7:03
0

Override file in ur theme

magento\app\design\frontend\Vendor\YourThemeName\Magento_Catalog\templates\product\list.phtml

foreach ($_productCollection as $_product):
 echo $attrName = $_product->getAttributeText('your_attribute_name');
endforeach;

Go to Admin & Your Custom Attribute, Edit it. In Storefront Properties -> Used in Product Listing set to Yes

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.