问题概述
将 WooCommerce Wholesale Pro 与 WPML 结合使用时,批发客户购买已翻译的产品时会支付不同的价格:角色价格不会复制到翻译中,并且类别的批发折扣不会应用到已翻译类别的产品上。
临时解决方法
- 对于默认 Wholesale 角色的角色价格,前往WPML设置自定义 XML 配置,添加以下 XML 并保存:
XML
<wpml-config> <custom-fields> <custom-field action="copy">wcwp_wholesale</custom-field> <custom-field action="copy">wcwp_wholesale_sale</custom-field> </custom-fields> </wpml-config>
- 再次翻译产品。
- 对于分类折扣,为每个已翻译的分类设置相同的批发折扣。