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 thread is resolved. Here is a description of the problem and solution.

Problem:

How to translate custom WooCommerce email templates.

Solution:

1. Create the custom email template in WooCommerce.

2. Go to WPML -> Theme and plugins localization and rescan the WooCommerce plugins for strings.

3. Use the 'Strings in admin screens' section of the String Translation to find the email custom text.

4. Move the strings to the String Translation section.

5. Translate the strings and save the translation.

Relevant Documentation:

https://wpml.org/documentation/getting-started-guide/translating-theme-options/

https://docs.woocommerce.com/document/automated-follow-up-emails-docs/custom-email-templates/

https://www.cloudways.com/blog/how-to-customize-woocommerce-order-emails/

This topic contains 4 replies, has 2 voices.

Last updated by michaelB-123 2 months, 3 weeks ago.

Assigned support staff: Itamar.

Author Posts
July 25, 2019 at 3:14 pm #4284623

michaelB-123

Tell us what you are trying to do? I want to add text to the existing Processing email in the default language and change text in the 2nd language.
________________________________________

Instead of the line " Just to let you know -- we've received your order #%s, and it is now
being processed:"
________________________________________

In Default language (US) I want it to read:

Our work together will begin with an Assessment session. This will give us an opportunity to understand your unique experience with infertility and plan your treatment journey.
 
Please go to [website link] to schedule our first online meeting.

Your order details are below for your reference:
_______________________________________

In the IRL in would read:

Our work together will begin with an Assessment session. This will give us an opportunity to understand your unique experience with infertility and plan your treatment journey.

Your order details are below for your reference:
___________________________________________

Is there any documentation that you are following? I did String Translations on a copy of the demo (hidden link) but I'm unsure how I make changes to both templates using String Translations? Can you help?

Is there a similar example that we can see? https://wpml.org/forums/topic/how-can-i-translate-email-sent-by-woocommerce/

What is the link to your site? hidden link

July 25, 2019 at 3:32 pm #4284795

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Changing the email template of the default language of your is explained at the following links to tutorial about this option.
https://docs.woocommerce.com/document/automated-follow-up-emails-docs/custom-email-templates/
hidden link
Please understand that WPML and WooCommerce Multilingual do not control this.
For the translation of the email templates, you need to use the String Translation section as explained by my colleague Shekhar in the other ticket.
https://wpml.org/forums/topic/how-can-i-translate-email-sent-by-woocommerce/#post-1485583
Please let me know if you have any other questions about this issue.

Regards,
Itamar.

July 26, 2019 at 8:21 am #4288307

michaelB-123

Hi Itamar

If I understand correctly:

1. I create the custom email template in WooCommerce
2. I use String Translation to find the email custom text
3. I change text and save translation
4. I will have an email that goes to US and a different email that goes to IRL

Is this correct?

July 28, 2019 at 3:18 pm #4295603

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Yes, basically this the correct procedure, but I have two remarks to add.

1. After adding the new email templates and before searching for them in the String Translation section, you probably need to do the following.

A. Go to WPML -> Theme and plugins localization and rescan the WooCommerce plugins for strings.

B. If the template was created correctly, then you would probably find those strings in the 'Translate texts in admin screens' section. This section can be accessed from the String Translation section. Please read more about it in our documentation here.
https://wpml.org/documentation/getting-started-guide/translating-theme-options/

Regards,
Itamar.

July 29, 2019 at 9:52 am #4298451

michaelB-123

My issue is resolved now. Thank you!