This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where the 'Order Cancelled' email from WooCommerce is sent in English instead of the customer's preferred language, while other email templates like 'Order Completed' and 'Order on-hold' work correctly, the issue might be related to where the email is generated from. Solution: The language of the email depends on whether it is generated from the front end of the website or the WordPress Dashboard. If the email is generated from the front end, it will be in the language that the front end was set to at the point of generation. However, if the email is generated from the WordPress Dashboard, it will be in the language of the user profile from which the email is generated. To ensure the 'Order Cancelled' email is in the correct language, follow these steps: 1. Go to the WordPress Dashboard. 2. Navigate to WooCommerce > Orders. 3. Select the order and change its status to 'Cancelled'. 4. Ensure you are logged in with a user whose Dashboard language is set to the desired language. You can change the language of the dashboard for a user from WordPress Dashboard > Users > Profile.
For further assistance, we 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. If the problem persists, please open a new support ticket.
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.
I've noticed that when the "Order Cancelled" email is sent, it's in English rather than the Customer's language preference. While other email templates, such as "Order Completed", "Order Cancelled", and "Order on-hold", work perfectly.
I've attached a screenshot from the "Order Refunded" WooCommerce email template management, where multilingual support is active as with all of the other email templates, except "Order Cancelled" the multilingual support is missing.
While the text for the "Order Cancelled" email template is translatable via string translations, the products ordered are displayed as being pulled from the English version of the $product object.
I have updated to WPML Multilingual CMS 4.9.0 and WPML Multilingual & Multicurrency for WooCommerce 5.5.3.1, then purged the cache. The "Order Cancelled" email template management remains the same without the language dropdowns.
Hi Noman, I've set up the WooCommerce store. I've not set up any products yet, but as of now, the WooCommerce settings for the "Order Cancelled" email do not include any language dropdowns, unlike the other email templates.
1. The product in the WooCommerce >> order page shows in the wrong language.
2. The “Order Cancelled” email content is also in the wrong language.
I was able to reproduce it with these steps:
1. Placed an order in Chinese from the frontend.
2. Viewed the order in WooCommerce >> Orders; products were showing in English instead of Chinese.
3. Changed the order status to “Cancelled”, checked the email, and it was in English and the products were also in English.
Please confirm if this matches what you’re seeing or if I missed something?
This is Christopher taking over the ticket as Noman is on vacation.
The language of the email sent from WooCommerce depends on whether it is generated from the front end of the website or the WordPress Dashboard.
If the email is generated from the front end of the website, the email will be in a language that the front end was set to during the generation point.
As an example, when the order is generated, it will take the language of the front end.
But if the email is generated from the WordPress Dashboard, it will take the language of the user profile from which the email is generated.
As an example, to cancel an order, you will need to go to WordPress Dashboard > WooCommerce> Orders. And go to the order in question and change the status to Cancelled.
You need to be logged in with a user and if the Dashboard language for that user is English, the cancel order will be in English; if not it will be in Chinese.
The language of the dashboard for a user can be changed from WordPress Dashboard > Users > Profile
Now if you check the latest log of the email for WordPress installation my colleague mentioned, you will see that the cancel order email is in Chinese:
hidden link
The reason is that the user I used to trigger the order cancel has Chinese as the dashboard language in Users > Profile
Thanks for the response. Since most of the "Cancelled" email templates can be translated via string translation, my main problem is that when I send the email, even under a Traditional Chinese admin, the listed product in the order summary remains in English.