- Status
- Resolved
- Reported for
- WPML String Translation 3.2.1
- Resolved in
- 3.2.2
Overview of the issue
With WPML Multilingual & Multicurrency for WooCommerce and String Translation, you can easily translate your WooCommerce emails.
Currently, users receive emails in the correct language when they make a purchase. However, if an administrator changes the order status, the user may receive some parts of the email in the default language.
Workaround
Before proceeding, be sure of making a full backup of your site.
- Identify the option key where the part of the email which is not translated is stored, i.e kt_woomail.
- Open your theme’s functions.php file.
- Add and adapt the following code with your option key:
$option_key = 'kt_woomail'; add_filter( 'option_' . $option_key, [ wpml_st_load_admin_texts(), 'icl_st_translate_admin_string' ] );