Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 33 replies, has 3 voices.

Last updated by Itamar 9 months, 1 week ago.

Assisted by: Itamar.

Author Posts
June 13, 2024 at 4:32 pm #15737296

cecileG

Background of the issue:
I have 4 languages on the site: FR (default), EN, DE, IT. I use AutomateWoo to send the on-hold email to the customer if their order is still on-hold after some time. The gateway instructions are displayed after the order table in the email. The instructions are in the same language as the order in the first email (sent directly after the customer has placed their order), but not in the email sent by AutomateWoo.

Symptoms:
In the email sent by AutomateWoo, the instructions are always in FR, whereas the order was placed in EN, DE, or IT. The translations of the instructions are not retrieved correctly when the email is sent by AutomateWoo's CRON task.

Questions:
Why are the gateway instructions not translated correctly in the email sent by AutomateWoo?
How can I ensure that the gateway instructions are in the same language as the order in the email sent by AutomateWoo?

June 13, 2024 at 4:59 pm #15737397

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I have opened the ticket as requested,

Looking forward to your reply,

June 14, 2024 at 9:31 am #15739334

cecileG

Hi,

I updated :
- WordPress to 6.5.4
- WPML to 4.6.11
- WPML string translations to 3.2.12
- Woocommerce Multilingual to 5.3.6

And I still have the problem.

In the mail sent by AutomateWoo, the gateways instructions are always in FR.

I have set the default instructions in FR in Woocommerce settings (see settings img), I added all the translations in WPML (see translations img).
I placed an order on the EN site, the email received is ok with instructions in EN (see mail-on-hold-ok img), but the e-mail from automatewoo which was sent a few minutes later is not ok, the instructions are in FR (see mail-automatewoo-ko img).
In AutomateWoo, I set a worflow to re send the on-hold email after x minutes (see automatewoo-workflow img). The workflow is translated in all languages.

Only the instructions are not translated on the email sent by AutomateWoo. How to fix this please ?

Thank you

translations.png
settings.png
mail-on-hold-ok.png
mail-automatewoo-ko.png
automatewoo-workflow.png
June 16, 2024 at 4:16 pm #15742741

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'll continue to help you with this issue.

