Skip Navigation

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

Problem:
The client was experiencing issues with attributes/variations not synchronizing between different language versions of a product in WooCommerce, even after resolving a separate issue with disappearing add-ons.

Solution:
1. We navigated to WPML > Settings > Custom Field Translation and enabled an option to display relevant custom fields in the WordPress Editor.
2. We changed the custom fields with the prefix "WooCommerceEvents..." from "Not translate" to "Copy" to ensure event options are copied from product to product.
3. We re-applied the translation in WCML to ensure the translation symbol showed as completed, resolving the issue.
4. We reminded the client that after editing the original content, they must update the translation for the changes to take effect.
5. We noted that stock levels sync automatically after a purchase, but attributes declared directly on products require re-translation of the product.
6. We suggested declaring global attributes in WooCommerce for easier synchronization, which can be translated once and synced via WooCommerce > WooCommerce Multilingual & Multi-Currency > Status > Troubleshooting.

If after following these steps the product translation is still not working as expected, we recommend naming an example product for further investigation. If this solution doesn't look relevant, please open a new support ticket.

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 Andreas W. 1 year ago.

Assisted by: Andreas W..

Author Posts
January 4, 2024 at 3:52 pm #15152207

Jānis Anspaks

Thank you very much!

Looks like this change resolved the disappearing add-ons issue. After the value on server was changed I tried at least 10 times to repeat the steps that previously caused add-ons to disappear and now they were not disappearing anymore.

However, this change didn't help with the other issue which is more critical then disappearing add-ons. The issue with non-synchronizing attribute/variation issue between the languages is still present. Should I explain that issue in more details here or you/me should create a separate ticket for this?

January 4, 2024 at 5:18 pm #15152570

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I was able to see this issue on the product "Saulrieta brauciens Jelgavā izgaismotās laivās" which had only one product variation available.

If you go to WPML > Settings > Custom Field Translation you should see now that I enabled an option, that will display relative custom fields on all content, where those fields are used.

When editing now a product or any other content, you will see all important custom fields in the bottom section of the WordPress Editor.

There were quite many fields with the prefix "WooCommerceEvents..." which were set "Not translate". I have now set them to copy, so that the Event Options will be copied from product to product.

I realized that the translation symbol did not show as completed in WCML so I applied the translation again and the issue was gone.

Please test again and let me know if further assistance is needed.

January 5, 2024 at 12:17 pm #15154290

Jānis Anspaks

Looks like now attributes are indeed synchronizing, but not variations.
I just did the following:

1. to start from scratch I deleted english version of the product "Saulrieta brauciens Jelgavā izgaismotās laivās".
2. Then I added english translation in the section that you can see in screenshot "Screenshot 2024-01-05 at 13.40.07.jpg". As I previously have completed that translation then it was already there and 100% complete. As I updated the page then of course all attributes and variations were copied and in sync.
3. In main (latvian) product version I changed last attribute 11.09 16:00 -> 11.09 17:00 and added new one 12.09 10:00 (saved data). Then in variations section where I could see the variations without selected date and time (ID #20117) I selected 11.09 17:00 as I updated the time in attributes. Then I manually added new variation for the 12.09 10:00. Saved variations and updated whole page.
4. I checked latvian version and of course all changes that I just made were there.
5. But as I switched to english version I saw an old 11.09 16:00 (not 17:00) and there were not my newly added 12.09 10:00.
6. Then I switched back to latvian product version and I saw (in a place that is in screenshot) that English translation could be updated (instead of pencil there was a sync symbol) I updated the translation and the whole page.
7. Now when I opened the english version of that product (fronted that user can see) I can see that 11.09 is gone completely (there is no 11.09 16:00 nor 11.09 17:00 option) but I can see that 12.09 10:00 is there.
8. Now that I check the english version in product editor I can see that attributes are actually synced as you can see in screenshot "eng-attributes.jpg", but in variations the variation where I suppose 11.09 17:00 should've been - it is without any attribute selected.

From this I can conclude that it seems that I also have to update translation in order for attribute/variations changes to be synced to english. Is this correct?
And is this normal that the variation/attribute that I edited is not synced? If this is normal then it could be that I cannot do that and instead of editing them I have to delete them and add new ones?

I will not edit this product until you relpy so you can go into the admin panel and check around if you have to.

eng_attributes.jpg
eng_variations.jpg
Screenshot 2024-01-05 at 13.40.07.jpg
January 5, 2024 at 2:24 pm #15155111

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, you always need to update the translation after editing the original content.

Only the stock will be synced automatically between languages once the product receives a purchase in any language.

January 5, 2024 at 3:24 pm #15155391

Jānis Anspaks

Ok, thanks!

And what about these questions (from my previous message):
And is this normal that the variation/attribute that I edited is not synced?
If this is normal then it could be that I cannot do that and instead of editing them I have to delete them and add new ones?

Even after the translation update that variation where I changed the date was not synced to the product english version.

January 5, 2024 at 3:53 pm #15155594

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You declare your attributes directly on the products, which means you need to translate the products each time you update the original content.

Once you translate the product, the translation should have the same attributes and variations.
Take note again, that I adjusted many custom field settings regarding your products, and those changes will only take effect if you edit the original product and translate it again.

If the product translation is currently still not working as expected on your site, then please name me an example product (title, link) and I will have another look.

HINT:
You could alternatively declare global attributes in WooCommerce - for those we have a sync option inside WCML.

Those global attributes will get translated only once at WooCommerce > WooCommerce Multilingual & Multi-Currency > Attributes and you can sync them at WooCommerce > WooCommerce Multilingual & Multi-Currency > Status > Troubleshooting.

This sync option will not take effect on custom attributes that are declared directly on each product.