Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add Fax to admin email?


deej

Recommended Posts

Posted

I need to be able to view the customers fax in my order confirmation email. How can I add this function?

Posted

This should work for you....

 

Open catalog/checkout_process.php

 

Go To Line 66 (This is in an unmodified installation of OSC)

'customers_telephone' => $order->customer['telephone'],

 

Replace Line 66 with these 2 lines...

'customers_telephone' => $order->customer['telephone'],

'customers_fax' => $order->customer['fax'],

 

Then Go To Line 259

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

 

And Replace it with

 

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

 

That should do it for you....

 

As ALWAYS...BACK UP YOUR ORIGINAL FILES

 

Trent

:blink:

Archived

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

×
×
  • Create New...