Thursday, October 10, 2013

Mageno : How to programmatically get product attribute label !!

Hello friends,

Today we are going to explain you how you can get the product attribute label value using PHP code
[php]
//get load the full product using product model.
$product = Mage::getModel('catalog/product')->load(1o);
$productAttribute = $product->getResource()->getAttribute('description');
echo $productAttribute->getStoreLabel('admin');
[/php]


Hope this could help someone.

Happy Coding!!

No comments:

Post a Comment