ภาพรวมของปัญหา
เมื่อใช้งาน YITH WooCommerce Wishlist ร่วมกับ WPML คุณอาจพบปัญหาต่อไปนี้: ป้ายกำกับปุ่มที่คุณพิมพ์ในวิดเจ็ต Elementor ของปลั๊กอิน (YITH Wishlist Add button) จะยังคงเป็นภาษาเริ่มต้นบนหน้าที่แปลแล้วของคุณ
วิธีแก้ปัญหาชั่วคราว
ปล่อยป้ายกำกับในวิดเจ็ต Elementor ให้ว่างไว้ จากนั้นวิดเจ็ตจะใช้ข้อความจากการตั้งค่า YITHWishlistCustomizationLabels ของปลั๊กอิน ซึ่งคุณสามารถแปลได้ใน WPMLการแปลสตริง
หรือไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่มโค้ดนี้แล้วบันทึก:
XML
<wpml-config><elementor-widgets><widget name="yith_wcwl_add_to_wishlist"><fields><field type="YITH Wishlist: button label" editor_type="LINE">label</field><field type="YITH Wishlist: browse wishlist label" editor_type="LINE">browse_wishlist_text</field><field type="YITH Wishlist: already in wishlist label" editor_type="LINE">already_in_wishslist_text</field><field type="YITH Wishlist: product added label" editor_type="LINE">product_added_text</field></fields></widget></elementor-widgets></wpml-config>