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?

有帮助吗?

解决方案

Try to edit attribute from catalog->attributes->Manage Attributes and open your attribute and change the below option to Yes:

Its shows the option while edit the attribute

许可以下: CC-BY-SA归因
scroll top