<?php $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'brand'); //"brand" is my attribute_code $allOptions = $attribute->getSource()->getAllOptions(true, true); foreach ($allOptions as $instance) { echo $instance['value']; echo $instance['label']; } ?>
Categories: Magento
0 Comments