[Resolved] Issue with WooCommerce Variable Products
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with WooCommerce variable products not accepting a $0 price value in the translated Spanish version, despite the original English version working correctly. Solution: We recommended using the translation editor to ensure the variable products are translated correctly. If issues persist, making a minor edit to the original product and updating the translation to 100% should help. Additionally, we installed WooCommerce Multilingual 5.5.2-b.1, a Beta version that resolved the issue. We advised the client to wait for the official release of this version and update it on their live website after making a backup.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML 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 trying to automatically translate WooCommerce variable products into Spanish using WPML on my site hidden link. After approving the translation, I encounter issues with the translated products.
Symptoms:
When entering the 4 active variable products in Spanish, when I try to review the product in Spanish, everything appears blocked, and I am directed to the Translation Dashboard, where nothing appears.
Questions:
Why is everything blocked when I try to review the product in Spanish?
Why does nothing appear in the Translation Dashboard when I try to edit the product in Spanish?
Thank you for the test website. Please check the video below:
hidden link
- Go to your Dashboard > Products.
- Open the edit screen of the original product. You should see a pencil/circle/gear icon in the sidebar options under the "Languages" section.
- Make a small change, for example, add an extra blank space at the end of a sentence/paragraph.
- Save it.
- You should now see that a circular arrow appears beside the 2nd languages links, this means that an update is required.
- Edit the translation again and save it up to 100% translated.
Excellent, but if you change the price value back to $0, it doesn't work. That's the original issue.
It seems the translated version doesn't accept the price value of $0, but it should be identical to the original English version. That is, the Spanish version should work with the value $0.
I can't set the product value to $1 because that value is false. Furthermore, the English version works correctly; it's the Spanish version that has the issue.
Since the translated version doesn't accept the $0 price value and I can't add a different value, I found a solution.
Since only two decimal places are displayed, i.e., $0.00, if I add $0.001 to the price, the product works and doesn't display a value higher than $0.00, which works for me and doesn't affect the price.
However, this doesn't resolve the issue with the translated versions not accepting the $0 value in a product's price; it should work the same as the original English version.
Although the ticket is not resolved, I think it's important to note it so the developers can review this issue with the price of a translated product with a $0 value.
Thank you. Yes, for some reason, the test website login information is removed by the system.
If the ticket is set as resolved first, this happens. I wonder if you can still provide us the login to the test website so we can check why the workaround does not work there?
You can set the next reply as private and provide the login for the test website.