Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding email to order notification


Guest

Recommended Posts

Posted

in my order notifications (i receive a copy, i use the "send extra order emails to" command, the TO and FROM is my store address.

 

how can i impliment the FROM to be from the customer's email, or if it's easier - just put their email in the body of the message?

Posted

open the catalog\checkout_process.php find these lines:

 

// 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);
 }

 

Replace them with these lines:

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$email_custom = 'order from emai: ' . $order->customer['email_address'] . "\n\n" . $email_order;
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_custom, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

Archived

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

×
×
  • Create New...