WPML

Overview of the Issue

When using YITH WooCommerce Cart Messages with WPML, a translated message never shows, because its settings (type, pages, users, button link) are not copied to the translation. An expired message also still shows in the second language.

Workaround

  1. Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
    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. Translate the messages again.

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.