The AutomateWoo plugin (https://woocommerce.com/products/automatewoo/) is officially compatible with WPML - https://wpml.org/plugin/automate-woo/. However, it has not been retested for a few years. We might be facing a compatibility issue we are unaware of yet.

Can you please help us replicate this problem? Then, I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:

hidden link

With this link, you'll be directly logged in.

Could you please install the AutomateWoo plugin and see if the issue is replicable on a clean WordPress installation?

I've installed the Email Log plugin on the test site so that we can see the problem with the emails.

Please configure WPML and WooCommerce as set on your site (just the basic configurations needed to replicate the issue are enough).

Please also ensure you install the latest version of the plugin.

Please let us know when everything is finished, and you can replicate the problem.

Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.

Thanks,
Itamar.

June 17, 2024 at 3:11 pm #15746201

cecileG

Hi,

I didn't manage to replicate the issue on the sandbox. The instructions are in the right language in the email sent by AutomateWoo.
I switched to Store Front theme on my local site. I updated the plugins to have the same versions as the sandbox and I still have the problem...
I don't know what could be the cause. An another plugin ?
I'm going to need some time to test this, deactivating the plugins 1 by 1.
If I give you access to a staging site where I could reproduce the problem, could you take a look and try to find the source of the problem?

Thank you

June 17, 2024 at 3:23 pm #15746223

cecileG

Finally I was able to replicate the problem on the sandbox !
But unlike my site, the problem occurs when I place an order in default language (FR).
So I made the order #99 in FR. The first on-hold email is in FR (id 15 in email log), with the instructions in FR, everything's good.
But the AutomateWoo email sent 5min later (id 16 in email log), is in FR except the instructions, they are in english (a second language).
By default, the payment gateway is set in FR, and I added the translations with WPML string translations.

Could you check this please ?

Thank you

June 18, 2024 at 11:39 am #15748735

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Thanks for replicating the issue on the sandbox site.

I can see this problem when I view the email with the ID 16.

Are there settings for the AutomateWoo email sent 5min later?
I mean, where in the plugin's settings can one configure this automated delayed email?

Thanks,
Itamar.

June 19, 2024 at 3:27 pm #15756845

cecileG

Hi,

In the edit page of the workflow "reminder pending transfer" in AutomateWoo > Worflows, you can specify the delay for the workflow in the right sidebar, in the "timing" box.
I set it to 5min so as not to wait too long for test purposes. If you update it, you need to do it in each language.

June 20, 2024 at 4:29 pm #15765623

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for your explanations.

I should have also asked where you inserted the "Instructions en français" string because I couldn't find where you added this string.

However, I was able to fix this problem. Here is what I did.

1. In WPML -> Strings Translation -> Admin Text Translation, I searched for "Instructions en français".

2. Another instance of this string not included in Strings Translation appeared. So, I moved it to Strings Translation. Please see the attached screenshot move-to-st.jpg.

3. In Strings Translation, I could see that the string language is incorrect. It is English instead of French. So, I changed the string language to French. Please see the attached screenshot change-string-lang.jpg.

4. I translated the string into English. Please see the attached screenshot trans-to-en.jpg.

Now, the problem does not occur. The string is in French, even for the delayed email. Please check the test site.

Please try the same steps on your site and see if it solves the problem.

The following are the relevant guides about the steps I mentioned.

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/

Regards,
Itamar.

move-to-st.jpg
change-string-lang.jpg
trans-to-en.jpg
June 21, 2024 at 12:58 pm #15775367

cecileG

Hi,

I tested on the sandbox and yes there is no more problem.
The instructions are set in Woocommece payment settings (Woocommerce > Payments > Settings > Check payments).

The admin string were already added to string translations on my site, and translated.
But the "need to update" icon comes up regularly (see capture), and I haven't necessarily updated the string in the Woocommerce settings. Why would a string need to be updated?

I have also redone some tests on my site, and now in the email sent by AutomateWoo, the instructions are always in English, regardless of the original language in which the order was placed (even in French which is the default language of the site). And I didn't change anything.

I use the plugin Booster for Woocommerce to enable payments gateways according to categories of products in the cart. Could this have an impact ?

Maybe I can try something : if I add the English texts in the Woocommerce payments settings and add the French translations in WPML string translations, do you think this could change anything? To have the default string in English

Thank you

Capture d’écran 2024-06-21 à 14.42.14.png
June 23, 2024 at 6:54 am #15792266

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

You wrote: "Maybe I can try something : if I add the English texts in the Woocommerce payments settings and add the French translations in WPML string translations, do you think this could change anything? To have the default string in English"

Although it works on the test site when the strings are in French, please try that and see if it helps.

Other than that, the problem could be caused by a third-party plugin. I can speculate if it is the Booster for Woocommerce or another plugin. You can try the following.

I suspect that there is a collision with the theme or another plugin that might cause this problem. If possible, get your site into a minimum environment, Which means switching to a default WordPress theme like TwentyTwenty-Four and having no plugins activated except WPML.

First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except the WPML, its add-ons, and WooCommerce itself (without extensions except the AutomateWoo add-on). Then please check if the problem persists. If it does not continue, start by activating the plugins individually, check when the issue comes back, and then report which plugin was the culprit.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

Regards,
Itamar.

June 26, 2024 at 3:27 pm #15835484

cecileG

Hi,

I still have an issue.
I set the string in english by default in Woocommerce > Settings > Payments.
I switched to a default theme (Twenty Twenty One like on the sandbox).
I desactivated all plugins beside Woocommerce / WPML / AutomateWoo, and I still have the instructions in the wrong language in AutomateWoo email, for the orders not placed in the default language (FR).

I placed an order in EN, the first on-hold email was correct. The email sent via AutomateWoo has the instructions in FR.
I don't know what can be the cause of this error...

June 27, 2024 at 2:10 pm #15844673

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I will need to escalate this issue to our second-tier supporters. For this, I need access to your site and permission to install a plugin like Duplicator or All In One Migration.

Do you allow me to take a copy of your site?

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

July 2, 2024 at 12:48 pm #15875323

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for the access details.

To see the problem and proceed with the escalation of this case, I need your permission to install a plugin like Email Log (https://wordpress.org/plugins/email-log/).

Do you allow me to install it?
(I'm not allowed to proceed without your permission.)

Or maybe there is already a way to see the outgoing emails on your site's admin?
If so then please tell me how to see the emails.

Regards,
Itamar.

July 3, 2024 at 1:21 pm #15884683

cecileG

Hi,

But you have updated WordPress and Woocommerce right ? Without our permission...
Anyway, the plugin Email Log is installed on the staging site. You can view emails.

Thank you

The topic ‘[Closed] AutomateWoo – gateways instructions in email not translated’ is closed to new replies.