Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing an automatic language switch in your admin profile and incorrect amounts on invoices when saving orders due to a language mismatch.
Solution:
First, ensure that you update WooCommerce to the latest version. If the problem persists, disable all non-WPML plugins except for WooCommerce and switch to a default theme. Remember to clear all caches. After these steps, check if the issue still occurs. If it does, we will escalate this to our second-tier support.

Please note that this solution might be outdated or not applicable to your specific 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 issue persists, 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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by myleneG 1 month ago.

Assisted by: Lauren.

Author Posts
January 7, 2025 at 5:59 pm #16571017

myleneG

Background of the issue:
I am trying to work on the English frontend or backend, but my main admin profile switches language automatically. Additionally, when I save a French-customer order in the backend while my profile is in English, the amounts get messed up due to mistranslation between period and comma in numbers.

Symptoms:
The main issue is the automatic language switch of my admin profile. The secondary issue is incorrect amounts on invoices when saving orders due to language mismatch.

Questions:
Anyone else experiencing automatic language changes in the admin profile?
Is there a solution for the language switch issue?
How can I prevent incorrect amounts on invoices due to language mismatch?

January 7, 2025 at 6:17 pm #16571078

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please let me know if you are able to reproduce the issue on the staging site and if so, please share credentials in the private fields in the next reply so I can login and take a look.

January 7, 2025 at 9:35 pm #16571475

myleneG

I have recreated a new staging site and can give you access. And it was quite easy to replicate: in the Pages section, I clicked on the language selector in top bar and that changed my profile language! I think it might be the only time it does that, but this info should help pinpoint the process! Thank you

January 9, 2025 at 4:41 pm #16578981

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please share credentials in the private fields in the next reply and I will be happy to login to the test site and check further. Please also let me know if it is okay to disable non WPML Plugins and switch to a default theme on the staging site.

January 12, 2025 at 1:50 pm #16585720

myleneG

I don't know why but I don't get the private fields showing here ?

January 13, 2025 at 8:29 pm #16590624

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

The credentials provided are not working for me. Please update the previous reply, or include correct credentails in the next reply which I have marked as private and has the fields to share login details.

January 16, 2025 at 6:52 pm #16603595

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thank you, these credentials worked. I went to the list of pages, and changed languages using the admin language switcher at the top of the dashboard. I'm not seeing the language in the dashboard change. I have included screenshots. Can you tell me specifically which content you are seeing that changes language in the backend?

Screenshot 2025-01-16 at 1.51.36 PM.png
Screenshot 2025-01-16 at 1.51.20 PM.png
January 18, 2025 at 5:42 am #16608685

myleneG

It seems my email reply ddn't make it here...
I’ve uploaded the video in media library (enregistrement.mp4). I know it might seem trivial from this video as you can switch back, but sometimes I have multiple windows open and if I save in one window that was in French when opened but profile switched in another, it messes things up. I’ve also showed you the problem it causes, changing the order amounts because of the ,/. decimal separator change. Finally, I also mention this as it is a new behaviour I hadn’t experienced before (don’t remember when it started, few months ago before I felt like writing), been using wpml for many years, thank you!

January 22, 2025 at 3:26 pm #16623970

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thanks for clafrifying. You mentioned "sometimes I have multiple windows open and if I save in one window that was in French when opened but profile switched in another, it messes things up." - this is intentional, becuase WPML allows you to upload content or create content in different languages. for example, you can upload a media file to a library in one language and not have it used in another. Another example is creating orders, and another would be creating posts/pages. You can create the post or content in any language, it doesn't have to be done in the default language. So the language changing in the backend is expected. You just need to make sure that you check your admin language and make sure it's the correct one before changing or editing you order.

When I review the test order, I see the price for the product as 6 568 538,00$. This does not change when I click update. Furthermore the order was created in French (you can see this in the custom feilds section) so the price should always reflect the French format.

I hope this helps clarify, please let me know if you have any additional questions.

January 22, 2025 at 4:05 pm #16624225

myleneG

I'm not sure I explained myself correctly because what you explain I completely understand.
I guess I'll have to get used to this forcing my profile language when i change backend interface language.

However, the problem is quite easy to replicate, I have added another video as proof and here are the exact steps to see for yourself:
1. Open order while in french (I just changed your profile to make sure). TAKE NOTE OF THE 88,87 TOTAL.
2. Open hidden link
3. Switch backend to English.
4. Go back to order window and save.

Thank you

January 23, 2025 at 4:12 pm #16629052

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please update WooCommerce and confirm if the issue is happening with the latest version. If it is, please disable all non WPML plugins except for WooCommerce and temporarily switch to a default theme. Be sure to clear all caches and then check to see if the issue is still happening and if it is, I will look and escalate to our second tier support.

January 25, 2025 at 4:32 am #16633122

myleneG

I'm sorry, I should have done this before, the numbers aren't messed if only woocommerce and wpml activated