从magento中删除所有属性选项的最快方法是什么。我正在引用存储的多选选项/导入时创建的下拉项目。
感谢。
答案 0 :(得分:4)
最简单的方法是运行直接sql命令:
DELETE options FROM eav_attribute AS attribute INNER JOIN eav_attribute_option AS options ON attribute.attribute_id = options.attribute_id WHERE attribute.entity_type_id = 4
其中“4”是catalog_product的entity_type_id(在您的eav_entity_type表中为entity_code'stalkory_product'仔细检查此值)