Wednesday, March 21, 2012

How to get product attribute in .phtml file


you can Access the product attribute in the .phtml file like...

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

No comments:

Post a Comment