In my Magento store I have created a new attribute with an attribute code of 'brand_info'.
How can I echo/print the contents of this attribute onto a product page ie. below the description?
To display the contents of attribute on product page you need to add following code in view.phtml file.
$_product->getResource()->getAttribute('brand_info')->getFrontend()->getValue($_product);
Make sure that the attribute is marked as "used in frontend", then in your template name write the following where you want to see the attribute:
<?php print $_product->getBrandInfo(); ?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With