If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Done 2.0] admin email salutation hard coded

[Done 2.0] admin email salutation hard coded

Locked

Started by torvista on 15 May 2011, 8:05 AM · Views: 1,762

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
15 May 2011, 8:05 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

[Done 2.0] admin email salutation hard coded

Apologies if this has been mentioned elsewhere.

The "Dear" in the admin email to customers is hardcoded.

Changes I made:

in the email/email_template_direct_email.html and other language versions:

chnage

<div>Dear $EMAIL_FIRST_NAME $EMAIL_LAST_NAME</div>to <div>$EMAIL_SALUTATION $EMAIL_FIRST_NAME $EMAIL_LAST_NAME</div>admin/mail.php around line 59

while (!$mail->EOF) {
$html_msg['EMAIL_FIRST_NAME'] = $mail->fields['customers_firstname'];to

while (!$mail->EOF) {
$html_msg['EMAIL_SALUTATION'] = EMAIL_SALUTATION;
$html_msg['EMAIL_FIRST_NAME'] = $mail->fields['customers_firstname'];and added the defines in the relevant language files:
define('EMAIL_SALUTATION', 'Dear');

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 May 2011, 11:33 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done 2.0] admin email salutation hard coded

Or, you could just use the built-in multi-language capability for email templates: https://www.zen-cart.com/tutorials/index.php?article=113

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