Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

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

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

  3. #3
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

 

 

Similar Threads

  1. v153 "Contact form customer info" Emails are Always Blank!
    By BlackOrchidCouture in forum General Questions
    Replies: 7
    Last Post: 11 Apr 2015, 07:07 PM
  2. create an account emails don't always come
    By sham in forum General Questions
    Replies: 2
    Last Post: 17 Nov 2010, 07:55 PM
  3. Always Free Shipping / Always Virtual Product -- How?
    By pseudonym in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 14 Mar 2009, 08:21 PM
  4. Gift Voucher Emails not always sending?
    By angeli in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 7 Dec 2008, 06:37 PM
  5. Emails always sent in text format
    By petek in forum General Questions
    Replies: 6
    Last Post: 13 May 2008, 02:44 PM

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