Revision: 20449
Updated Code
at July 4, 2011 20:35 by nico65
Updated Code
<?php echo $_product->getResource()->getAttribute('attribute name')->getFrontend()->getValue($_product) ?> //text <?php echo $_product->getExtras() ?> //dropdown <?php echo $_product->getAttributeText('extras') ?> <?php $oa_herstellerland = $_product->getData('oa_herstellerland'); if (trim($oa_herstellerland) != '') { ?> <li class="<?php echo $_product->getResource()->getAttribute('oa_herstellerland')->getAttributeCode($_product) ?>"> <div class="label"><?php echo $_product->getResource()->getAttribute('oa_herstellerland')->getFrontend()->getStoreLabel($_product) ?></div> <div class="infotxt"> <?php echo nl2br($oa_herstellerland); ?> </div> </li> <?php } ?>
Revision: 20448
Updated Code
at April 30, 2011 02:12 by nico65
Updated Code
<?php echo $_product->getResource()->getAttribute('attribute name')->getFrontend()->getValue($_product) ?> //text <?php echo $_product->getExtras() ?> //dropdown <?php echo $_product->getAttributeText('extras') ?> <?php $oa_herstellerland = $_product->getData('oa_herstellerland'); if (trim($oa_herstellerland) != '') { ?> <li class="<?php echo $_product->getResource()->getAttribute('oa_herstellerland')->getAttributeCode($_product) ?>"> <div class="label"><?php echo $_product->getResource()->getAttribute('oa_herstellerland')->getFrontend()->getLabel($_product) ?></div> <div class="infotxt"> <?php echo nl2br($oa_herstellerland); ?> </div> </li> <?php } ?>
Revision: 20447
Updated Code
at April 30, 2011 02:05 by nico65
Updated Code
<?php echo $_product->getResource()->getAttribute('attribute name')->getFrontend()->getValue($_product) ?> //text <?php echo $_product->getExtras() ?> //dropdown <?php echo $_product->getAttributeText('extras') ?>
Revision: 20446
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 16, 2009 11:31 by nico65
Initial Code
<?php echo $_product->getResource()->getAttribute('attribute name')->getFrontend()->getValue($_product) ?>
Initial URL
http://snippi.net/magento-display-specific-product-attribute
Initial Description
Initial Title
display a single specific product attribute.
Initial Tags
magento
Initial Language
PHP