EAV自定义属性中无法识别Magento“可见”配置键

时间:2013-08-10 00:47:05

标签: magento-1.7 entity-attribute-value

我正在使用从我的安装程序脚本运行的getDefaultEntities()函数。它主要起作用,几乎所有属性配置键都在管理员的“属性”部分中正确反映。然而,“可见”,“visible_on_front”和一些其他属性根本不起作用。我的自定义属性始终设置为不可见,在前端不可见。谁能发现我做错了什么?

class Ia_AdvancedShipping_Model_Resource_Eav_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
{
/**
 * @return array
 */
public function getDefaultEntities()
{
    return array(
        'catalog_product' => array(
            'entity_model'      => 'catalog/product',
            'attribute_model'   => 'catalog/resource_eav_attribute',
            'table'             => 'catalog/product',
            'additional_attribute_table' => 'catalog/eav_attribute',
            'entity_attribute_collection' => 'catalog/product_attribute_collection',
            'attributes'        => array(
                'iaadvancedshipping_profile' => array(
                    'group'             => 'Advanced Shipping',
                    'label'             => 'Shipping Profiles',
                    'type'              => 'varchar',
                    'input'             => 'select',
                    'source'            => 'iaadvancedshipping/product_attribute_source_profiles',
                    'default'           => '0',
                    'class'             => '',
                    'backend'           => '',
                    'frontend'          => '',
                    'global'            => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
                    'visible'           => true,
                    'required'          => false,
                    'user_defined'      => false,
                    'searchable'        => false,
                    'filterable'        => false,
                    'comparable'        => false,
                    'visible_on_front'  => true,
                    'visible_in_advanced_search' => false,
                    'unique'            => false
                ),
           )
       )
  );
}
}

0 个答案:

没有答案