Tổng quan về sự cố
Khi sử dụng WooCommerce Quantity Manager với WPML, các quy tắc số lượng của một sản phẩm, một biến thể hoặc một danh mục sản phẩm không áp dụng cho các bản dịch của chúng. Các sản phẩm đã dịch chấp nhận bất kỳ số lượng nào.
Giải pháp tạm thời
- Truy cập WPMLCài đặtCấu hình XML tùy chỉnh, thêm XML sau và lưu:
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>
- Lưu lại các sản phẩm và danh mục gốc.