Extend your store’s multilingual experience beyond your site. With WPML and WooCommerce Multilingual, you can translate WooCommerce emails.
WooCommerce sends a variety of order-related emails to your customers. These emails are sent in the customer’s admin language as defined in their user profile.
On This Page:
- Getting Started
- Translating WooCommerce Default Emails
- Changing Default Translations
- Translating Custom-Coded WooCommerce Emails
To translate WooCommerce emails make sure you install and activate the following WPML plugins:
- WPML core plugin
- WPML String Translation add-on
- WooCommerce Multilingual add-on
All these plugins come with the WPML Multilingual CMS and WPML Multilingual Agency accounts.
Default WooCommerce emails are already translated for you.
If you want to customize any of these emails, go to WooCommerce → Settings and click the Emails tab. Then, click Manage to edit the text of an email.
After you save your changes, click the Translations link below any of the fields.
This opens the new text in WPML’s String Translation. Click the plus icon to add and save your translations.
Now, when a customer purchases your site’s secondary language, they will receive the custom email translated into their language.
Emails also include default text that can’t be changed in the WooCommerce settings. If you want to update the default translations, you need to scan the WooCommerce plugin to make these strings available in String Translation.
Go to WPML → Theme and plugins localization and scan WooCommerce for strings.
Then, go to WPML → String Translation. Search for the string, and click the plus icon to add your own translation.
You can override WooCommerce’s default emails by changing the PHP templates or by creating your own custom PHP templates. To translate these custom templates, be sure to wrap your strings in a gettext function to tell WPML they are translatable.
<p><?php printf( _e( 'CUSTOM TEXT', 'woocommerce' ); ?></p>
Then, scan your theme for the strings by going to WPML → Theme and plugins localization. Select your theme and scan it.
Now, when you go to WPML → String Translation, the text from your custom email is available for translation. Click the plus icon to add the translations.
If you’re still having trouble finding the strings to translate your WooCommerce emails, please see our documentation about finding strings that don’t appear in the String Translation table.