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