This is the blog for getting Idea regarding PHP, Magento, jQuery and JavaScript for Customization.

Friday 1 June 2012

Magento : Get product attribute value for Drop-Down


     $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', """"Attribute Name """");

     foreach ( $attribute->getSource()->getAllOptions(true, true) as $option ):

echo   $option['value'] ;
echo  $option['label'];

    endforeach;

No comments:

Post a Comment