• Resolved jimbo777

    (@jimbo777)


    Hi,

    I am working on a store on staging server which is primarily German and English. The store owner has more languages turned on on the front-end such as Spanish. So if a customer switches the language to Spanish and checks out, all order confirmation emails etc. are currently sent out in Spanish. But the store owner would like to limit all emails – except German – to go out in English language. So basically: If current users language is NOT set to German, send all emails in English language.

    I am hoping that all I would need is the corresponding 2-3 lines of code to place into functions.php? I’d appreciate any help since I am not well versed enough in PHP or TP to write this type of code.

    Thanks very much in advance.

    Best,
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Chris,

    The problem is that by default the emails in WordPress are gettext type and our plugin doesn’t yet detect these strings because they are not visible in the front-end, only processed.

    What you can do is to use the plugin Loco Translate to translate those strings the way you want.

    I’m sorry for this inconvenient and thank you for understanding.

    Best regards,
    Cristian

    Thread Starter jimbo777

    (@jimbo777)

    Cristian,
    Can’t you think of a way to trick the system and tell wordpress that user language is in English although it is a different language?

    It just seems a lot of effort to manually translate numerous woocommerce emails in several languages just to achieve sendout of emails in English language. There must be a different way. I guess I am looking for a few lines of code to tell wordpress that the users language is set to English although it may be a different language. I dont see why thats not possible.

    Thanks,
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limiting Shop Emails to English and German only’ is closed to new replies.