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
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Europe/Paris (GMT+01:00)

This topic contains 8 replies, has 3 voices.

Last updated by Yvette 1 year, 9 months ago.

Assisted by: Yvette.

Author Posts
May 25, 2022 at 12:35 pm #11304835

mariusA-7

Hello

I use Kadence WooCommerce email customiser and I've had issues with translating the Kadence content and the custom gateway email instructions for the WooCommerce invoice emails: [woocommerce_alg_custom_gateway_1_settings]instructions_in_email

However, after adding...

$option_key = 'kt_woomail'; add_filter( 'option_' . $option_key, [ wpml_st_load_admin_texts(), 'icl_st_translate_admin_string' ] );

...all email types seem to be translated completely and correctly, EXCEPT the Invoice. I get mixed content where the Kadence content is translated, but the added instructions are not (see attachment – all content should be in English).

(I don't know if the code I've added is valid. I just found it in your forum under a similar topic.)

Thanks

Screenshot 2022-05-25 at 14.23.07.png
May 27, 2022 at 5:12 am #11322377

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

This issue is still open.

https://wpml.org/errata/woocommerce-e-mails-are-always-sent-in-default-language-for-any-admin-order-status-change/

It seems to me you may need to check for a different option key for a specific email.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better for a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “All In One WP Migration” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT

Please make a backup of site files and database before providing us access.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

The steps are also shown in this video: hidden link

Best regards
Andreas

May 30, 2022 at 2:17 pm #11345079

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

I will be helping you now.

Could you please provide me a sample invoice that I can work with?
Is this a live or test system?

Thank you very much.

May 30, 2022 at 2:30 pm #11345205

mariusA-7

Hello. The site is live!

Sample order in English: hidden link

When sending the invoice the email arrives in English but with the added instructions from the custom gateway in Norwegian. I believe this only happens with the invoice email, not the other order emails. I don't often send invoice emails out so it's not of great importance, but it would be good to sort it out at some point. Thanks

May 30, 2022 at 2:35 pm #11345313

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Can I test with this order? Is this a "fake" invoice?

If I generate this invoice will it cause issues?

May 30, 2022 at 2:38 pm #11345401

mariusA-7

It is just a test invoice I made for my self with my own details. Change the email address and what else you need to do.

May 31, 2022 at 1:59 pm #11354021

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

Is this the only email that you have used the Kadence designer for?
Are the other emails that are working, the standard Woocommerce emails?

Thanks for the clarification. On first view, it looks like there is a compatibility issue with this particular template.

June 1, 2022 at 1:20 pm #11362865

mariusA-7

Hi

All emails like "Order on hold" and "Order complete" are customised through Kadence Email Customiser, and as far as I know those emails retrieve the correct translated version (English) of the added custom payment gateway instructions.

Initially I also had problems translating the Kadence Email Customiser's own internal content like the headings and so, but that seem to work now after adding the code from here: https://wpml.org/forums/topic/kadence-email-designer-mixed-language-emails/page/2/

I don't know if this specific issue should be fixed now anyway in the latest WPML update.

I have set the original language in the payment gateway settings to Norwegian and then translated to English. I haven't tried doing it the other way around, but now that I have got the other more important emails to work correctly, I'd rather not touch anything – if not necessary.

So I don't know if the problem lies with Kadence Email Customiser, the custom payment gateway or WPML.

As mentioned, I don't often send out these invoice emails, so there's no hurry. I would however appreciate if it could be fixed at some point. Thanks

June 9, 2022 at 9:04 am #11422131

Yvette
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Paris (GMT+01:00)

Hello

First, thank you so much for your patience. We had an unusually large load last week and I could not get to this issue.

Since this is a compatible plugin and your site is live, could you please use this sandbox site which has been preconfigured with WPML/WCML and Wooocommerce?

hidden link

Please just upload the Kadence Customizer plugin and create an invoice as you have done in your site. Make it as simple an example as possible. Please do not change the Storefront theme or upload any other plugin unless it is required for the Kadence plugin to work.

We can then use this site to test and forward to our compatibility development team for resolution.

When you are done, please write back with steps for me to replicate the issue.
Thank you for your collaboration.
Thanks

The topic ‘[Closed] Issues with translating WooCommerce email instructions on Invoice’ is closed to new replies.