ภาพรวมของปัญหา
เมื่อใช้ FooEvents for WooCommerce ร่วมกับ WPML เหตุการณ์ที่แปลแล้วจะสูญเสียข้อมูลเส้นทาง ข้อความรายละเอียดเหตุการณ์ ชื่อแท็บ ข้อความตั๋ว ข้อความขอบคุณ และหัวเรื่องอีเมลตั๋ว และจะแสดงสถานที่จัดงานในภาษาเริ่มต้น
วิธีแก้ปัญหาชั่วคราว
- ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่ม XML ต่อไปนี้และบันทึก:
XML
<wpml-config> <custom-fields> <custom-field action="translate">WooCommerceEventsLocation</custom-field> <custom-field action="translate">WooCommerceEventsDirections</custom-field> <custom-field action="translate">WooCommerceEventsEventDetailsText</custom-field> <custom-field action="translate">WooCommerceEventsEventDetailsOverride</custom-field> <custom-field action="translate">WooCommerceEventsTicketText</custom-field> <custom-field action="translate">WooCommerceEventsThankYouText</custom-field> <custom-field action="translate">WooCommerceEventsEmailSubjectSingle</custom-field> </custom-fields> </wpml-config>
- แปลผลิตภัณฑ์เหตุการณ์อีกครั้ง