How do I add the following items to the Order Process Email generated by Checkout_process.php:
Customer's phone number
Customer's email address
I think I know where to put it, I just don't know what code to use.
Thanks!
This is a discussion on How to add cust phone # & other to Order Process Email within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; How do I add the following items to the Order Process Email generated by Checkout_process.php: Customer's phone number Customer's email ...
How do I add the following items to the Order Process Email generated by Checkout_process.php:
Customer's phone number
Customer's email address
I think I know where to put it, I just don't know what code to use.
Thanks!
Once again, I found my own answer on another support page. Why is it that no one here knows the answers?
Anyway, here is how to add customer email and phone number to the confirmation email:
My solution is:
\catalog\checkout_process.php orig.
CODE
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";
}
\catalog\checkout_process.php modif.
CODE
if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_MAIL . $order->customer['email_address'] . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $sendto, 0, '', "\n") .
EMAIL_TEXT_PHONE . $order->customer['telephone']. "\n";
}
In more, the following lines, must be added
\catalog\includes\languages\(your language)\checkout_process.php
CODE
define('EMAIL_TEXT_MAIL', 'Email: ');
define('EMAIL_TEXT_PHONE', 'Telefono: ');
Bookmarks