public function getAttributeCodeFromId($attributeId) { $attribute = Mage::getModel('eav/entity_attribute')->load($attributeId); return $attribute->getAttributeCode(); }