[Resolved] Unable to translate certain text on WooCommerce checkout page
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to translate some text on the WooCommerce checkout page using WPML. Despite adding XML to the custom XML configuration setting as suggested by other tickets, the issue persisted. Some text was not found in the string translator, and some translated text still appeared in English. Solution: We accessed the staging site and created a new Cart page using the WooCommerce shortcode
[woocommerce_cart]
, which resolved the translation issue for the Cart page. For the checkout page, we identified and corrected the use of an incorrect shortcode. We recommend the client to verify the changes on the French checkout page.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please visit our support forum to open a new ticket. We also 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.
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'm trying to translate the text on the WooCommerce checkout page using WPML for my site hidden link. I've found other tickets with the same issue and tried adding the XML to the custom XML configuration setting, but it did not fix the problem.
Symptoms:
Some text on the WooCommerce checkout page is not translating into the other language. Some text is not found in the string translator, and some are translated but still appear in English.
Thanks for your reply. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please back up your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
I deactivated all plugins except WPML and WooCommerce. Then, to avoid conflict issues, I activated the WordPress default theme.
When checking the checkout page after the above steps, the strings were translated correctly, so I activated the plugins one by one to see which plugin caused the issue, but the issue didn't happen.
It seems that the issue was a caching issue, as the strings were translated but stuck, so they didn't appear on the front end.
I tried clearing site cache, WPML cache and Beaver Builder cache and am still seeing the English text on the French checkout page. I tried incognito and a different browser with no luck.
Could you please check if the issue persists in a minimal environment by following these steps?
1- Deactivate all the plugins except WPML CMS, String Translation, WooCommerce, and WooCommerce Multilingual.
2- Switch to a WordPress default theme like Twenty Twenty-one.
If the issue is gone, activate them one by one to see which one is causing an interaction issue.
❌ Please back up your database before the above test ❌
I reset the staging site to the current live site and changed the theme to the Twenty-Twenty Four theme and deactivated all plugins except for WooCommerce and WPML and am still seeing the issue with the text not being translated.
Hello,
My name is Carlos, and I will continue working on this ticket because my colleague Osama is on vacation.
I kindly ask you to use the Woocommerce shortcode [woocommerce_cart] instead of the blocks in the cart page and double-check if the issue has disappeared.
Could you tell me the results of the steps described above?
I tried changing to the shortcode and I either encounter a Too Many Redirects error or the page reloads when I click the Proceed to checkout button and I'm not taken to the checkout.
I made sure to clear site cache and tested in incognito and still see the issue described above.