WPML

Overview of the Issue

When using YITH WooCommerce Badge Management Premium, badges assigned to products do not display on their translated versions. This issue arises because certain metadata required for badge display is not copied or synced to the translated products.

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Please, make sure of having a full site backup of your site before proceeding.

1. Add Custom XML Configuration

  • Go to WPMLSettingsCustom XML Configuration
  • Paste the following code and click “Save”
    <wpml-config>
      <custom-fields>
        <custom-field action="copy">_yith_wcbm_badge_from_date</custom-field>
        <custom-field action="copy">_yith_wcbm_badge_ids</custom-field>
        <custom-field action="copy">_yith_wcbm_badge_schedule</custom-field>
        <custom-field action="copy">_yith_wcbm_badge_to_date</custom-field>
      </custom-fields>
    </wpml-config>

2. Set Badge Post Type to “Not Translatable”

  • Go to WPMLSettingsPost Types Translation
  • Locate Badges (yith-wcbm-badge) and set it to Not translatable

3. Translate Badge Text

  • Go to WPMLString Translation
  • Locate the badge text under the yith-woocommerce-badges-management domain and translate it.

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues