Overview of the Issue
When using WooCommerce Quantity Manager with WPML, the quantity rules of a product, a variation or a product category do not apply to its translations. Translated products accept any quantity.
Workaround
- Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
XML
<wpml-config> <custom-fields> <custom-field action="copy">_wqm_product_quantity</custom-field> <custom-field action="copy">_wqm_product_value</custom-field> <custom-field action="copy">_wqm_product_step</custom-field> <custom-field action="copy">_product_default_quantity</custom-field> <custom-field action="copy">_wqm_variation_product_quantity</custom-field> <custom-field action="copy">_wqm_variation_product_value</custom-field> <custom-field action="copy">_wqm_variation_product_step</custom-field> <custom-field action="copy">_wqm_variation_default_quantity</custom-field> </custom-fields> <custom-term-fields> <custom-term-field action="copy">quantity_manager_category_quantity</custom-term-field> <custom-term-field action="copy">quantity_manager_category_value</custom-term-field> <custom-term-field action="copy">quantity_manager_category_step</custom-term-field> <custom-term-field action="copy">_default_product_quantity</custom-term-field> <custom-term-field action="copy">quantity_manager_override_category_roles</custom-term-field> <custom-term-field action="copy">quantity_manager_category_user_roles[]</custom-term-field> </custom-term-fields> </wpml-config>
- Save the original products and categories again.