0

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

1
  • Custom option means new attribute?
    – Jackson
    Commented Mar 17, 2017 at 7:03

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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