Developer Coding Tips, Magento Help
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment