If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / [Done v1.6.0] zen_mail doesn't use default template

[Done v1.6.0] zen_mail doesn't use default template

Started by lat9 on 24 Apr 2013, 3:12 PM · Views: 1,337

Results 1 to 3 of 3
24 Apr 2013, 3:12 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

[Done v1.6.0] zen_mail doesn't use default template

The FAQ How does the HTML email template system work? includes the following section:

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

/email/ = this is your english/master set of files
/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.

The bit in red is, unfortunately, not the case. In a multi-language shop, if an HTML email is to be sent in a language other than english (e.g. Spanish, with a languages_code of es) and the requested email template doesn't exist in the language's email folder (e.g. email/es) then the email will be sent in TEXT without regard to the customer or admin TEXT vs. HTML email selection.

Either the FAQ should be changed to describe the current behavior (processing in function zen_build_html_email_from_template in /includes/functions/functions_email.php) or the function should be changed to provide the behavior described in the FAQ.

24 Apr 2013, 6:37 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.6.0] zen_mail doesn't use default template

Acknowledged.

Will dig into why the code that's supposed to use the main default isn't doing what it's supposed 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.

28 Jul 2013, 1:56 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.6.0] zen_mail doesn't use default template

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