Create new product attribute with options

Hello, Good to see you again. Today i am going to discribe how to create new attribute for product with options and assign to all products with default value. Here i have describe the code to create new attribute and assigned to products.   $installer = Mage::getResourceModel('catalog/setup','default_setup'); $installer->startSetup(); Get setup resource model and start installer set-up. $entity = 'catalog_product'; $newAttribute = 'some_new_attribute'; Define entity type and new attribute code. $entityTypeId = $installer->getEntityTypeId($entity); Get entity type id from en...
More

How to download multiple files with ZIP in Magento.

Hello, Today i'll explain you, how can we download multiple files with ZIP in Magento. To download any file in Magento usually we used simple flow of Magento with controller method, but we get confuse while we need to download multiple files at same time. To download multiple files at same in download request we should use ZIP method, which will include all the files which allows to download. Here is the code and code explanation to use ZIP method in Magento to download multiple files. if(!extension_loaded('zip')){ Mage::log("Zip Extension does not loaded"); return false; } Check whet...
More