Background of the issue:
I am trying to synchronize WooCommerce product variations on my bilingual website (primary: Czech, secondary: English). In the English version, products in certain categories do not display variations, while in others they do. I found a similar issue on the WPML support forum (https://wpml.org/forums/topic/woo-product-variations-not-synching/), but my website does not use object cache. I use WP Rocket and CloudFlare for caching. I attempted to update the product title in the main language, which temporarily displayed the variations in the translation, but editing the translation causes them to disappear again. Example URLs: hidden link, hidden link, hidden link, hidden link
Symptoms:
In the English version of the website, product variations are not displayed in certain categories. Updating the product title temporarily resolves the issue, but editing the translation causes the variations to disappear again.
Questions:
Why are product variations not displaying in certain categories on the English version of my website?
How can I permanently fix the issue of disappearing variations after editing translations?
Thank you. I can confirm that duplicating the original product is working.
But this method is very inconvenient. There are a lot of products in the store, and after duplicating in this way will need to:
- Delete the original product
- Change the title of the duplicate
- Change the slug of the duplicate
- Update the SKU, because after duplicating, the index "-1" is added to the end of the line
- Update the translation
etc.
A lot of actions that need to be carefully performed manually for each product, and the likelihood of making mistakes.
It is also unclear whether this error will occur again after importing or adding a new batch of products. Do you think that the snippet you proposed will help prevent the error from occurring with new products?