Zen Cart Logo
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

Views: 1,330

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,085
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,513
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.