This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with widgets such as the 'add to cart button' and 'product descriptions' not appearing on the Italian single product page. Despite deactivating all plugins and clearing the cache, the problem persisted. Solution: We recommended the client to test the site in a minimal setup by keeping only the theme, WPML/WCML plugins, and must-have plugins active while disabling all others. We also advised clearing the website's cache after switching to this minimal setup. Upon further investigation, we identified a fatal error caused by an incorrect translation of the string '%s quantity' in the context of WooCommerce. Correcting this translation resolved the issue on the staging site. We suggested the client to apply this fix on the production site and verify if the problem was resolved.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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. If the problem persists, 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 solve errors on the Italian single product page. Here is the link to the page where the issue can be seen: hidden link
Symptoms:
Some of the widgets such as the 'add to cart button' and 'product descriptions' are not appearing.
Questions:
I cannot see widgets like the 'add to cart button' and 'product descriptions' not appearing on the Italian single product page.
I want to permanently remove Italian single page but when I remove permanently on Italian single product, and create again, But it is getting same error. Is there anyone to help with this matter?
Iam attaching both well-working single product page, and error single product page.
and This is the link of the page I am getting error: hidden link
Thank you for the access, I was able to check the website.
I noticed that on WCML -> Products the original language for the products is French and not English, can you please tell me how you are translating the products?
You should create the products in the default language and then translate them.
---
Also, please go to WP-Admin ->Users -> All Users, and make sure that all the user accounts have the following:
- First name
- Valid email format
In some cases, if any of the above is missing, it can cause issues with the WPML translators and show the error in the page WP-Admin ->WPML -> Support section.
I find out that the flg is showing as France but when I hover over it, it says English.
this is weird. When I check other languages are same as English.
I've checked further and when trying to edit with Elementor editor the single product template shows like in the attached image (on the console log there are errors showing as well).
Will it be possible to delete and re-translate the template page and check if the issue persists? If it does, try checking in a minimal setup by keeping the theme you have active, disabling all the plugins except the WPML/WCML ones and any necessary plugin to run the theme.
1. I edited the single product page in order to see the error that you attached screenshot image. But I could not find out the same image with your screenshot.
2. I recreated the single product page and retranslated but the problem is still on there.
- But I notice that where the error occurred (check for one screen shot)
When I did not type the price on Italian product, the Italian single product page is getting bug ( I am attaching the two screen shot and link) : hidden link
the error is on here when I type the price: hidden link
To further troubleshoot the issue I would require a copy of your website to test it locally and further escalate the issue if needed.
You can use the Duplicator plugin to create a copy of your website and upload the backup on a file-sharing website (Google Drive, Dropbox, etc.), please send me the link to download the backup after.
* Please try to minimize the size of the backup file by excluding unnecessary media files or backup folders that might be in the "/wp-content/" folder.
I’ve set your next reply as private so you can provide the backup link.
I would require the zip file and the installer.php file created from the Duplicator (the ones created when you back up the website) as I need to install and test it locally and further escalate.
* The file you shared doesn't seem to be a WordPress installation (please check the attached image).
1- You don't need to buy or use a premium version of Duplicator, you can get a backup with the free version without any problems (I can try creating a backup package if it's on for you - please confirm in your next reply)
2- I am not able to access the staging site you shared before.
I've checked further on the staging site, and upon disabling all the plugins except the WPML/WCML ones, a fatal error appeared on the product page in Italian (the error is shown in this link: https://pastebin.com/LwxAYstx).
It seems that the error was caused by the wrong translation of the string '%s quantity' in the context of WooCommerce. The "%s" refers to a string, not a simple % (please check the attached image showing the wrong translation).
I've corrected it and on the staging site, it is working correctly.
Please try checking it on the production site, and let me know if the issue persists.