deep12s Posted April 24, 2006 Posted April 24, 2006 How can I add the customers email and phone number to the extra email that is sent out when a customer makes a purchase?
Guest Posted May 6, 2006 Posted May 6, 2006 Change in catalog/checkout_proces.php: // lets start with the email confirmation // START HTML Invoice if (EMAIL_INVOICE == 'true') { require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE); } else { // END HTML Invoice $email_order = STORE_NAME . "\n" . // additional text message $email_order .= "\n\PUT HERE ANYTHING YOU LIKE ON THE EMAIL CONFIRMATION</b> \n\n" . // end of additional text message EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n" . EMAIL_TEXT_CUSTOMER_EMAIL_ADDRESS . $order->customer['email_address'] . "\n" . EMAIL_TEXT_CUSTOMER_FAX . ' ' . $order->customer['fax'] . "\n" . EMAIL_TEXT_TELEPHONE . $order->customer['telephone'] . "\n\n"; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.