WPML

ภาพรวมของปัญหา

เมื่อใช้งาน YITH WooCommerce Cart Messages ร่วมกับ WPML ข้อความที่แปลจะไม่แสดงผลเลย เนื่องจากการตั้งค่า (ประเภท หน้า ผู้ใช้ ลิงก์ของปุ่ม) ไม่ได้ถูกคัดลอกไปยังการแปล ข้อความที่หมดอายุแล้วยังคงแสดงผลในภาษารองด้วยเช่นกัน

วิธีแก้ปัญหาชั่วคราว

  1. ไปที่ 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>
  2. แปลข้อความอีกครั้ง

ปัญหาที่ทราบแล้วทั้งหมด

ต้องการความช่วยเหลือเกี่ยวกับปัญหานี้หรือไม่

ถามคำถามถึงฝ่ายสนับสนุน และเราจะตรวจสอบเรื่องนี้ไปพร้อมกับคุณ