This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing issues with variable products not displaying correctly in Arabic on your main website, even though they are translated using WPML. The same setup works correctly on your Iraq site. Solution: We recommend creating a new product and translating it to see if the variations display correctly. If they do, the problem might be due to database corruption unrelated to WPML, which you will need to investigate further. However, if the issue persists even with new products, this indicates a replicable issue that we can further investigate.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking for 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 problem 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.
Background of the issue:
I am trying to ensure that variable products on our main website, dr-scent.com, are working correctly. The content is already translated from English to Arabic using WPML. The site iraq.dr-scent.com is functioning properly in both languages.
Symptoms:
Variable products on the main website dr-scent.com are not displaying variations correctly in Arabic.
Questions:
What settings might I have missed that are causing variable products to not display correctly?
Why are composite and variable products not working on the main site but working on the Iraq site?
I spent a lot of time on this and could not find the problem cause. I am trying to copy the website to our server to report this to the second-tier support.
The scone tier support checked the issue and found out that for some reason, the Variables are set as ANY if you go to the edit screen of the product and from the top admin language bar, change the flag to the secondary language.
By clicking the REMOVE link next to those variables (even if they are shown as locked, it is possible to click the REMOVE link) and saving the product and doing a small change to complete the translation, it worked.
But I tried to do that on your staging version of the website and clear the cache, but for some reason cache is not clearing (check the screenshot attached)
Would you please investigate why the cache is not clearing so you can test the steps I mentioned?
I did not understand it, if we can make a chat one on one, it will be great so that i can understand what you mean exactly?
Regarding the clear cache you can try another time or i can do it for you
I removed the cache using the same login I gave to you, oh there can be one reason, if you copy it to your local how come WP Engine cache will work? or get clear? WP Engine cache can work or be remove only when it is present there, if i make its copy on my local then this option will not work for sure, because then there is no cache
Thank you for clearing the cache, I also checked the staging website and could clear the cache:
hidden link
Now if you check the product in question that I was checking it works:
EN: hidden link
AR: hidden link
So basically, Doing the steps below fixed the issue:
- Go to the Product edit screen in Arabic.
- Click the variations tab and you will see that the locked variations show as ANY instead of having the correct values.
- Click the remove link for the variations.
- Save the product.
- Send the EN product for translation again.
- Clear the cache.
i did not yet apply the solution but prior to that I wanna ask, do i have to repeat the process for all the products? I mean we have 300+ products, so can we apply for all of them together or its one by one ?
i did it but nothing happens, what you mean by deleting the varitions? when I click the lock icon and click remove link it actually removed the variation and then i save the product. But when I went to Products and saw its english version and then click the pencil icon for arabic it was still the same.
Q1. after deleting the variation and saving the product, how can i send the product for language review translation?
You did the steps correctly, after removing the variations you will simply need to go to the original version of the product, do a small change. Save, and click the circle icon under the languages sidebar to go to the advanced translation editor and finish the translation.
I wanted to create a video from the staging version but I could not find a corrupt variable product./
Maybe if you could create another version of the live website and provide the URL and login info by setting the next reply as private I might be able to create video for you on what I did.
Actually I am afraid it will take more time to create another replica of the entire website, Let me first give it a try, but also this is very important can we anyhow fix all the variations one time? Its too long and practically impossible to go to each products ( 300+ products) , then its variations, then remove each variation one by one, then go to its english version, make changes and wait for the sync and then send for translation, then save and clear cache and check?
We have almost 500 variations. You can analyze this wont be possible or give me any alternate solution like if i remove the plugin and install it again or if there is any other setting that can help me fix this? bcoz in iraq i did not do all this manual work but it worked perfect in the first time
The conclusion of the second tier support was that the database was corrupt and there is nothing that can be done by us here.
But I suggest that you also test by selecting batch products (for example, 10-20) from WPML > Translation Management and send them for translation again.
That is the only bulk way possible from the WPML GUI.