How to Display Product Attributes in List or Grid View

  • Go to “frontend/default/YOUR-TEMPLATE/template/catalog/product/” directory.
  • Open and Edit list.phtml file.
  • Use this line of code to display the desired product attribute.

<?php echo $_product->getResource()->getAttribute('boxdimension')->getFrontend()->getValue($_product);?>

That's it. :)


Need Magento Developer click here?

0 (mga) komento:

Post a Comment