Reply To: Emails in other languages + shortcode

Forums Custom Emails for WooCommerce Emails in other languages + shortcode Reply To: Emails in other languages + shortcode

#106647
Tom Anbinder
Moderator
Plugin Support

Hi,

Please update the plugin to the latest v1.7.0. There I’ve added two options to translate emails:

Option 1 – Now there is a new option in the custom email’s settings – “Require WPML language”. In this case, you would need to configure different custom emails for each language and set the corresponding values in the “Require WPML language” option for each email.

Option 2 – You can use the new shortcode that I’ve added – [translate] – directly in the email’s settings. This way, you would need to configure only one custom email and translate the content, subject, etc., directly in the settings, e.g.:

[translate lang="EN" lang_text="Subject for EN" not_lang_text="Subject for other languages"]

or:

[translate lang="EN"]Subject for EN[/translate][translate lang="DE"]Subject for DE[/translate][translate not_lang="EN,DE"]Subject for other languages[/translate]

P.S. You’ve mentioned that “… order details still shows in the wrong language…” – are you using the [order_details] shortcode to output the order details? If that’s the case – I’ve just tested – the shortcode’s content should be translated automatically, as the shortcode retrieves the content directly from the WooCommerce order details template.

P.P.S. Regarding “… specific product as required…” – I’ve just tested the “Require products” option – it seems to be working fine here. If possible, please share access to your site, so I could log in and check what’s going on.