This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to save variations for a product. After updating all plugins and WordPress, the variations disappeared upon saving. Additionally, the product appeared out of stock on the front end, and the backend indicated '3 variations' without displaying them. A subsequent issue was that the links to the translated languages were not visible, despite the product being translated. Solution: We recommended the following steps to resolve the issue: 1. Navigate to WooCommerce > WooCommerce Multilingual > Attributes, select the attribute added to the product, and click on the "Synchronize attribute" button. 2. Go to WooCommerce > WooCommerce Multilingual > Status and click on the "Troubleshooting" link. Select the options shown in the provided screenshot and click on "Start". 3. If the issue persists, go to WPML > Settings, scroll down to Post type Translation, set the translation preference for "Variations" to "Translatable", and save the changes. 4. Then, navigate to WPML > Support > Troubleshooting, select "Product" from the Dropdown under "Cleanup" and click on "Synchronize Post Taxonomies". Repeat the process for "Variation". These steps should synchronize the variations and resolve the issue. If the problem continues, we invite the client to contact us for further assistance.
Please note that the solution provided might be outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, 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.
Hi, following the advise to do the updates, all plugins and WordPress have been updated.
This is being tested on staging, if you need access to I will provide it. The product:
hidden link
it is a variable product, I try adding some variations as you see from the first screenshot, as soon as the save button is clicked they disappear, as from screenshot 2
the product in the front end does not show any variation available, therefore the product looks out of stock, the back end says "3 variations" but clicking on the Expand link does not show them
please note that it is only occurring while the plugin WooCommerce Multilingual & Multicurrency is active
I understand the issue you're having. Upon getting your report, I tested it in my development environment, keeping only the latest version of WCML, WPML, String Translation and WooCommerce enabled, and can confirm that the variations are getting saved properly. I haven't encountered any issues.
On your end, it could be happening due to a conflict between WooCommerce Multilingual and any third-party plugins. Have you checked by keeping all plugins deactivated except for WooCommerce Multilingual, WPML, String Translation, and WooCommerce?
If that solves the issue, start activating the plugins and after activating each, try to save the variations again. In this way, you can pinpoint what exactly causing the issue.
But, if the issue persists even with these plugins activated, then please enable the WordPress Debug log by following the guide below and then try to save the variations again.
If the issue occurs again, kindly access the log file and check if any errors have been logged. If you come across any errors after saving the variations, please copy them and share them with us in your next response. I will check and guide you on what to do next.
Hello There,
Thank you for sharing the updated Debug Info and the Error log.
I noticed some deprecated warnings in the Error log, but there were no errors or warnings related to WPML.
Considering you've pointed out that the variations count is visible but the actual variations are not, this could be a synchronization issue. Could you please try the following steps to see if it resolve the issue?
- Please go to WooCommerce > WooCommerce Multilingual > Attributes
- Select the Attribute that you've added to the product.
- You should see a button named "Synchronize attribute" at the end of the page. Click on that button and wait till the synchronization is completed.
- Once done, please go to WooCommerce > WooCommerce Multilingual > Status and click on the "Troubleshooting" link at the end.
- Select the options marked in this screenshot(hidden link) and click on "Start"
Once the process is completed, open the product and check if the variations are showing with the product or not. If not, please also try these steps.
- Please go to "WPML > Settings" and scroll down to the Post type Translation.
- Set the translation preference for "Variations" to "Translatable" and save the changes.
- Once done, go to "WPML > Support > Troubleshooting"
- Select "Product" from the Dropdown under "Cleanup" and click on "Synchronize Post Taxonomies". Once done, select "Variation" from the Same dropdown and click on the button.
The steps above will ensure that the variations are synchronized and hopefully will solve the issue. But, feel free to let me know if you need further assistance. I will be happy to help.
thank you for the detailed info, doing so solved the issue with the variations being deleted upon saving them.
But a new problem arise now, all the links to the languages are not visible any more. I did check in the translation area that the product is translated.
If you need access to the staging I can send you the details, let me know please.
Regards
New threads created by Prosenjit Barman and linked to this one are listed below:
Glad to hear that the suggestion helped to solve the issue.
Kindly be informed that to maintain clarity and organization in each support thread, we are allowed to discuss one issue per ticket. As the issue you mentioned in your last message is different than the issue that you reported in this ticket, I have created a new ticket for you to address that issue separately. A response will be sent to that ticket soon.
If you need further assistance with the variation issue, please don't hesitate to let me know—I'm here to help. If everything is resolved, kindly mark this thread as resolved.