“是/否”下拉自定义产品属性的默认值
我使用以下脚本安装属性: $installer = $this; $installer->startSetup(); $installer->removeAttribute('catalog_product', 'customizableonly'); $installer->addAttribute('catalog_product', 'customizableonly', array( 'group' => 'General', 'input' => 'select', 'type' => 'int', 'label' => 'Customizable Only', 'source' => 'eav/entity_attribute_source_boolean', 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 'visible' => 1, 'required' => 0, 'visible_on_front' => 0, 'is_html_allowed_on_front' => 0, 'is_configurable' => 0, 'searchable' => 0, 'filterable' => 0, …