[Resolved] Script for automatic product translation updates
This thread is resolved. Here is a description of the problem and solution.
Problem:
How to automatically set the translation of products to complete in bulk.
Solution:
It is not possible to do so, but if you have a small change in the product you can use the "Minor Edit" option to prevent the need to update the translation:
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.
We manage 3 webshops with WPML and Wholesale suite. On all sites we have the same problem:
When a product translation update is needed: the products are not shown on the wholesale form.
How can we automatically update the product translation when the main language product is updated?
Is there a script possible to do this by cron job perhaps?
We will need to have more detailed information on how you set up your shop. Also, I am not sure what you mean by the wholesale feature. Do you use a specific plugin for that?
If you can give us as much information that you can with screenshots it will help us understand the issue in question and also your setup.
Finally, Would you please kindly follow the steps below to provide the debug information?
- Go to WordPress Dashboard >WPML > Support > Debug Information (Link)
- Copy the Debug Information from there.
- Find the “Additional Data” section below.
- Click on the “Debug Info” item to expand it.
- Paste the debug information into the text area.
- Click the “Send Debug Info” button.
As we mentioned this happens on multiple sites, I've added the debug info for the site that's the most up to date. This site has a custom language set up, but it's also the case on other sites where we use NL/EN/DE.
We use a plugin called WholeSale Suite, which enables us to set up a separate order form for resellers. That way they can order at different prices. Whenever we update a product in the default language (like update the price/change category, things that are automatically changed for the other languages as well), the product disappears from this reseller form in the other languages. Usually, updating the product translations solves this but this shouldn't be necessary. The product doesn't disappear from the customer website. That's why we're wondering if there's a way for the product translations to keep the status of "up to date" even when an update to the default language has happened.
I'd love to provide you with more info on our set up, but could you be slightly more specific with what you'll need? I could also provide you with login details.
Thank you for the information. Unfortunately, it is not possible to automatically update translation after the product is changed in the original language.
If there is a change in the original language the translation will switch to "need an update" mode and usually, it happens when an aspect of a product which has a translation is changed and it needs to be translated to make sure that translation is back to 100% complete.
If the change that you want to do in the original language does not have significance for the translation, you can check the "Minor edit - don't update translation" checkbox when you update the website and that will not trigger the need for update translation. (see the screenshot)