Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client customized a WooCommerce email template ("Customer invoice / Order details") by changing the body text and needed to translate the new version from English to Italian and French.

Solution:
We asked the client to clarify whether the customization was done directly in the WooCommerce email template or through a customization in the theme's functions.php file. We also provided a link to our documentation on how to translate WooCommerce emails, which includes steps to follow after scanning the theme. The client then realized they had not scanned the child theme and upon doing so, found the string they were looking to translate.

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 4 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
December 7, 2023 at 9:16 am #15014677

Marzia

hello, I customized an email woocommerce template ("Customer invoice / Order details) changing the text of the body string.
this one
/* translators: %1$s Site title, %2$s Order pay link */
__( 'We apologize for the technical inconvenience. Payment for your order is now ready and you have <b>48 hours</b> to complete the transaction. Your invoice is below, with a link to make payment when you’re ready. Thank you.<br> %2$s. ', 'woocommerce' ),
I alrady went to "Theme e plugins locations" and added thousand of strings, but i cannot find my new version. I need to translate from English to Italian and French. Thank you

December 8, 2023 at 10:11 am #15024353

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Marzia,

Thank you for contacting the support.

Can you please explain a bit about this customization? I mean did you directly change the email template in WooCommerce or added a customization in your theme's functions.php (or another) file?

Usually this is https://wpml.org/documentation/related-projects/woocommerce-multilingual/how-to-translate-woocommerce-emails/#translating-custom-coded-woocommerce-emails how these emails are customized and translated (after scanning your theme).

Please let me know and I'll try my best to help you further on the matter.

Regards.

December 8, 2023 at 10:44 am #15024725

Marzia

Yes I made a duplicate of the template php that automatically went in the child theme.
Before contacting you I scanned the woocommerce domain but I did not think to scan the child theme. It makes sense.
So I found my string! 🙂
Thank you so much for support!! 🙂

December 8, 2023 at 12:36 pm #15025571

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad that issue has been fixed.

I am closing this ticket as resolved. Please feel free to open a new one for anything anytime, related to WPML.

Have a great weekend 🙂