<?php require_once('app/Mage.php');
Mage::app()->setCurrentStore(M age::getModel('core/store')->l oad(Mage_Core_Model_App::ADMIN _STORE_ID));
$installer = new Mage_Sales_Model_Mysql4_Setup;
$attribute = array(
'type' => 'int',
'label'=> 'Featured Category',
'input' => 'select',
'source' => 'eav/entity_attribute_source_ boolean',
'global' => Mage_Catalog_Model_Resource_ Eav_Attribute::SCOPE_GLOBAL,
'visible' => true,
'required' => false,
'user_defined' => true,
'default' => 0,
'group' => "General Information"
);
$installer->addAttribute(' catalog_category', 'featured_category', $attribute);
$installer->endSetup();
?>
Wednesday, 12 February 2014
Create category attribute select option
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment