• Resolved ARCangelGIRL

    (@arcangelgirl)


    Hello,

    Is it possible to send stock emails (stock_alert_email.php and stock_alert_email_subscriber_confirmation.php) in 2 languages.
    Let say if the user has selected english as a current language in the website, then the email will be sent in english. And if the current website language let say is lithuanian, then the same email will be send, just in lithuanian language.

    How can I achieve that?

    I tried to echo current language using $lang = get_bloginfo("language"); but it does not return anything in stock_alert_email_subscriber_confirmation.php file. Any help would be appreciated.

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter ARCangelGIRL

    (@arcangelgirl)

    Actually never mind. I just find out that I can get this information from WPML table wp_icl_translations to see current product language and do what I need after.

Viewing 1 replies (of 1 total)
  • The topic ‘Send stock emails in 2 languages’ is closed to new replies.