问题概述
将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>
- 在 WPML字符串翻译中翻译“When no product variation is selected”标签。
- 再次翻译产品。