Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Emailed Invoice


Guest

Recommended Posts

Posted

How can I add the customers phone# to the invoice that is emailed once an order is placed in the system?

 

Any help is greatly appreciated!

 

vr,

Don

Posted
How can I add the customers phone# to the invoice that is emailed once an order is placed in the system?

 

Any help is greatly appreciated!

 

vr,

Don

This should add their phone number right after their name

Catelog/checkout_process.php

find this code

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

change like this

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'] . '' . $order->customer['telephone'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Havent actually tried this so you will need to test

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
This should add their phone number right after their name

Catelog/checkout_process.php

find this code

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

change like this

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'] . '' . $order->customer['telephone'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Havent actually tried this so you will need to test

 

Thank you very much! I will try this :)

Posted
Thank you very much! I will try this :)

 

 

I tried it out just now. There were no errors, but it didnt add the phone number on the "Order Process" email either. hmmmm... any ideas?

 

This is what I added... (and I took out the other one)

 

 

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'] . '' . $order->customer['telephone'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Posted

OK undo the last changes I posted. Here is what you need to do. 2 Files to edit.

1) catelog/includes/languages/english/checkout_process.php

Add this code anywhere before the final ?>

define('EMAIL_TEXT_PHONE', 'Telephone #  ');

 

2) catelog/checkout_process.php

find this code

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
			  EMAIL_SEPARATOR . "\n" .
			  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
 if (is_object($$payment)) {

change to this

 $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
   EMAIL_SEPARATOR . "\n" .
			  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
  $email_order.= EMAIL_TEXT_PHONE . $order->customer['telephone'] . "\n\n" .
  EMAIL_SEPARATOR . "\n";
 if (is_object($$payment)) {

 

that will put the customers phone number below the billing address.

Tested and it works.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
OK undo the last changes I posted. Here is what you need to do. 2 Files to edit.

1) catelog/includes/languages/english/checkout_process.php

Add this code anywhere before the final ?>

define('EMAIL_TEXT_PHONE', 'Telephone #  ');

 

2) catelog/checkout_process.php

find this code

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
			  EMAIL_SEPARATOR . "\n" .
			  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
 if (is_object($$payment)) {

change to this

 $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
   EMAIL_SEPARATOR . "\n" .
			  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
  $email_order.= EMAIL_TEXT_PHONE . $order->customer['telephone'] . "\n\n" .
  EMAIL_SEPARATOR . "\n";
 if (is_object($$payment)) {

 

that will put the customers phone number below the billing address.

Tested and it works.

 

In checkout_process.php this is what you want to see...

 

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" .
				$order->customer['telephone'] . "\n\n";
 }

 

Add the line starting $order.... but don't forget to change the semicolon in the line above to a period.

Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!!

 

Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience.

 

The quickest way to learn is to forget to BACKUP!

Posted
Tested and it works.

 

Yes, it works now! WOoohhoooOO! You are awesome! Thank you!

 

vr,

Don

Archived

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

×
×
  • Create New...