How do I get attribute set name?

Whenever you have a product object, you can access its attribute set like this: $attributeSetModel = Mage::getModel(“eav/entity_attribute_set”); $attributeSetModel->load($product->getAttributeSetId()); $attributeSetName = $attributeSetModel->getAttributeSetName(); This will give you the name of the attribute set, which you can then compare using strcmp: if(0 == strcmp($attributeSetName, ‘My Attribute Set’)) { print $product->getAttributeText(‘attribute’); }

Magento: Get store contact telephone

That’s a Core configuration, so it’s saved in core_config_data table, and the phone information is the field: general/store_information/phone So, all you need is to read the configuration data as $storePhone = Mage::getStoreConfig(‘general/store_information/phone’); For CMS pages insert the following variable: {{config path=”general/store_information/phone”}} You can find more info on this here, and you can always do the … Read more

tech