hi I want to create extesnion...and for that I need to create attribute which should have following front end properties....
Use in Quick Search ----> true
Use in Advanced Search ---> true
Comparable on Front-end ---> true
Used in Product Listing --- >true
Visible on Product View Page on Front-end --- > true
Allow HTML Tags on Frontend --->true
Use for Promo Rule Conditions --->true
Use In Search Results Layered Navigation-->true
Use In Layered Navigation --> true
this is following properties of my attributes which is needed for me but its not working with this code...
$installer = $this;
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
$installer->startSetup();
$setup->addAttribute('catalog_product', 'test_attribute1', array(
'type' => 'varchar',
'backend' => '',
'frontend' => '',
'label' => 'test',
'input' => 'select',
'class' => '',
'source' => 'catalog/product_attribute_source_layout',
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
'visible' => true,
'required' => true,
'user_defined' => true,
'default' => '',
'searchable' => true,
'filterable' => true,
'comparable' => true,
'visible_on_front' => true,
'unique' => false,
'group' => 'General'
));
$installer->endSetup();
How this will be possible by custom script........