Hi,
A very small thing that is driving me crazy :)
I am not able to retrieve the attribute code of the current attribute in the /catalog/product/view/type/options/configurable.phtml template file.
Around (or at) line 36, when I change the
echo $_attribute->getLabel()
to
echo $_attribute->getAttributeId()
I get the correct attribute Id that is present in the eav_attribute table of the database. But when I try
echo $_attribute->getAttributeCode()
I get an empty string whereas there is an attribute_code field in the eav_attribute table.
Can you please help me find the attribute code of my attribute ? Or, more generally : how to get the attribute code of an attribute from which we now the id ?
Thanks a lot!