Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cunstomer Phone and Email


devindelane

Recommended Posts

Posted

Hello, I'm sorry I posted this in the Contribution section by mistake ----

 

I'm new to PHP and was wondering: In the (Customer Order Email) I would like to include the customers phone number and email address. So we do not have to look it up everytime a new order comes in.

 

Does anyone have any idea how to do this?

 

Thank you in advance,

 

DD

Posted

I am not sure how you have the confirmation emails setup, but I have it setup to send extra order emails to my email address. You can set that in the configuration area of the admin area.

 

Now in order to send this extra details edit the file checkout_process.php and then find this code:

 

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

 

And then change to:

 

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order . "\nCustomers Telephone: " .$order->customer['telephone'] . "\nCustomers Email Address: " . $order->customer['email_address'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

  • 1 month later...
Posted

sweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet, after a while of searching though here I found what I wanted and it's simple to do......

 

Now, let's say I used the above and now I want to include the customers IP address in the email ???? Is that something that can even be done ????

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...