Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer Phone number(s) in mails sent to Extra Order Emails


mandu

Recommended Posts

I'm an absolute begginer in osCommerce so...

The store works almost fine exept some small configuration errors. Yeah... Newsletter Manager a.o.... but my first question is:

 

How can I add the Phone number(s) of the Customer in the e-mails sent to the addresses specified in: Send Extra Order Emails To ?

 

TIA

Link to comment
Share on other sites

I'm an absolute begginer in osCommerce so...

The store works almost fine exept some small configuration errors. Yeah... Newsletter Manager a.o.... but my first question is:

 

How can I add the Phone number(s) of the Customer in the e-mails sent to the addresses specified in: Send Extra Order Emails To ?

 

TIA

 

 

Find your /catalog/checkout_process.php file

Make a backup of it

 

now open it and find this block

 

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

}

 

 

replace it with this block

 

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_SEPARATOR . "n" .

EMAIL_TEXT_TELEPHONE . $order->customer['telephone'] . "n" .

EMAIL_SEPARATOR . "n";

}

 

 

 

save the file and upload it.

 

 

F5

Link to comment
Share on other sites

Find your /catalog/checkout_process.php file

Make a backup of it

 

now open it and find this block

 

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

}

replace it with this block

 

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_SEPARATOR . "n" .

EMAIL_TEXT_TELEPHONE . $order->customer['telephone'] . "n" .

EMAIL_SEPARATOR . "n";

}

save the file and upload it.

F5

 

Ok, cool, can you also make it include the delivery address too?

 

Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...