Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    May 2008
    Posts
    30
    Plugin Contributions
    0

    Default how to send email in multiple languages?

    HI
    my shop has many french customer, many italian and some english.

    how to send an email whre the text is defined by the language of the customer ?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: how to send email in multiple languages?

    Unfortunately the current email system is one language and the default files are in english. Any other language and especially multi languages will require that you create some other system for these.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: how to send email in multiple languages?

    Language work for emails in a similar way the rest of Zen Cart, so the text for the Zen Cart standard emails is spread around the language files, though it's sometimes a challenge finding it. But if you have good language packs that should already be done for you.

    The bigger challenge is that Zen Cart doesn't currently store a preferred language for customers, so emails generally go out in the site's default language, though I suspect that some of the Admin-generated emails may go out in the language being used at the time in the Admin.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    May 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: how to send email in multiple languages?

    Quote Originally Posted by kuroi View Post
    Language work for emails in a similar way the rest of Zen Cart, so the text for the Zen Cart standard emails is spread around the language files, though it's sometimes a challenge finding it. But if you have good language packs that should already be done for you.

    The bigger challenge is that Zen Cart doesn't currently store a preferred language for customers, so emails generally go out in the site's default language, though I suspect that some of the Admin-generated emails may go out in the language being used at the time in the Admin.
    you got the point.
    Testing show that the email using the template system go out with the language selected for the admin area during sending time.

    mmm This seema big issue.
    I've to send a coupon to customer and cannot find a way to send the in the right language.

    But on my website I've customer with the language set by the GET...
    what if I write an <img> linking to an image in my webserver in the email ?
    would it be shown ?

  5. #5
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: how to send email in multiple languages?

    You will have to store the customer preferred language somehow.

    You can do something like this:
    Create a language field in customer table, you can associate the default language there.

    If the customer logged in, and choose a language (using the language sidebox etc) which is different from the language set in his/her setting, then you you make change in his/her setting.

    The next time he/she visit and logged in, you can switch to his/her language automatically. You can also use this in the email sent out.

    This is not easy job, but not very complicated.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: how to send email in multiple languages?

    Emails sent from the storefront use the language text defined in the language pack for the language selected by the customer during that visit to your site.

    Emails sent from the admin will use the language text based on the language selected by the administrator at the time of sending the email.

    But, your posts don't clearly explain what "problem" you have. What exactly is it you're trying to do?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: how to send email in multiple languages?

    Quote Originally Posted by DrByte View Post
    Emails sent from the storefront use the language text defined in the language pack for the language selected by the customer during that visit to your site.

    Emails sent from the admin will use the language text based on the language selected by the administrator at the time of sending the email.

    But, your posts don't clearly explain what "problem" you have. What exactly is it you're trying to do?
    I wish to send a mail in the customer language thru the admin interface (New discount coupon)

  8. #8
    Join Date
    May 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: how to send email in multiple languages?

    Quote Originally Posted by yellow1912 View Post
    You will have to store the customer preferred language somehow.

    You can do something like this:
    Create a language field in customer table, you can associate the default language there.

    If the customer logged in, and choose a language (using the language sidebox etc) which is different from the language set in his/her setting, then you you make change in his/her setting.

    The next time he/she visit and logged in, you can switch to his/her language automatically. You can also use this in the email sent out.

    This is not easy job, but not very complicated.
    I'd check if I can do this in the future, but now...
    what if I send an html email to customer with a remote image (on my server)
    on the GET I'll get the preferred language (but will it works ? will the webmail or the mail client let load a remote image ?)
    (simplest for me)

    Second I may select the default address country for people and send the email based on the country...

    third I may use the IP address of the customer to geoip them, but... I don't know if I have an IP for every customer...

  9. #9
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: how to send email in multiple languages?

    This is the easiest way to do it for now:

    Create an ezpage(you will need the multi language plugin) or a define page. Then store the content of the newsletter on this page (with all language versions)

    When you email your customer, you can just email them the link to this page, or you can email the content in default language along with the link to other languages.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: how to send email in multiple languages?

    Quote Originally Posted by asappia View Post
    I wish to send a mail in the customer language thru the admin interface (New discount coupon)
    Are you trying to send an email? or send a coupon?
    Those are two different options.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to support multiple languages? Thanks.
    By mdivk in forum General Questions
    Replies: 7
    Last Post: 14 Nov 2011, 03:43 PM
  2. trying to send email using tools > send email - get error
    By keylesslocks in forum General Questions
    Replies: 4
    Last Post: 24 Jan 2010, 05:05 PM
  3. How do I send BCC to myself when I Send Email to Customer?
    By Zinfandel in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2008, 01:55 PM
  4. Multiple (flash) headers with multiple languages
    By jurjenruben in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 29 Dec 2007, 11:18 PM
  5. how to send email to mass people???
    By lastpirate007 in forum General Questions
    Replies: 2
    Last Post: 20 Aug 2007, 09:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg