[Resolved] Update all product translations in one go (en masse)
This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing issues with WooCommerce product translations on your site. Specifically, when you update stock status or prices in the default language (English), these changes are not automatically reflected in the Dutch translations. This discrepancy requires manual updates for each product in the second language to maintain accurate stock and pricing information. Solution: 1) If the stock status changes due to orders in the Dutch version, you should apply the workaround provided on the WPML errata page. 2) If the stock changes because you manually updated it in the English version, you need to manually update the Dutch translation to synchronize the stock.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also advise checking related known issues on https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.
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.
Background of the issue:
I am having an issue with translations for WooCommerce products on my site hidden link. I translate products using the basic WordPress editor, product by product. Most of them somehow now require an update in the second language (Dutch).
Symptoms:
Requiring an update is causing an issue with stock and changes in prices, which are fixed in all translations. For example, I changed the stock status to 'out of stock' on the English page, but the Dutch product page somehow still had the stock/product. This seems to be fixed if I manually update the Dutch translation.
Questions:
Is there a way to update all the Dutch translations in one go?
Thanks for contacting WPML forums support. I'll be glad to help you today.
1) You would need to update them one by one. You can try the following steps, but they might not be able to fix the issue:
1- Go to Products-> All Products
2- Switch the language from the top admin bar
3- Select all the products
4- Select Edit from the action dropdown menu
5- Change the status to Publish
6- Update
If the above steps don't help, you will need to update the translations one by one after updating the default language products.
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.
The stock was changed on a variation of the product. Set from 2 items to 1 item.
The translated site, Dutch in this case, did not update the stock status and still lists 2 items in stock. This while is saw the English page change from 2 to 1.
The solutions is to UPDATE the translated page, even when it does not say it need an update.
Would this be a WPML problem or maybe WooCommerce?
1) If the stock is changed due to orders in the 2nd language, please apply the workaround mentioned on your shared page.
2) If the stock is changed because you manually change the stock in the default language product, please update the translation in order to sync the stock.
Does this mean that if i correct the stock manually, which happens sometimes as people take stuff out of inventory for other purpose, then i need to update the translation?
That means that stock amounts are not independent of translations, are they "translated" also ??
The problem is weird be as it seems to be expected behavior then i guess we can close it.
It is of course very silly that stock is also independently translated and stored with translations. Stock on an item is fixed and is the same for every translation. If you change it in the base ( english ) version is, it is the same for the rest.
It is a BIG design / programming issue if this issue is "expected behavior" and someone should seriously consider fixing this.
It is extremely annoying to have to save and update all translations if one decides to change stock amounts.