問題の概要
WPMLでWooCommerce Wholesale Pricesを使用すると、卸売顧客が翻訳された製品に対して小売価格を支払う問題や、卸売価格のタイトルと「See wholesale prices」のテキストが英語のままになる問題が発生する場合があります。
回避策
WPML設定に移動し、カスタム XML 設定に以下を追加します。
XML
<wpml-config>
<custom-fields>
<custom-field action="copy">wholesale_customer_wholesale_price</custom-field>
<custom-field action="copy">wholesale_customer_have_wholesale_price</custom-field>
</custom-fields>
<admin-texts>
<key name="wwpp_settings_wholesale_price_title_text"/>
<key name="wwp_see_wholesale_prices_replacement_text"/>
</admin-texts>
</wpml-config>他の卸売ロールを使用している場合は、各ロールに対して同じ2行のcustom-fieldを追加します(wholesale_customerの代わりにロール名を使用します)。その後、商品の翻訳を更新し、WPML文字列翻訳でテキストを翻訳します。2.2.3より古いバージョンからのアップデート後は、プラグインの設定を1回保存します。