问题概述
将WooCommerce Wholesale Prices Premium与 WPML 结合使用时,仅批发客户可见的产品在其翻译页面上会对所有人可见。翻译后的产品还会丢失其基于数量的折扣和最低订购量。
临时解决方法
- 前往 WPML设置自定义 XML 配置,添加以下 XML 并保存:
XML
<wpml-config> <custom-fields> <custom-field action="copy">wwpp_product_wholesale_visibility_filter</custom-field> <custom-field action="copy">wwpp_post_meta_enable_quantity_discount_rule</custom-field> <custom-field action="copy">wwpp_post_meta_quantity_discount_rule_mapping</custom-field> <custom-field action="copy">wholesale_customer_wholesale_minimum_order_quantity</custom-field> </custom-fields> </wpml-config>
- 更新产品的翻译。
- 如果您使用其他批发角色,请为每个角色添加相同的
<role>_wholesale_minimum_order_quantity条目。