2012-02-10 79 views

回答

5

是的,这是可能的。如果你这样做在安装脚本 - 你应该设置'visible'为false:

$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, '<attribute_code>', array(
    ... 
    'visible'  => false, 
    ... 
)); 

如果需要直接在DB改变它存在的属性 - 去catalog_eav_attribute表,找到你的属性(寻找属性ID的属性代码在eav_attribute表中)并将它的is_visible字段设置为0.

+0

谢谢!它为我工作:) – sudhakar 2013-09-05 08:46:12

+0

你确定is_visible字段在eav_attribute表中可用吗?我正在谈论Magento版本。 1.7.0.2。因为我只能得到这些字段('attribute_id','entity_type_id','attribute_code','attribute_model','backend_model','backend_type','backend_table','frontend_model','frontend_input','frontend_label '''''frontend_class','source_model','is_required','is_user_defined','default_value','is_unique','note') – Jyotiranjan 2015-04-26 07:38:56

相关问题