Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout_process Added Phone Number To Email


gaspower

Recommended Posts

Hello,

 

In checkout_process.php, I added the below code to add email and phone number to emails sent out for order confirmation. It works fine when I test with payment of COD, Money Order, Authorize, which seem to stay on the site for process. But when I try Paypal Standard as a payment process, it seems not to add the email and phone number to the email confirmation?

 

Thanks JR

 

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";
    $email_order .= 'E-mail: ' . $order->customer['email_address'] . "\n";
    $email_order .= 'Tel.: ' . $order->customer['telephone'] . "\n";
 }
 $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
							  EMAIL_SEPARATOR . "\n" .
							  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
 $email_order .= 'E-mail: ' . $order->customer['email_address'] . "\n";
 $email_order .= 'Tel.: ' . $order->customer['telephone'] . "\n";

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...