Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Emails always default_language?

Emails always default_language?

Locked

Started by s_mack on 7 Nov 2006, 10:46 PM · Views: 894

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Nov 2006, 10:46 PM
#1
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Emails always default_language?

Are emails always sent using the store's language setting? My store is completely English, but I'm writing a contrib and want to make sure I handle languages appropriately. When sending an email out, however... how does the system know what language to use?

It seems to me a customer's language preference is not stored (beyond the session), is that correct? So when emailing the customer from admin, the system can't know what language to send in.

Is that right? Seems odd.

Thanks.

  • Steven
8 Nov 2006, 1:14 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Emails always default_language?

Yes, that's correct. Admin changes are scheduled for the admin-rewrite.

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

8 Nov 2006, 1:22 AM
#3
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Emails always default_language?

k, thanks. Its essentially the same thing that I addressed with my userCurrency contrib (see sig), but with languages instead. If its already slated for release, then I won't bother making a userLanguage contrib...

although you might want to check out my userCurrency contrib for ideas. In addition to storing the logged-in user's setting, it cross-references geographically sorted IP ranges to make a "best guess" for guests too... same thing could apply to languages.

  • Steven