/ Published in: PHP
URL: http://snippi.net/magento-display-specific-product-attribute
Expand |
Embed | Plain Text
<?php echo $_product->getResource()->getAttribute('attribute name')->getFrontend()->getValue($_product) ?> //text //dropdown <?php $oa_herstellerland = $_product->getData('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"> </div> </li> <?php } ?>
You need to login to post a comment.
