ภาพรวมของปัญหา
เมื่อใช้ Product Page Shipping Calculator for WooCommerce กับ WPML ตัวเลือก “Disable shipping cost” ของสินค้าจะหายไปในการแปล ทำให้สินค้าที่แปลแล้วแสดงเครื่องคำนวณ นอกจากนี้ ป้ายกำกับ “When no product variation is selected” ยังไม่สามารถแปลได้
วิธีแก้ปัญหาชั่วคราว
- ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่ม XML ต่อไปนี้และบันทึก:
XML
<wpml-config> <custom-fields> <custom-field action="copy">pisol_disable_shipping_calculator</custom-field> </custom-fields> <admin-texts> <key name="pi_ppscw_select_variation_msg" /> </admin-texts> </wpml-config>
- แปลป้ายกำกับ “When no product variation is selected” ใน WPMLการแปลสตริง
- แปลผลิตภัณฑ์อีกครั้ง