WPML
状态
已由作者解决
解决于
Woodmart 8.5.2
相关插件/主题
Woodmart
主题标签
Compatibility

问题概述

Woodmart与 WPML 结合使用时,您可能会遇到产品属性的色板样式选项未复制到已翻译产品的情况。因此,属性在不同语言之间的显示方式可能会有所不同,例如在默认语言中显示为下拉菜单,而在翻译中显示为内联。

临时解决方法


  • 在您的 WordPress 仪表盘中,转到WPML > 设置 > 自定义 XML 配置

  • 添加以下 XML 配置并保存:
     
    <wpml-config>
        <custom-fields>
            <custom-field action="copy" label="Swatches Attribute">_woodmart_swatches_attribute</custom-field>
        </custom-fields>
        <custom-term-fields>
            <custom-term-field action="copy" label="Swatches Dropdown">not_dropdown</custom-term-field>
        </custom-term-fields>
    </wpml-config>

所有已知问题 →