WPML

問題の概要

WPMLでYITH WooCommerce Cart Messagesを使用すると、その設定(タイプ、ページ、ユーザー、ボタンリンク)が翻訳にコピーされないため、翻訳されたメッセージが表示されません。また、期限切れのメッセージもセカンダリ言語で引き続き表示されます。

回避策

  1. WPML設定カスタム XML 設定に移動し、次のXMLを追加して保存します。
    XML
    <wpml-config>
      <custom-fields>
        <custom-field action="copy">_ywcm_message_type</custom-field>
        <custom-field action="copy">_ywcm_message_pages</custom-field>
        <custom-field action="copy">_ywcm_message_user</custom-field>
        <custom-field action="copy">_ywcm_message_role_user</custom-field>
        <custom-field action="copy">_ywcm_message_layout</custom-field>
        <custom-field action="copy">_ywcm_message_cart_page_position</custom-field>
        <custom-field action="copy">_ywcm_message_country</custom-field>
        <custom-field action="copy">_ywcm_message_start</custom-field>
        <custom-field action="copy">_ywcm_message_expire</custom-field>
        <custom-field action="copy">_ywcm_message_products_cart_minimum</custom-field>
        <custom-field action="copy">_ywcm_message_minimum_amount</custom-field>
        <custom-field action="copy">_ywcm_message_button_url</custom-field>
      </custom-fields>
    </wpml-config>
  2. メッセージを再度翻訳します。

すべての既知の問題

この問題についてサポートが必要な場合

サポートのご質問をお寄せください。一緒に調査いたします。