Using Magento header/footer outside of Magento

If you want to include the header and footer of Magento outside of it, say for example for third-party cms/application then you can use the following trick. Step 1: Using Magento Code outside of Magento <?php /** * @author MagePsycho <[email protected]> * @website https://www.magepsycho.com * @category using Header / Footer outside of Magento */ $mageFilename …

Read more

Playing with Attribute Set in Magento

Introduction An attribute set is a collection of attributes which can be created/edited from Catalog -> Manage Attribute Sets in the backend. Some useful snippets regarding Attribute Set. 1> Getting Attribute Set Details $attributeSetModel = Mage::getModel(‘eav/entity_attribute_set’); $attributeSetId = 9; // or $_product->getAttributeSetId(); if you are using product model $attributeSetModel->load($attributeSetId); print_r($attributeSetModel->getData()); 2> Getting Attribute Set Id …

Read more