Wednesday, January 20, 2010

Getting product attributes values and labels in Magento

This is how you can get the particular attribute value:

$_product
->getResource()->getAttribute('desired_attribute_code')->getFrontend()->getValue($_product);


1 comments:

Anonymous said...

I found good link on getting product attributes values and labels. It worked for me.

http://www.phptechi.com/getting-product-attributes-values-and-labels.html

Post a Comment