skeedo Posted December 3, 2002 Posted December 3, 2002 I found a few posts dealing with this, but after an hour of messing with it still can't get the order ID to show up in subject for new order email confirmations. Here's what I have for the checkout_confirmation.php code: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT . ' #' . tep_db_input($oID), nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT . ' #' . tep_db_input($oID), nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); } Why god why!
nick Posted December 3, 2002 Posted December 3, 2002 Try ... tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['ema il_address'], EMAIL_TEXT_SUBJECT . ' #' . $insert_id, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); Cheers Nick
skeedo Posted December 3, 2002 Author Posted December 3, 2002 Thats what I originally had...not doing it! Order numbers appear in subject of order status emails, just not the original order process email. Help!
Ajeh Posted December 3, 2002 Posted December 3, 2002 Make sure you make the changes for all sections. Example ... in /catalog/checkout_process.php there are two places. Note: My code has a few extra things in it but you should get the idea. // WebMakers.com Added: Include Order # in Subject tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT . ' #' . $insert_id, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { // WebMakers.com Added: Include Order # in Subject and customer's email address and phone in body tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT . ' #' . $insert_id, $order->customer['firstname'] . ' ' . $order->customer['lastname'] . ' ' . $order->customer['email_address'] . "nn" . 'Telephone ' . $order->customer['telephone'] . "nn" . nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); } In /admin/orders.php tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT . ' #' . $oID, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.