Display custom attribute on category page
-
12-12-2019 - |
Question
On our category page I want to echo an custom attribute with attribute code "homepage_description".
I tried this, but that does not work:
<?php echo $_product->getHomepageDescription() ?>
I also tried this:
<?php echo $_helper->productAttribute($_product, $_product->getHomepageDescription(), 'homepage_description') ?>
How can I make this work?
Solution
Try to edit attribute from catalog->attributes->Manage Attributes and open your attribute and change the below option to Yes:
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange