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.
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" ?
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.
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.