Tổng quan về sự cố
Khi sử dụng WooCommerce Wholesale Prices Premium với WPML, một sản phẩm mà chỉ khách hàng mua sỉ mới có thể thấy sẽ hiển thị cho tất cả mọi người trên trang bản dịch của nó. Sản phẩm được dịch cũng bị mất các khoản giảm giá theo số lượng và số lượng đặt hàng tối thiểu.
Giải pháp tạm thời
- Truy cập WPMLCài đặtCấu hình XML tùy chỉnh, thêm đoạn XML sau và lưu:
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>
- Cập nhật các bản dịch của sản phẩm.
- Nếu bạn sử dụng các vai trò bán buôn khác, hãy thêm cùng một mục
<role>_wholesale_minimum_order_quantitycho mỗi vai trò.