WPML

Overview of the Issue

When using CommerceKit with WPML, you might experience the following issue: an attribute with global color or image swatches shows the colors on products in the default language. On translated products, the same swatches have no color or image.

Workaround

Tell WPML to copy the swatch colors and images to the translated attribute terms:

  1. Go to WPMLSettings and open the Custom XML Configuration tab.
  2. Paste the code below and click Save.
  3. Translate your products again.
XML
<wpml-config>
  <custom-term-fields>
    <custom-term-field action="copy">commercekit_swatch_color</custom-term-field>
    <custom-term-field action="copy">commercekit_swatch_image</custom-term-field>
  </custom-term-fields>
</wpml-config>

You can also set the colors in the Swatches tab of each product. Product swatches show on translated products.

All known issues

Need Help with This Issue?

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