当我创建可配置的产品时,在“关联产品”的“使用默认产品”的“关联产品”中,属性的标签未选中。

我已经修复了此更改 product.js (第404行),添加 attribute.use_default == null:

                if (attribute.use_default == '1' || attribute.use_default == null  ) {
                use_default_checked = ' checked="checked"';
                label_readonly = ' readonly="readonly"';
            }

这项工作正常。

但是,现在我想为我已经创建的所有产品设置此功能。

我将接受答案,帮助我在数据库上创建查询

有帮助吗?

解决方案

如果要为所有可配置产品的所有属性执行此操作,则:

更新catalog_product_super_attribute_label set use_default = 1

如果您想为特定产品或特定属性执行此操作 JOINcatalog_product_super_attribute 表使用 product_super_attribute_id 两个桌子的字段。

许可以下: CC-BY-SA归因
scroll top