Jump to content

Archived

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

gaspower

Checkout_process Added Phone Number To Email

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";

Share this post


Link to post
Share on other sites

Did you change the file includes/modules/payment/paypal_standard.php ? A lot of the checkout_process.php code gets reimplemented there.


Always back up before making changes.

Share this post


Link to post
Share on other sites

Hello

 

Thank you. You are correct, needed to be replaced in both locations, checkout_process.php and /includes/modules/payments/paypal_standard.php.

 

Thanks JR

Share this post


Link to post
Share on other sites

×