Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Customer Name Variables in Welcome Email

    Hello,

    Just customizing my Welcome email. Read all the threads and found almost everything I needed. If %s is the variable to show the customer's last name, what is the variable to show the first name? Hopefully an easy answer!!

    Thanks in advance!
    Cowspot, www.cowspotbeads.com
    Zen 1.3.8a, InternetSecure Payment Mod, Custom Bundles Mod
    SuperTracker Mod, Who Referred You? Mod, Recover Cart Sales

  2. #2
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Re: Customer Name Variables in Welcome Email

    I looked in the /email/ directory and the code for the email_template_direct_email.html shows the following:

    Dear $EMAIL_FIRST_NAME $EMAIL_LAST_NAME

    Where did you get %s?

    I did a search of all the files in version 1.3.8a with Dreamweaver and the %s shows up all over the place for all kinds of different stuff.
    Steve
    Zen cart version: 1.3.9h

  3. #3
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: Customer Name Variables in Welcome Email

    Hey,

    It is in the \includes\languages\english\create_account.php

    [SCR]define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
    define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");[/SCR]

    Thanks!
    Cowspot, www.cowspotbeads.com
    Zen 1.3.8a, InternetSecure Payment Mod, Custom Bundles Mod
    SuperTracker Mod, Who Referred You? Mod, Recover Cart Sales

  4. #4
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: Customer Name Variables in Welcome Email

    Sorry the code is:

    define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
    define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

    Thanks!
    Cowspot, www.cowspotbeads.com
    Zen 1.3.8a, InternetSecure Payment Mod, Custom Bundles Mod
    SuperTracker Mod, Who Referred You? Mod, Recover Cart Sales

  5. #5
    Join Date
    Apr 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Customer Name Variables in Welcome Email

    I edit admin/email_welcome.php like this. I just commented out the Mr and Mrs stuff so it default to first name as if no gender was specified.

    // build the message content

    // if (ACCOUNT_GENDER == 'true') {
    // if ($gender == 'm') {
    // $email_text = sprintf(EMAIL_GREET_MR, $lastname);
    // } else {
    // $email_text = sprintf(EMAIL_GREET_MS, $lastname);
    // }
    // } else {
    $email_text = sprintf(EMAIL_GREET_NONE, $firstname);
    // }
    $html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
    $html_msg['EMAIL_FIRST_NAME'] = $firstname;
    $html_msg['EMAIL_LAST_NAME'] = $lastname;

 

 

Similar Threads

  1. Welcome email and customer company name
    By Shamshop in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2011, 03:59 AM
  2. Email Welcome - use customer's first name only
    By NJka in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2010, 09:49 PM
  3. add last name on welcome email?
    By keenskin in forum General Questions
    Replies: 3
    Last Post: 2 Apr 2009, 10:12 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