Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

B2BSuite


adam71o

Recommended Posts

I have B2BSuite installed. When my customers sign up for an account, I get an email saying:

 

==========================

"A new customer has joined your site"

==========================

 

 

I would like for this email to say:

 

==========================

"A new customer has joined your site"

 

CustomerFirstName CustomerLastName

 

CustomerEmail

 

CustomerPhone

==========================

 

 

I THINK the file to change is create_account.php and I believe I have the section isolated:

 

// admin email notification 
   $admin_email_text .= ADMIN_EMAIL_TEXT;
   tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, nl2br($admin_email_text), $name, $email_address, ''); 	 

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

 

 

Basically, I THINK I can just add something equalling

 

output $firstname, " " $lastname, " "<br>

$email_address, <br>

$phone<br>

 

----I KNOW THATS NOT REAL CODE, this is just an example of what I THINK can be done :(

 

 

If I knew php, this would probably be simple. But I don't.

Link to comment
Share on other sites

What about:

// admin email notification 
? ?$admin_email_text .= ADMIN_EMAIL_TEXT;
$admin_email_text .= "\n\n" . $firstname . " " . $lastname . "\n\n" . $email_address ."\n\n" . $telephone . " ";
? ?tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, nl2br($admin_email_text), $name, $email_address, ''); ?

Link to comment
Share on other sites

Well, JanZ, you have successfully answered my question. It now works!

 

Thank you SOOOOOOOOOOO much. This little tidbit of knowledge will help me a whole lot in the future, as I often make small changes like this.

 

Thanks again, you are amazing.

Edited by adam71o
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...