Skip Navigation

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.

This topic contains 2 replies, has 1 voice.

Last updated by ziga pipan 6 days, 23 hours ago.

Assisted by: Dražen.

Author Posts
March 24, 2025 at 11:08 am #16851271

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

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.

Regards,
Drazen

March 24, 2025 at 11:21 am #16851355

ziga pipan

Yeah I know, but I also wish to translate admin emails, not just customer emails.

For example:
Spanish email for customer is ok
hidden link

But spanish email for admin info@ergovision.es is in entirely slovenian
hidden link

March 24, 2025 at 1:03 pm #16852112

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

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.

Regards,
Drazen

March 24, 2025 at 1:48 pm #16852408

ziga pipan

I don't even have the user profile for info@ergovision.es. Should I create one and set language to es?

March 25, 2025 at 7:26 am #16854852

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

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.

- https://wpml.org/wcml-hook/wcml_new_order_admin_email_language/

For admin user language, it will work only when the admin user changes order status then it is sent in user language set.

Hope this helps.

Regards,
Drazen

March 25, 2025 at 9:26 am #16855650

ziga pipan

I'm not sure that is a case, because HR admin is getting admin emails in HR language,
hidden link

but ES admin is getting emails in SI original language.
hidden link

March 25, 2025 at 9:56 am #16855943

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks, but let me clear a few things here.

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?

Regards,
Drazen

March 28, 2025 at 11:58 am #16872675

ziga pipan

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.

March 28, 2025 at 12:18 pm #16872711

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

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.

Regards,
Drazen

March 28, 2025 at 12:27 pm #16872771

ziga pipan

SI emails is added here
hidden link

HR email is added/translated here
hidden link

March 28, 2025 at 12:42 pm #16872921

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks, and where do you have ES email added? As that is one that you are reporting issue for.

Thanks.
Drazen

March 28, 2025 at 12:49 pm #16873022

ziga pipan

same
hidden link

March 28, 2025 at 12:52 pm #16873027

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Great, thanks for sharing.

If it works fine for HR, it should work fine for ES.

I see your staging site is not available anymore, please share a new one so I can check your issue further.

Regards,
Drazen

March 31, 2025 at 10:32 am #16878673

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for getting back.

I just tried and but it works fine for me. I can see it in ES for ES email address, same behaviour as in HR mail.

Please check the staging site and let me know how can I see issue and if it still happens.

Regards,
Drazen

WP Mail Catcher ‹ Ergovision — WordPress (1).jpg
March 31, 2025 at 10:39 am #16878700

ziga pipan

hmmm, yes, it seems to be working now. Did you do something?

Except for this
hidden link

translated here
hidden link