Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding email address to order


Guest

Recommended Posts

In checkout_process.php find this code:

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

...change it to this:

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, $order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address']);
 }

This change will send the emails to everyone on the "send extra order emails" but will have the customer's address in the return field. A simple modification but useful if you have to contact the customer...just hit reply on the notification email.

Link to comment
Share on other sites

In checkout_process.php find this code:

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

...change it to this:

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, $order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address']);
 }

This change will send the emails to everyone on the "send extra order emails" but will have the customer's address in the return field.  A simple modification but useful if you have to contact the customer...just hit reply on the notification email.

 

I think i was not clear with my question, but will this show the email address on the orders we print out with the address and phone number?

thanks

frank

Link to comment
Share on other sites

I think i was not clear with my question, but will this show the email address on the orders we print out with the address and phone number?

thanks

frank

Ok I got it I just added this line:

 

$email_order .= "Email:" . tep_db_output($order->customer['email_address']) . "\n\n";

Link to comment
Share on other sites

  • 2 weeks later...

I was looking up how to add the customers email to the order email but this is even better. Just want to add the order number to the subject line now?

Link to comment
Share on other sites

  • 4 months later...
Ok I got it I just added this line:

 

$email_order .= "Email:" . tep_db_output($order->customer['email_address']) . "\n\n";

 

how did you make it work?

I want the same thing as you; to have the customer's e-mail address in the order email so I don't have to log in to the admin section and look them up in the users area just to know their email address.

 

Where exactly did you put it in?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...