我正在尝试从设置脚本中添加属性。即使添加了属性,但某些选项的值与设置脚本中指定的值不同
/* @var $installer Mage_Eav_Model_Entity_Setup */
$installer = $this;
$installer->startSetup();
$entityTypeId = 'catalog_product';
$attributeCode ='dz_video';
$data = array(
'type'=>'textarea',
'input'=>'text',
'label'=>'Video',
'is_required' =>'0',
'is_unique' =>'0',
'is_global' =>Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
'is_comparable'=>'0',
'is_wysiwyg_enabled'=>'0',
'is_searchable'=>'0',
'is_used_for_price_rules'=>'0',
'is_html_allowed_on_front'=>'1',
'is_visible_on_front'=>'1',
'used_in_product_listing'=>'0',
'used_for_sort_by'=>'0',
'user_defined'=>'1',
'is_configurable'=>'1'
);
$installer->addAttribute($entityTypeId,$attributeCode,$data);
例如,“is_required”的指定值为 0,但在管理员“必需”选项中设置为是