M2产品属性设置Color Swatches(Visual Swatch or Text Swatch)

3.39K 浏览M2插件和模版分享区

M2产品属性设置Color Swatches(Visual Swatch or Text Swatch)

以color为例,最终效果为

设置步骤

还是不显示?

新建一个config产品配置color子产品保存后,

reindex+清缓存(包括Full Purge Varinish)。

如果还不显示,就是m2的bug。

只要之前是 text swatch,更改为 visual 后,需要手动处理下数据库。

数据库里找到eav_attribute_option_swatch表,把 store_id 不是 0 的记录删掉就好了。

参考:

https://www.mageplaza.com/kb/how-to-configure-swatches-in-magento-2.html

https://github.com/magento/magento2/issues/3139

最后于 6月前 被admin编辑 ,原因:
0