Magento - Get a custom product attribute


/ Published in: PHP
Save to your folder(s)

How to get a custom product attribute inside a view (.phtml) file.


Copy this code and paste it in your HTML
  1. <?php
  2. $_product = $this->getProduct();
  3. echo $_product->getData('attribute_name');
  4. ?>

URL: http://www.magentocommerce.com/boards/viewthread/30879/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.