-
Notifications
You must be signed in to change notification settings - Fork 67
Wocoommerce automatic emails sent in English #321
Comments
UPDATE: We have just realised it only happens with TPV payment; with bank transfer emails are sent in Spanish. |
what is TPV payment ? |
I am sorry, I used the Spanish acronym (TPV). I meant POS Terminal (Point-of-Sale Terminal), by Redsys payment gateway, and we tried two different modules for this gateway, and with 2 different POS banks, to check if it was a problem of the bank gateway or the POS module. I'm attaching now the System Report: WordPress EnvironmentHome URL: https://burgosexperience.com Server EnvironmentServer Info: Apache SUHOSIN Installed: ✔ DatabaseWC Database Version: 3.2.6 Post Type Countsattachment: 214 SecuritySecure connection (HTTPS): ✔ Active Plugins (35)Polylang: por Frédéric Demarle – 2.3.4 Clean Filenames: por Samuel Aguilera – 1.1.1 Title and Nofollow For Links: por Flector – 1.02 SettingsAPI Enabled: ✔ Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) WC PagesBase de la tienda: #1915 - /experiencias/ ThemeName: Beaver Builder Child Theme TemplatesOverrides: bb-theme-child/woocommerce/content-single-product.php |
well, taking into account that:
.. really you should raise a call with Pasarela de pago para Redsýs |
Hello back Jon, We even have even try adding inside those templates this code: echo get_locale(), and we get: [es_ES], but all strings in English (although translations are present, since you get Spanish mails if you change order status manually). So, problem must be in the "trigger" of that automatic emails when the payment is done... |
Thanks for investigating, I do remember there are two ways of triggering email in woocommerce, one is immediate and the other is with asynchronous with cron, there isn't an option for it in the user interface but you can turn the cron off by returning false on the filter woocommerce_defer_transactional_emails and then the email will be send from the UI in the correct language. It may be that extra code is needed to force the language switch (reload the translation files) when in cron context - I thought something was already done for this, I'll check (but probably not this week), in the meantime please try the workaround with woocommerce_defer_transactional_emails |
for the record, I retested that this is working for me with woo 3.1.2 There is a setting to enable the email translation in Settings, WooPoly, Features - but I suppose you already have this. |
for me, it's Fixed in #329 |
Fixed in #329 |
Hello, something very similar happens to me, I have a site in French and English but Woocommerce only works in English when sending the email to the client. Is there a way for emails to be in the user's language? |
make sure you are using the latest from https://github.com/hyyan/woo-poly-integration/releases |
Hello,
We have installed your plugin in a multilanguage site in Spanish, English and German.
We have done several orders, with the site in Spanish (including Cart and Checkout pages in Spanish), but the Wocoommerce emails are sent in English.
Can you reproduce this issue on default Wordpress theme (eg Storefront)?
Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?
What product versions and settings are you using when this issue occurs?
Steps to Reproduce
It's just the automatic emails sent by Woocommerce after an order is done.
What I Expected
As I am making the order in Spanish, the emails should be sent in Spanish, but we receive it in English (eve the primary language in Polylang is Spanish). However, If I change afterwards the order status in the backend, those emails are sent in Spanish; but the automatic ones (like the “new order” email for customer and admin), always in English.
What Happened Instead
Automatic Woocommerce emails sent always in English.
Thanks in advance.
The text was updated successfully, but these errors were encountered: