Magento get attribute option values

Manufacturer is a custom attribute,you can change the name your custom attribute name.

1
2
3
4
5
$attribute = Mage::getModel ( 'eav/config' )->getAttribute ( 'catalog_product', 'manufacturer' );
 
foreach ( $attribute->getSource ()->getAllOptions ( true, true ) as $option ) {
		$attrubuteArray [$option ['value']] = $option ['label'];
}

3 responses to “Magento get attribute option values”

  1. custom chrome rims

    im feeling it

  2. fenderbirds

    nice article, keep the posts coming

  3. aparadekto

    Hey, I can’t view your site properly within Opera, I actually hope you look into fixing this.

Leave a Reply