Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

show phone number in order


ilfriz80

Recommended Posts

Hi,

how can I show the customer phone number in the order when I receive it?

 

I would like to have this solution, because I have to contact the customer every days, and every time I have to access to admin pahe and search manually the phone nr.

 

Sorry for my english?

Do you undesrtand me?

 

Thank you from Italy

 

Claudio :thumbsup:

Link to comment
Share on other sites

Ciao Italia!!!

 

MAKE A BACKUP OF THIS FILE BEFORE MAKING ANY EDITS!!!

 

In your file "checkout_process.php" find this code:

 

// lets start with the email confirmation
 $email_order = STORE_NAME . "\n" . 
			 EMAIL_SEPARATOR . "\n" . 
			 EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
			 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
			 EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

 

Change to:

 

// lets start with the email confirmation
 $email_order = STORE_NAME . "\n" . 
			 $order->customer['firstname'] . ' ' . $order->customer['lastname'] . "\n" .
			 $order->customer['email_address'] . "\n".
			 $order->customer['telephone'] . "\n".
			 EMAIL_SEPARATOR . "\n" . 
			 EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
			 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
			 EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

 

I added the customers name and email address in there too.

 

I hope that's OK.

:blush:

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...