Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get attribute code on configurable product page solution
 
Netismine
Sr. Member
 
Avatar
Total Posts:  174
Joined:  2008-10-28
 

I think this method should be added to Mage/Catalog/Model/Product/Type/Configurable/Attribute.php in next Magento version

public function getCode()
    
{
        
return ($this->getProductAttribute()->getFrontend()->getAttribute()->getAttributeCode());
     
    
}

now you can call $_attribute->getCode() from catalog/product/view/type/options/configurable.phtml

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top