Is it possible to get the attribute label (depending on the storeview) only by the attribute code?
I don't want to enter any product or product id.
This is my code to get the attribute label:
<?php $_attribute = $_product->getResource()->getAttribute($attribute_name); ?>
<?php $attribute_label = $_attribute->getStoreLabel(Mage::app()->getStore()->getName()); ?>
I want to get rid of the $_product.
Best Answer
Using function
getStoreLabel()
of classMage_Eav_Model_Entity_Attribute
,You can get store Label of a store view