在常规信息选项卡下添加额外的类别属性
我正在尝试向常规信息选项卡添加一个额外的类别属性,我尝试使用以下代码添加该属性, require_once("app/Mage.php"); Mage::app('default'); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $installer = new Mage_Eav_Model_Entity_Setup('core_setup'); $entityTypeId = $installer->getEntityTypeId('catalog_category'); $attributeSetId = $installer->getDefaultAttributeSetId($entityTypeId); $attributeGroupId = $installer->getDefaultAttributeGroupId($entityTypeId, $attributeSetId); $installer->addAttribute('catalog_category', 'nav_left', array( 'type' => 'tinyint', 'label' => 'Show in left navgigation', 'input' => 'boolean', 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, 'visible' => true, 'required' => false, 'user_defined' => false, 'default' => 0 )); $installer->addAttributeToGroup( …