I'm looking for a function that get all labels of a specific attribute. However the label that I get is the admin view. I would like to show the default store view instead.
Here is my current wrong code :
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', '81');
foreach ( $attribute->getSource()->getAllOptions(true, true) as $option){
/*some stuff here*/
}
Thanks for your help !
Best Answer
You can get all options with value using below code:
Second Method:
Now to get all labels you can use below code:
I hope this will help you :)