magento show product attributes


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



Copy this code and paste it in your HTML
  1. // If you are using a dropdown or a multiple select:
  2. <?php echo $_product->getAttributeText('shirt_size') ?>
  3.  
  4. // If it is a text field (textbox or textarea), this is all you have to do:
  5. <?php echo $_product->getAttributeName() ?>

URL: http://prattski.com/2008/11/03/magento-displaying-custom-attributes-on-product-view/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.