Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

After installing WPML and setting up translations we found, that our swatches at product attributes have been gone.

Solution:

The user reported:

I set Text swatch for all options in german and english and it works like a charm!

Relevant Documentation:

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 9 months ago.

Assisted by: Itamar.

Author Posts
July 18, 2023 at 4:31 am #14054281

franzP-9

After installing WPML and setting up translations we found, that our swatches at product attributes have been gone.

When googling around I found that color swatches will re-appear when following this guide https://wpml.org/forums/topic/variation-swatches-for-the-second-language-is-blank/

Unfortunatelly I was not able to repeat this guide for attribute size - it is still being shown as dropdown.

swatchNotShowing.PNG
July 18, 2023 at 5:36 am #14054399

franzP-9

see uploaded screenshots of attributes, attribute size

I've also uploaded a screen of WPML Settings for user defined meta, which I used to set "color" to "copy" - that worked for my color attribute swatches.

still don't know what to do to make my size attribute showing up as swatches, too

if you need credentials let me know.

user_defined_meta.PNG
attribute_size.PNG
attributes.PNG
July 19, 2023 at 2:35 am #14062431

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Franz,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

You can try to search for the custom field "size" and set it to "Copy" as the field "color". And follow some steps below to troubleshoot the issue:

1. Translate the attribute "size" by following the documentation https://wpml.org/documentation/related-projects/woocommerce-multilingual/#taxonomies

2. Make a small change to the product title/content > Save changes > Update the translation.

3. If it does not work, please go to WooCommerce > WooCommerce Multilingual & Multicurrency > Settings > Troubleshooting > Enable "Sync products variations" > Click "Start".

Look forward to your reply.
Thanks

July 19, 2023 at 5:59 am #14062565

franzP-9

Thanks for your reply. I tried all of your steps but had no success.

1. I did struggle with very first hint. There is no attribute "size" as mentioned before..
2. did so - had no effect
3. did so - had no effect

July 19, 2023 at 7:37 am #14062875

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

July 20, 2023 at 2:17 am #14068975

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

When I edit a size, for example XS, I do not see a color in the option Color Swatch is set. Then I set a color (purple) > Save and the size attribute in the frontend display as swatch correctly, please check this screenshot hidden link

For other sizes, please go to Products > Attributes > Größe > Edit a size > Set color in the option Color Swatch.

Look forward to your reply.
Thanks

July 20, 2023 at 4:39 am #14069093

franzP-9

Thank you so much - I set Text swatch for all options in german and english and it works like a charm!