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:
- Go to WPMLSettings and open the Custom XML Configuration tab.
- Paste the code below and click Save.
- 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.