Magento - Product Attribute which is not visible/editable in administration

前端 未结 1 1842
执笔经年
执笔经年 2021-01-24 16:24

Is it possible in code (or manually) to create a Product Attribute that is not visible (and thus not editable) through the administration edit product page? And how?

(Th

相关标签:
1条回答
  • 2021-01-24 16:46

    Yes, it is possible. If you doing it in install script - you should set 'visible' to false:

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

    If you need change it for existent attribute directly in db - go to catalog_eav_attribute table, find your attribute (look for attribute id by attribute code in eav_attribute table) and set it's is_visible field to 0.

    0 讨论(0)
提交回复
热议问题