Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 31 replies, has 2 voices.

Last updated by Mateus Getulio 1 day, 13 hours ago.

Assisted by: Mateus Getulio.

Author Posts
October 16, 2024 at 5:52 pm #16297275

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I created a staging version of the site and debugged it in there.

I checked it and the issue seems indeed related to the WooCommerce blocks checkout like the one reported here: https://wpml.org/errata/woocommerce-checkout-block-fails-to-translate-some-values/

In theory this issue should be fixed but unfortunately it appears to be happening again.

After testing it in the staging site, I went ahead and created a separate checkout page in your site to demonstrate it to you: hidden link

In this new test page instead of using the WooCommerce checkout blocks I used the legacy shortcode [woocommerce_checkout]: https://woocommerce.com/document/woocommerce-shortcodes/page-shortcodes/#checkout

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.

October 16, 2024 at 9:41 pm #16297823

sreckoA

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.

October 17, 2024 at 3:52 pm #16301352

Mateus Getulio
Supporter

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 for the issues with the missing roles, it looks like the same issue my colleague reported here: https://wpml.org/forums/topic/stringtranslations-not-showing/#post-15754301

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.

October 18, 2024 at 6:37 am #16302800

sreckoA

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.

October 18, 2024 at 5:50 pm #16305959

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Srecko,

Absolutely, I'm marking the ticket as pending until we hear back from you, please keep us in the loop.

Thank you for following up with them.
Mateus.

October 21, 2024 at 12:44 pm #16312355

sreckoA

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.

October 24, 2024 at 11:25 am #16325796

sreckoA

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.

October 24, 2024 at 5:30 pm #16327718

Mateus Getulio
Supporter

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.

Thank you,
Mateus

October 25, 2024 at 12:59 pm #16330678

sreckoA

Hi Mateus,
I would be most grateful, because Im affraid not to delete the template setup and its initial design.
Thank you in advance,
Srecko

October 25, 2024 at 7:51 pm #16332117

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

I went ahead and made the switch.

Can you please check if the strings in the legacy cart are translatable as well?

I tested it and they look OK, just need to double-check.

Thank you!

October 28, 2024 at 9:00 am #16336513

sreckoA

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.

checkout page.jpg
cart page.jpg
October 28, 2024 at 12:34 pm #16337721

Mateus Getulio
Supporter

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.

Please let me know if it makes sense.

Thank you,
Mateus

products.jpg
October 28, 2024 at 6:28 pm #16339453

sreckoA

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.

October 29, 2024 at 11:22 am #16341708

sreckoA

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.

October 29, 2024 at 9:01 pm #16344259

Mateus Getulio
Supporter

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!