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.
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?
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.
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
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.
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.
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?
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!
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.
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.
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.
I'm sorry, I should have done this before, the numbers aren't messed if only woocommerce and wpml activated
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.