Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default [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');

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

    Default Re: 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/i...hp?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.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 5 Jan 2015, 03:40 PM
  2. Replies: 0
    Last Post: 22 Dec 2014, 05:14 PM
  3. Hard coded Contact Us page
    By mudpit in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Nov 2012, 07:13 AM

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