ภาพรวมของปัญหา
เมื่อใช้งาน 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เดียวกันสำหรับแต่ละบทบาท