Guest Posted December 1, 2004 Share Posted December 1, 2004 Hi Is there a way of adding the email address to the orders emailed to us. Thanks Frank Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 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 More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 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. <{POST_SNAPBACK}> 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 More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 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 <{POST_SNAPBACK}> 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 More sharing options...
Guest Posted December 14, 2004 Share Posted December 14, 2004 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 More sharing options...
swimp Posted May 2, 2005 Share Posted May 2, 2005 Ok I got it I just added this line: $email_order .= "Email:" . tep_db_output($order->customer['email_address']) . "\n\n"; <{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.