WPML
状态
已解决

问题概述

目前,WooCommerce Mix and Match Products 插件与 WPML Multilingual & Multicurrency for WooCommerce 的多货币功能之间存在兼容性问题。如果您使用我们的货币切换器在 Mix and Match 产品上选择不同的货币,货币符号会改变,但价格不变。

临时解决方法

发生这种情况是因为 Mix and Match Products 插件将总价存储在自定义字段中。但是,如果您安装了多种货币,但每种语言只显示一种货币,则可以按照以下步骤翻译此自定义字段并显示正确的价格:


  1. 前往 WPML设置自定义 XML 配置

  2. 添加以下 XML 代码:
  3. <wpml-config>
        <custom-fields>
            <custom-field action="translate">_mnm_base_price</custom-field>
            <custom-field action="translate">_mnm_base_regular_price</custom-field>
            <custom-field action="translate">_mnm_base_sale_price</custom-field>
        </custom-fields>
    </wpml-config>


    • 编辑原始产品并保存。

    • 使用次要货币的相同值翻译新字段。

请注意,仅当您没有在同一种语言中使用多种货币时,此临时解决方法才有效。

所有已知问题 →