php - Attribute data options not being applied when created programmatically -
i'm using data array create attributes through setup script.
$data = array ( 'attribute_model' => null, 'backend' => 'eav/entity_attribute_backend_array', 'type' => 'varchar', 'table' => '', 'frontend' => 'eav/entity_attribute', 'input' => 'select', 'label' => $data_get_label['name'], 'frontend_class' => '', 'source' => 'eav/entity_attribute_source_table', 'required' => '1', 'user_defined' => '1', 'default' => '', 'unique' => '0', 'note' => '', 'input_renderer' => null, 'global' => '1', 'searchable' => '1', 'visible' => '1', 'filterable' => '1', //not working, still false. 'comparable' => '1',//not working, still false. 'is_visible_on_front' => '1',//not working, still false. 'is_html_allowed_on_front' => '0', 'is_used_for_price_rules' => '1',//not working, still false. 'filterable_in_search' => '1',//not working, still false. 'used_in_product_listing' => '1', 'used_for_sort_by' => '0', 'is_configurable' => '1', 'apply_to' => 'simple', 'visible_in_advanced_search' => '1', 'position' => '1', 'wysiwyg_enabled' => '0', 'used_for_promo_rules' => '1', 'option' => array ( 'values' => $feature_possible_values, ), );
however, of options not being applied.
can shed light on i'm doing wrong here?
Comments
Post a Comment