問題の概要
WPMLでProduct Page Shipping Calculator for WooCommerceを使用すると、商品の「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」ラベルを翻訳します。
- 商品を再度翻訳します。