Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Customer Contact Number to E Mail


Flyer5

Recommended Posts

Posted

Hello.

One of my clients said he would like the customers phone number in the notification e mail, preferably so it was easy to spot. I thought others may find it useful, and it's easy to add.

 

Step 1.

--------

Backup the following 2 files->

catalog/checkout_process.php

catalog/includes/languages/english/checkout_process.php

 

Next

 

In file catalog/checkout_process.php

 

Find;

 

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

}

 

 

 

And Replace with;

 

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

}

 

Step 2

-------

In catalog/includes/languages/english/checkout_process.php

add

 

define('EMAIL_TEXT_TELEPHONE', 'Customers Contact Number:');

 

>END

 

Thats it! 2 steps and its done!

 

F5 :D

  • 3 years later...
Posted

This may help:

 

Click Me

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...