Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    help question Change salutation order confirmations to include gender

    I'm trying to change the salutation on the order confirmation emails to the same format as the account creation emails.

    The account creation emails which are generated within modules/create_account.php have a nice check on the gender, so emails can have a salutation like 'Dear Mr. ...' or Dear Ms. ...'. The order confirmation emails on the other hand use the customer first and last name.

    Tried copying the code

    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;

    over to classes/mytemplate/order.php but without the desired result. Also tried changing $firstname to $this->customer['firstname'] (and same for lastname) because the order.php seems to have a bit different coding approach. Again no result.

    Anyone who has ever done this and could point me in the right direction?

  2. #2
    Join Date
    Nov 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: Change salutation order confirmations to include gender

    hi,

    I have exactly the same problem. Was this solved? Does anyone have the answer?

    thanks.

 

 

Similar Threads

  1. Automatically Include Customer Name in Newsletter Salutation?
    By rebelman in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 8 Sep 2011, 07:07 PM
  2. Email Salutation in Order
    By RaySpike in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Sep 2009, 09:59 AM
  3. change email content for order confirmations?
    By mickyoung in forum General Questions
    Replies: 1
    Last Post: 14 Nov 2008, 03:48 PM
  4. How to change customer gender options?
    By mediaman in forum Basic Configuration
    Replies: 1
    Last Post: 27 Sep 2007, 11:41 PM
  5. Salutation vs Gender support...
    By Alex Clarke in forum General Questions
    Replies: 2
    Last Post: 23 Oct 2006, 10:36 PM

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