thadson Posted August 24, 2005 Share Posted August 24, 2005 How could I add the customers "Phoner Number" to the "order email" that comes into our office when a customer signs up or orders something? Currently, it is set up only to give us Name, Address and Credit Card Info and I need phone #'s as well. Please help. Link to comment Share on other sites More sharing options...
thadson Posted August 25, 2005 Author Share Posted August 25, 2005 Anyone has an answer for this? Link to comment Share on other sites More sharing options...
thadson Posted August 26, 2005 Author Share Posted August 26, 2005 If this question is already answred by someone, can you guys point me to this answer... I wonder if this is too hard or too easy a question... Link to comment Share on other sites More sharing options...
kgt Posted August 26, 2005 Share Posted August 26, 2005 In checkout_process.php change the code around line 294 to something like: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . 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_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } //KGT - add customer phone $email_order.= "\nCustomer Phone: ". $order->customer['telephone']; //end KGT $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); This is by no means tested and may not work, so be prepared to play around with it some. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
thadson Posted August 26, 2005 Author Share Posted August 26, 2005 Thank You, It worked perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.