/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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'); <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 } ?>
URL: http://snippi.net/magento-display-specific-product-attribute