Skip to content

Instantly share code, notes, and snippets.

@rootindex
Created November 21, 2012 13:16
Show Gist options
  • Save rootindex/4124798 to your computer and use it in GitHub Desktop.
Save rootindex/4124798 to your computer and use it in GitHub Desktop.
$installer = $this;
$installer->startSetup();
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'brand', array(
'group' => 'General',
'attribute_set' => 'Default',
'type' => 'int',
'label' => 'Brand',
'input' => 'select',
'required' => false,
'user_defined' => true,
'searchable' => true,
'filterable' => true,
'comparable' => true,
'visible_in_advanced_search' => true,
'default' => '',
'visible' => true,
'visible_on_front' => true,
'filterable_in_search' => true,
'used_in_product_listing' => true,
'used_for_sort_by' => true,
'is_html_allowed_on_front' => true,
));
$installer->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment