Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do i add the customers phone number to emails


jimbeeer

Recommended Posts

Posted

My client wants the customers phone number added to the emails sent to him and also the company's phone number added to the customers confirmation email. I'm sure it's pretty easy but i'm not sure how to do it.

 

Also he is saying some text about 'birthdays' is on the customers confirmation email but i can't find anything like that, anyone know what he might be talking about or is he just another mad client that we developers have to deal with?

Posted
My client wants the customers phone number added to the emails sent to him and also the company's phone number added to the customers confirmation email. I'm sure it's pretty easy but i'm not sure how to do it.

 

Also he is saying some text about 'birthdays' is on the customers confirmation email but i can't find anything like that, anyone know what he might be talking about or is he just another mad client that we developers have to deal with?

 

Hi James, around line 230 in checkout_process.php I altered to read:

 

EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n" . "Customer Telephone: " .

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

 

That's the customer's phone number part of your question. You should be able to add your company phone number as a piece of text, for example:

 

$email_order = "Thank you for your order, our phone number is 123 456 78." . "\n" .

 

The proper way is to set up variables and put the text in \english or other languages, but I'm not trained in PHP.

 

Hope that helps. Sorry I don't know about birthdays.

 

Cheers, Doug

Archived

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

×
×
  • Create New...