Magento

Friday, June 13, 2014

Magento - Get Product Attribute Text (Dropdown)

if($_product->getData('product_color'))
{
    echo "Product Color = ".$_product->getAttributeText('product_color');
    //echo $_product->getResource()->getAttribute('product_color')->getFrontend()->getLabel($_product);
}
Posted by Hiren at 3:56 PM

No comments:

Post a Comment

Older Post Home
Subscribe to: Post Comments (Atom)
  • All Posts
  • How Magento ORM works?
  • Get Product Custom (Gallery) Image Attribute with Label
  • Increase Admin session timeout in magento
  • Magento - Indexing through command prompt
  • Magento database model without an auto_increment primary key
  • Get Magento Connect Extension Keys Without Logging...
  • Read image from third party FTP url and assign to ...
  • Magento admin panel auto login
  • Add Google Analytics tracking code on order succes...
  • Magento - catalog search by product name should re...
  • Magento - Assign Related Products programmatically...
  • Add links like rel=prev and rel=next to Magento’s ...
  • Import-Export Database (For Windows)
  • Import - Export using SSH
  • Get a list of all class rewrites
  • Working with large Magento collections

About Me

Hiren
Ahmedabad, Gujarat, India
View my complete profile
Picture Window theme. Powered by Blogger.