This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to see translated strings on the WooCommerce checkout and cart pages, and also had issues with missing roles in a registration form. Solution: For the checkout page, we set the legacy checkout as the official page using the shortcode
[woocommerce_checkout]
in WooCommerce > Settings > Advanced. This is a temporary workaround until a permanent solution is found.
For the cart page, we recommended using the WordPress editor to replace the new WooCommerce Cart blocks with a shortcode block containing
[woocommerce_cart]
, which displays the default cart page without translation issues.
Regarding the missing roles, this issue was similar to another reported problem. We suggested confirming if using the same naming from the English version displays the roles correctly. Additionally, we split this issue into a separate ticket for better handling and escalated it to the compatibility team.
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 further assistance is needed, please 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.
This new checkout page doesn't interfere with the official one that remains the same.
In the new checkout page you'll see that the strings you translate in WPML -> String Translation are appearing translated in the front end, eg.: Country / Region and Last Name that I just added a SR in front of it to differentiate.
Kindly test the other strings and then confirm that the strings are working properly in the new checkout when you translate them in String Translation.
Once you confirm it, I'll go ahead and ask our team to review the errata and check why the issue is happening again.
Mateus hi,
Great news, I can confirm that test checkout page is translated in latin and is translated as it should, everything works fine. So what are our next steps?
Also unfortunatly user roles are still missing. There is only Agent. Agency, Developer and User are missing. When you disable WPML they show up, and when I search for string translation they all show translated?
Thank you for your efforts.
S.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello there,
Thank you for confirming that the workaround fixed the issue.
Regarding the checkout, I went ahead and made the legacy checkout, the one with the shortcode [woocommerce_checkout], the official checkout page for your site in > WooCommerce > Settings > Advanced. The previous checkout has been preserved, you can switch back to it as soon as we find a definitive solution for this issue, in the meanwhile as a workaround I'm afraid it is necessary to use the legacy checkout.
As my colleague pointed out in the other ticket, it looks like it is going to be necessary to contact the plugin author to review this issue.
It seems like by using the same naming from the English version of the plugin the roles are displayed, can you please confirm it? The WPML is enabled and all roles are showing up properly now.
Mateus hi,
Ok we have notices support from WP Residence, they will take a closer look next week. Can we please keep the ticket open till everything finishes?
Thank you for your understanding.
Best,
S.
Mateus hi,
Just pinging back since the ticket robot contacted me to see if the metter is closed.
Im waiting for the reply from theme support, and hope to get back to you asap.
Thanks,
S.
Mateus hi,
We just noticed that the cart page have the same issue as checkout page that you are trying to fix. Can that be done same way you replaced checkout page, and please how to do that if the answer is yes?
Thank you,
S.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello Srecko,
Yes, it is possible to do it for the cart as well.
What needs to be done is to use the WordPress editor to edit the cart page (I tried the Elementor editor but for some reason it didn't work for me) and delete the WooCommerce new Cart blocks design.
Then you add a new block of the type shortcode and you enter the following shortcode: [woocommerce_cart]
This shortcode will show you the default WooCommerce cart page that which doesn't have the issue with the mixed language strings.
Please let me know if you'd like me to do it for you.
Mateus hi,
First of all thank you for your trouble. It seems that everything works perfectly except one string that appears on a cart as well as on a checkout page. Its "Payment for Package "%s" with id %s", I even found it, translated it, but is still wont change in Serbian?
Sending the print screens of checkout and cart pages.
Thank you again for helping us!
S.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello Srecko,
I checked it and those are in fact products that have been added to the cart, you won't be able to translate them using the String Translation.
You can see them in here(I attached a screenshot as well): hidden link
In this case what you'd normally do would be to use the WooCommerce Multilingual to the translation. However, since your site is currently Serbian only, you can potentially edit the products in the main language and change them to Latin Serbian without any issues to your flow.
Mateus great, it worked...! Thank you so uch, now complete woocommerce part is in Serbian.
Im still waiting for WP Residence to translate roles without disappearing, so if you would be so kind to leave the ticket open for few more days and I hope that would close the compete subject.
Once more, thanks a bunch!
S.
Mateus hi,
Ok we got responce from the WP Residance support:
"Thank you for contacting us. Please see my reply below.
I think that the problem comes from changing the main language. All strings are in English and you should translate the theme in Serbian but since the main language is Serbian, you need to translate from Serbian to English.
But I do not know how to transfer the English strings to Serbian ones. This is what you need to ask WPML. I really checked everything but this is the only thing that cause this. "
On my side I can confirm that all roles are translated as they should be, and all of them are missing from registration form. Once I turn off wpml all roles appear.
Can you please help, advise?
Grateful,
S.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
In this case we'll need to follow the compatibility flow to check why this issue is happening.
To do this, we'll need to replicate your setup on a fresh WordPress installation with WPML, the WpResidence theme, and its plugin. This sandbox environment will allow us to safely troubleshoot without affecting your live site.
Here’s the link to the sandbox: hidden link.
Please use this link to log in and set up the WPResidence theme and plugin, just to the point where we can view the roles. Once that's done, I’ll take care of the WPML setup for further testing.
Just a quick note: to ensure we’re isolating the issue accurately, please don to use a migrator or backup plugin to copy your entire site to the sandbox.
Thank you for your understanding and patience—I look forward to working together to resolve this!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.