Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $installer = $this;
- $installer->startSetup();
- $installer->addAttribute('catalog_product', 'attribute_name',array(
- 'attribute_set' => 'attribute_set_code',
- 'group' => 'General',
- 'label' => 'My Attribute',
- 'type' => 'varchar',
- 'input' => 'multiselect',
- 'backend' => 'eav/entity_attribute_backend_array',
- 'frontend' => '',
- 'source' => '',
- 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
- 'visible' => true,
- 'required' => false,
- 'is_user_defined' => true,
- 'searchable' => false,
- 'filterable' => false,
- 'comparable' => false,
- 'option' => array (
- 'value' => array('1' => array('Option One'),
- '2' => array('Option Two'),
- '3' => array('Option Three'),
- )
- ),
- 'visible_on_front' => false,
- 'visible_in_advanced_search' => false,
- 'unique' => false
- ));
- $installer->endSetup();
Add Comment
Please, Sign In to add comment