Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    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
    Are you trying to send an email? or send a coupon?
    Those are two different options.
    I created a new discount coupon and in the coupon list I've the option to send customer that I've created a coupon.
    it uses the "send email" api, with the email_template_coupon

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: how to send email in multiple languages?

    You can specify coupon descriptions in multiple languages.
    If you log into your Admin, and select a language, and go to the Coupon Administration menu, select a coupon (for which you've given descriptions in all available languages) and click "Email" to send that coupon to a particular customer, that email will be sent in the language selected in your admin menu.
    It will use the admin language files for the selected language to build the TEXT email content, and will use the HTML template in the /email/XX/ folder to prepare the format of the HTML-portion of the emails.

    FAQ reference: https://www.zen-cart.com/tutorials/i...hp?article=113
    HOW TO USE the HTML Mail Template System
    The email template system operates through the email_*.htm files in your /email folder.

    MULTIPLE LANGUAGES
    You can duplicate the template files into language-specific folders using the language "short" code, using the following format:

    /email/ = english/master
    /emai//fr/ = french
    /email/de/ = german
    /email/es/ = spanish
    ...

    If you don't copy a certain file into the language folder, the english master will be used.
    .

    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.

  3. #13
    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
    You can specify coupon descriptions in multiple languages.
    If you log into your Admin, and select a language, and go to the Coupon Administration menu, select a coupon (for which you've given descriptions in all available languages) and click "Email" to send that coupon to a particular customer, that email will be sent in the language selected in your admin menu.
    It will use the admin language files for the selected language to build the TEXT email content, and will use the HTML template in the /email/XX/ folder to prepare the format of the HTML-portion of the emails.

    FAQ reference: https://www.zen-cart.com/tutorials/i...hp?article=113
    I've read it. the problem is how to send a french mail (stated I know how to write in french) to a french customer, an italian mail to an italian one, and so on...

    For now (because I had to send the email for the coupon) I created three new query in query_builder selecting the country of the customer (customers_default_address_id -> address_book), but this doesn't solve the case where a person lives in a country where there are more than one language (Canada for example).

    The best should be save the language of the customer indeed. May this be a "Wishlist" ?

  4. #14
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: how to send email in multiple languages?

    Sorry, I've misunderstood your messages. You used the word "customer" consistently, rather than the plural "customers", so I was of the impression you were trying to send a SINGLE email.

    Your query_builder approach is probably most suitable for the bulk emailing that you are trying to accomplish.


    The ability to let the customer select their own language preference will be included in v1.4.0 when it is released.
    .

    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.

  5. #15
    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
    Sorry, I've misunderstood your messages. You used the word "customer" consistently, rather than the plural "customers", so I was of the impression you were trying to send a SINGLE email.

    Your query_builder approach is probably most suitable for the bulk emailing that you are trying to accomplish.


    The ability to let the customer select their own language preference will be included in v1.4.0 when it is released.
    Wondeful :)

  6. #16
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: how to send email in multiple languages?

    Hello,
    I want to run a cron job which automatically sends an email to my customers.
    But the problem is I want to send the email in two different language
    according to the customer set language preference.

    For it I can use languages_id field from customers table and depending upon the language_id email is send to the each customer.

 

 
Page 2 of 2 FirstFirst 12

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