Magento – get product attribute set name

To retrieve the product attribute set name, I just create this function on the product class

public function getAttributeSetName()
{
   $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
   $attributeSetModel->load($this->getAttributeSetId());
   return $attributeSetModel->getAttributeSetName();
}

Leave a Reply