Skip to content Skip to sidebar

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+02:00)

This topic contains 28 replies, has 2 voices.

Last updated by pecnet 4 years, 7 months ago.

Assisted by: Yvette.

Author Posts
February 7, 2021 at 10:36 pm #8027393

pecnet

Bonjour,

j'aimerais mieux comprendre l'utilisation de wpml + woocommerce avec les mails de notification.

J'ai mon site e-commerce en français et néerlandais.

1. Lorsqu'un client néerlandais commande sur le site les mails de notification coté client et coté shop manager ce font en néerlandais.
2. Et si il y a un client français alors tout les mails échanger depuis woocommerce coté client + shop manager ce font en français.

Cependant j'aimerais bien savoir si les notifications coté shop manager peut ce faire en une lange que je choisit par default.

Exemple je souhaite que les mails pour le shop manager ce font en néerlandais mais si j'ai un client français qu'il commande alors pour ce client les mails de notifications doivent ce faire en français et pour le shop manager en néerlandais.

C'est possible de faire ça?

Merci

February 8, 2021 at 4:48 pm #8034873

Yvette
Supporter

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

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

Hello

You opened your thread in the English forum. I can read French but my written French is appalling and I don´t want to hurt your eyes.

Woocommerce emails work as follows:

1. Client mails
These will be sent in the language of the order. The language of the order is held in the custom field wpml_language of the order.

2. Administrative emails
These will be sent in the language that is configured in the administrator´s profile. If none has been sent, the default value is the system default language.

3. Other non-standard Woocommerce emails.
Other emails may not be supported by WCML "out-of-the-box" and may require some integration work from the plugin author according to this documentation:
https://wpml.org/documentation/support/sending-emails-with-wpml/

Does this answer your questions?

February 8, 2021 at 5:55 pm #8035183

pecnet

Hello,

I also noticed that the mails are exchanged according to this post_meta -> wpml_language if it is in French all done in French if it is in Dutch all done in Dutch ...

And this is done for the client mail and the mail shop manager.

However I would like to force all the emails to exchange for the shop manager by language of his profile which is Dutch ...

I can forced and therefore configured this?

if this is not possible i have to look at this link and need a custom code is that it?

https://wpml.org/documentation/support/sending-emails-with-wpml/

thanks

February 8, 2021 at 8:05 pm #8035691

Yvette
Supporter

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

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

Hello

this is what happens in a standard setup using the Storefront theme.

Please check this in the following sandbox site:
hidden link

Here i have defined a shop manager with email m@gmail.com with the language "Spanish" as the preferred language in the user profile.
There is also a standard admin role "demo" that uses "English/ Default language" n the profile.

I then place an order in English, and this makes an EN order.

You can see the New Order email results in the image below.
2 admin emails are created: one iin Spanish and the other in English

Please try this yourself to see that this is the baseline default behaviour. Then we can see what is different with your site.

AdmiinOrderEmails.png
February 8, 2021 at 8:29 pm #8035749

pecnet

Hello,

Ok thanks for your link,
natively woocommerce + wpml reacts as I wish so it is a logical behavior natively 🙂

The problem I did not report I use another plugins
"YITH WooCommerce Request a Quote"

I thought that the behavior of the notifications of the mails of this plugins this based as by default but it is not the case.

if you have any idea how i can sort this out i would be happy
otherwise I will see the side of YITH support

but if you have an opinion an idea of a track, I would be happy

thanks

February 8, 2021 at 9:16 pm #8035963

Yvette
Supporter

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

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

Oh! This plugin is marked as "tested compatible"...so if it is not working, then we can report this as a bug.

So please upload the plugin to the same sandbox site and configure an example so we can check it.

Thanks

February 8, 2021 at 9:51 pm #8036109

pecnet

thank you,
I added the plugins and tried to do the test, but as the shop manager does not receive the email from the quote plugins I do not know if it is a bug or a missing feature

because in principle if it is natively correct then the shop manager will receive the quote message in spanish and not in the client's language

by dint of testing it causes confusion but
if you need more details I remain available

and thank you again

February 8, 2021 at 10:00 pm #8036127

Yvette
Supporter

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

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

You just had to "manage" / configure the Request-a-quote email to have it also send the email to the shop manager. I have done that for you.

So please try again.

shopManagerAdded.png
February 8, 2021 at 10:11 pm #8036215

pecnet

Thank you, I took the test again,

the message via the quote plugins only sends the message in English to the shop manager (normally this email must be in spanish)

and in green in the image you could see that the default woocommerce message is sent in the correct language

(I would like to add that in my side the templates are well translated normally

because the nl or fr client does receive in the language defined here -> wpml_language)

Capture d’écran 2021-02-08 à 23.09.47.png
February 9, 2021 at 10:33 am #8039849

Yvette
Supporter

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

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

Thank you - this is a perfect example.

I have escalated this to our comaptibility team and you will receive update here but please also feel free to checkin in case I get overloaded and forget to update the ticket.

February 9, 2021 at 11:24 am #8040571

pecnet

Hi,

Ok thank you for your reactivity,
can you tell me how long i can wait +/-?

Thank you

February 9, 2021 at 11:52 am #8040761

Yvette
Supporter

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

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

These days it is a realtively good turnaround - give it a day or 2.

February 10, 2021 at 4:37 pm #8054469

pecnet

Hello,

I will come back to you to report another technical problem,
I do not know if this is a bug or needs to be adjusted but I will describe it anyway.

When I use the quote plugins I can add the products for example here in English, but I have the same product in Spanish, same product and same price

if I also add in Spanish in the list I have the same products twice ...

which is logical because they have 2 different id, but how can I make it clear that it is the same product and we must not add the product with its second language but modify the quantity ...

to better illustrate the subject, here is the test video: hidden link

Thank you

February 10, 2021 at 6:23 pm #8055303

Yvette
Supporter

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

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

Hello

1. Sandbox site version of the plugin
Could you please install the most recent version of the plugin into the sandbox site? You installed Version 2.3.4 but the latest release is View version 3.0.4

2. For the other issue, as you stated, the products have different id´s and I am not sure if this is a bug either. I can open a new compatibility ticket for this issue once you update the verision of the plugin.

February 10, 2021 at 6:37 pm #8055347

pecnet

the version I use is a personalized version the developer has to modify to make it optimal ..., and I do not have access to the update I do not even know if the 1 year support is finished or not .. .