Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Cristian Draghia

    (@cristiandraghia)

    Hello there,

    The new order email should be sent in the same language as the language in which the product was brought. The template is already translated by WooCommerce and TranslatePress will send it according to the user’s language.

    I have tested it right before writing this answer. Depending on the language in which I brought the product, I got the appropriate new order email.
    https://drive.google.com/file/d/10et55dw1DjcRz56Z3e_x0DIopOMRnERG/view?usp=sharing

    The problem is with reminders or with notes. Those are always sent in the default language because we don’t store the user’s language in order to know in what language we should send the email.

    Best regards,
    Cristian

    Thread Starter walpap

    (@walpap)

    Cristian

    Thank you for answering!!

    Ok now that I know it works as expected, I feel better.

    But why could the reason is not working on my side?

    Thread Starter walpap

    (@walpap)

    Finally I tried with a test site, and the new order email arrives in both languages. I really don’t know what is happening with the development site. I will try to investigate further.

    But in the meantime I have a doubt. Are you saying that the processing order will arrive in the user’s language but the “Your order is complete” email won’t?

    If that’s the case, how will the conditional shortcode work if you are saying that the plugin don’t store user’s language? What language will be sent to the user then?

    Thank you for your help.

    Plugin Support Cristian Draghia

    (@cristiandraghia)

    Hello,

    Yes, that’s right. The processing order will arrive in the user’s language, but the “Your order is complete” email won’t since we don’t store what language were they using when the order was done.

    The conditional shortcode won’t do much in this case as those mails will always be sent on the default language and there is no way to send the parts created for a different language.

    We are sorry for this inconvenience.

    Best regards,
    Cristian

    dartrax

    (@dartrax)

    The processing order will arrive in the user’s language, but the “Your order is complete” email won’t since we don’t store what language were they using when the order was done.

    There is actually a solution for that:
    https://gist.github.com/dartrax/85b3ab77b8210e92cc50e1b68de83c73

    With this additional code, the user language will be stored in the order metadata and the “out of order” emails will be sent in the correct language.

    – dartrax

    Plugin Support Cristian Draghia

    (@cristiandraghia)

    Hello @dartrax,

    Thank you for informing us about this code.

    I’ll make sure to let our development team know about its existange.

    Best regards,
    Cristian

    Hi @cristiandraghia
    thanks for your answer. That would be great as this seems to be a frequently question.
    I would love to see the developers being inspired and building this functionality right into translatepress, so get’s offically supported. My code shows one possible way of how this could be done.

    – dartrax

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.