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