This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported an issue where the admin received an order confirmation email in the HR (Croatian) language, but the customer received the same email in SI (Slovenian), despite all strings being translated correctly in WPML. Solution: We first recommended testing with only the default WordPress theme and essential plugins (WooCommerce and WPML) to ensure that the issue wasn't caused by any other plugin or theme conflicts. Upon testing, it was confirmed that the HR email was sent correctly to the customer under these conditions. Further investigation revealed that the issue was due to the use of a custom string added in the email content in SL (Slovenian), which was not translated. We advised the client to either translate these custom strings via WPML > Translation Management or to delete the custom strings and revert to using the default provided strings.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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. Should you need further assistance, please do not hesitate to 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.
The new order email is not the one that WC sends to customers, but processing email is.
Please check the video and that the first mentioned string is not translated:
- hidden link
I advise rechecking your emails settings and re-translate custom strings. If you then have other issue with string not being translated let me know and I will advise further.
Order notification e-mail sent to the admin will always be in the site's default language, as this is standard operation. To receive the notification e-mail in another language, you should change the language of user profile to the desired language by navigating to Users > Profile.
it will not help in this case, as said this is expected and how Wocommerce works, it sends emails in default language. You can try to achieve different behavior with custom code and WC / WCML hooks.
1) How are you deciding to which email/admin goes notification? I see in WC settings 99splet email not one you mentioned or are you testing by changing order status from backend?
2) You do not have ES admin on staging site (that email), so it is expected it goes in the default website language. Or are you testing somehow else / another website?
if a purchase is made on SI site the order goes to SI email. if a purchase is made on HR site the order goes to HR email. SI email is changed to HR email in string translation.
no, I do not have ES admin on staging site, as you said it would not help anyway. I set it up on the main site but yes, it does not in fact help. Still don't know how HR admin gets email in HR language but ES admin gets emails in SI language.
Let's try to clear few things first, please share with me where did you add es email, where you add SI and where you add HR email. That will help understand how each email is sent and what might trigger this.