ภาพรวมของปัญหา
เมื่อใช้งาน YITH WooCommerce Cart Messages ร่วมกับ WPML ข้อความที่แปลจะไม่แสดงผลเลย เนื่องจากการตั้งค่า (ประเภท หน้า ผู้ใช้ ลิงก์ของปุ่ม) ไม่ได้ถูกคัดลอกไปยังการแปล ข้อความที่หมดอายุแล้วยังคงแสดงผลในภาษารองด้วยเช่นกัน
วิธีแก้ปัญหาชั่วคราว
- ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่ม XML ต่อไปนี้และบันทึก:
XML
<wpml-config> <custom-fields> <custom-field action="copy">_ywcm_message_type</custom-field> <custom-field action="copy">_ywcm_message_pages</custom-field> <custom-field action="copy">_ywcm_message_user</custom-field> <custom-field action="copy">_ywcm_message_role_user</custom-field> <custom-field action="copy">_ywcm_message_layout</custom-field> <custom-field action="copy">_ywcm_message_cart_page_position</custom-field> <custom-field action="copy">_ywcm_message_country</custom-field> <custom-field action="copy">_ywcm_message_start</custom-field> <custom-field action="copy">_ywcm_message_expire</custom-field> <custom-field action="copy">_ywcm_message_products_cart_minimum</custom-field> <custom-field action="copy">_ywcm_message_minimum_amount</custom-field> <custom-field action="copy">_ywcm_message_button_url</custom-field> </custom-fields> </wpml-config>
- แปลข้อความอีกครั้ง