Re: Ooopppssss!

jrglass <[email protected]>
Newsgroups gmane.comp.web.oscommerce.tips
Message-ID <5fd42f9a9f24646b73bbae83e1b96157@osCommerce-Forums>
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=187966#187966
----------------------------------------------------------------

[quote="jcroson"]I'm not sure if you are going to see the same things I see. I am using the 2.2MS1. I tried the CVS, and after learning most mods are made for MS1, tossed it out.

In my catalog/create_account_process.php I have the following at the bottom of the file:

[code]
// restore cart contents
    $cart->restore_contents();

    // build the message content
    $name = $firstname . " " . $lastname;

    if (ACCOUNT_GENDER == 'true') {
       if ($HTTP_POST_VARS['gender'] == 'm') {
         $email_text = EMAIL_GREET_MR;
       } else {
         $email_text = EMAIL_GREET_MS;
       }
    } else {
      $email_text = EMAIL_GREET_NONE;
    }

    $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
    tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

// ###########  JTC New Customer Notification
$smemail_text .= NEW_CUSTOMER_NOTIFICATION_TEXT . ' The new customer name is ' . nl2br($name) . '.';
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, NEW_CUSTOMER_NOTIFICATION_SUBJECT, nl2br($smemail_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
// ##########  end add

    tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
  }

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

// EOF
[/code]

You can see that I pull the customer name from the $name variable near the top of this message content building process.

My addition is commented with # symbols.

Hope this helps.

JC[/quote]

That did it,  I must have had a typo

Thanks

Jeff
www.discountmagazinehouse.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.