Overview of the Issue
When using WooCommerce Wholesale Prices Premium with WPML, a product that only wholesale customers can see is visible to everyone on its translated page. The translated product also loses its quantity based discounts and its minimum order quantity.
Workaround
- Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
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>
- Update the translations of the products.
- If you use other wholesale roles, add the same
<role>_wholesale_minimum_order_quantityentry for each role.