Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Customer Phone # & Email Addy To The Sent Email


81f82eae

Recommended Posts

Any suggestions on how to add telephone number & email address to the email that is sent to us after a customer orders?? I'm not too new to osCommerce, but still rather new to PHP.

 

More specifically:

 

I added this:

define('EMAIL_TEXT_EMAIL_ADDY', 'Email Address');

define('EMAIL_TEXT_PHONE_NUMBER', 'Phone Number');

 

to checkout_process.php on the LANGUAGE Files. That part's no problem. It's just I'm not entirely sure what I'm looking at around line 250 on the other checkout_process.php file. Line 249 & on:

 

if (is_object($$payment)) {

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .

EMAIL_SEPARATOR . "\n";

$payment_class = $$payment;

$email_order .= $payment_class->title . "\n\n";

if ($payment_class->email_footer) {

$email_order .= $payment_class->email_footer . "\n\n";

}

}

 

Somewhere in there I should be adding:

$email_order .= EMAIL_TEXT_EMAIL_ADDY . "/n" .

$email_order .= EMAIL_TEXT_PHONE_NUMBER ."/n"

 

IF that is right, then where do I add where to find the customer email addy, and how do I add the text box for customer phone number?

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...