Magento 1.9 – Create Attributes to Display Icon in List Page

ce-1.9.2.4magento-1.9

Am using Magento 1.9.2.4. I want to display icons respective to the products in product list page (i.e. below the 'price'). So I created an attribute with label Iconlist like below,

enter image description here

and I added the attribute in list.phtml like

            <?php echo $_product->getIconlist(); ?>

But am not able to see any changes. Kindly help me.

Best Answer

You don need all that xml markup to add an attribute to the product grid. Just edit the attribute in the backend, set the field Used in Product Listing to Yes, reindex everything and you should be able to use in catalog/product/list.phtml this:

<?php echo $_product->getAttributeText('manufacturer') ?>
Related Topic