Return to Snippet

Revision: 55289
at February 1, 2012 11:06 by axertion

Initial Code
<?php if($_product->getData('attribute_code')) : ?>
	<?php echo $_product->getResource()->getAttribute('attribute_code')->getStoreLabel(); ?>: <?php echo $this->htmlEscape($_product->getData('attribute_code')); ?>
<?php endif; ?>

Initial URL

Initial Description
Displays the attribute label and value by using the attribute code.

This works on the Product Detail page in Magento.

Initial Title
Get product attribute label & value in Magento

Initial Tags

Initial Language