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 3 replies, has 2 voices.

Last updated by Bigul 11 months, 1 week ago.

Assigned support staff: Bigul.

Author Posts
June 20, 2019 at 11:36 am #4059515


See this thread, its happened again?

Default language products is OK:
hidden link

All other languages missing some swatches:
hidden link

June 20, 2019 at 1:26 pm #4060175


For info, the data is initially stored in the database by the Variation and Swatches and Photos, but then gets replaced.

I know this because in the file woocommerce-variation-swatches-and-photos/classes/class-wc-swatches-product-data-tab.php I outputted the data to the screen and I added a die() command right after $product->save_meta_data(). I then checked the database the correct swatches data was saved. So this plugin is doing its job.

But if I remove the die, so let the full page processing happen, the data gets removed. Something in WPML is removing it.

Data that should be saved:


Data that gets saved after further processing by something in WPML:

June 20, 2019 at 1:35 pm #4060243


If I comment out this line in woocommerce-multilingual/compatibility/class-wcml-variation-swatches-and-photos.php

then it allows us to save the colours fine. So your class-wcml-variation-swatches-and-photos.php is still not working right.

//update_post_meta( $trnsl_product_id, '_swatch_type_options', $tr_atts ); // Meta gets overwritten.

June 21, 2019 at 9:35 am #4065891


Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)


Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

Please fill the private details fields after a full site backup. I would like to access the admin area of your site for further checking.

Please check the following links for more details about our private information sharing policies.

hidden link

Please allow me to make a duplicator copy of your site using the Duplicator plugin( for debugging the issue on my local server.



The topic ‘[Closed] Swatch colours missing again’ is closed to new replies.