<?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

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *