Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order ID not showing up in subject


skeedo

Recommended Posts

I found a few posts dealing with this, but after an hour of messing with it still can't get the order ID to show up in subject for new order email confirmations.

 

Here's what I have for the checkout_confirmation.php code:

 

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



// send emails to other people

 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT . ' #' . tep_db_input($oID), nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 }

 

Why god why!

Link to comment
Share on other sites

Try ...

 

  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['ema

il_address'], EMAIL_TEXT_SUBJECT . ' #' . $insert_id, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 

Cheers

 

Nick

Link to comment
Share on other sites

Make sure you make the changes for all sections.

 

Example ... in /catalog/checkout_process.php there are two places. Note: My code has a few extra things in it but you should get the idea.

 

// WebMakers.com Added: Include Order # in Subject

 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'],

 EMAIL_TEXT_SUBJECT . ' #' . $insert_id,

 nl2br($email_order),

 STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');



// send emails to other people

 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

// WebMakers.com Added: Include Order # in Subject and customer's email address and phone in body

   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO,

   EMAIL_TEXT_SUBJECT . ' #' . $insert_id,

   $order->customer['firstname'] . ' ' . $order->customer['lastname'] . ' ' . $order->customer['email_address'] . "nn" .

   'Telephone ' . $order->customer['telephone'] . "nn" .

   nl2br($email_order),

   STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 }

 

 

In /admin/orders.php

 

          tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT . ' #' . $oID, nl2br($email), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...