Tổng quan về sự cố
Khi sử dụng Product Page Shipping Calculator for WooCommerce với WPML, tùy chọn “Disable shipping cost” của sản phẩm bị mất trên bản dịch, do đó sản phẩm đã dịch sẽ hiển thị công cụ tính toán. Ngoài ra, nhãn “When no product variation is selected” không thể dịch được.
Giải pháp tạm thời
- Truy cập WPMLCài đặtCấu hình XML tùy chỉnh, thêm XML sau và lưu lại:
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>
- Dịch nhãn “When no product variation is selected” trong WPMLDịch chuỗi.
- Dịch lại các sản phẩm.