Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Have a different Extra Order Email?


Guest

Recommended Posts

Is it possible to have the extra order emails be different than the one that is sent to the customer? For instance, we have our extra order emails go to customer service so that they know to process an order. But, we want the format to be different than what is sent to the customer. There are some things that customer service doesn't care or need to see.

 

Any ideas?

 

Thanks!

Link to comment
Share on other sites

Is it possible to have the extra order emails be different than the one that is sent to the customer?  For instance, we have our extra order emails go to customer service so that they know to process an order.  But, we want the format to be different than what is sent to the customer.  There are some things that customer service doesn't care or need to see.

 

Any ideas?

 

Thanks!

 

Here's what I did. I have mine sent to my cell phone so I needed a different format in the email. so basically I added another line in checkout_success.php (or checkout_process.php depending on the version you are using) to email me in a different format. look for the tep_mail(....) line....

Link to comment
Share on other sites

Here's what I did. I have mine sent to my cell phone so I needed a different format in the email. so basically I added another line in checkout_success.php (or checkout_process.php depending on the version you are using) to email me in a different format. look for the tep_mail(....) line....

 

This is something that I am interested in. Would you be willing to share what you changed? I am not the best at editing php.

Link to comment
Share on other sites

This is something that I am interested in.  Would you be willing to share what you changed?  I am not the best at editing php.

 

well not sure i can directly help as my store is heavily customized ... plus the checkout process changed sometime ago and depending what version of osc you are running, the file to edit is different.... the version I use has a checkout_process.php file..... and that is where the function call is made. if you have this file, open it up and look for:

 

// send emails to other people
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT . ' (#' . $insert_id . ')', nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');
 }

 

or something close to that. I think mine is modified from the original but I don't remember because I did this so long ago....

 

all I did was add this directly after. I think you get the jist of it... I would suggest experiementing on your TEST site to see if it works for you first:

 

// send email to phone
 tep_mail('', '[email protected]', 'Order #' . $insert_id . '', $products_ordered, '', '', '');

 

The format for the tep_mail function is something like:

 

function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address)

 

please realize that your version of osc might be slightly different so please dont monkey around with your live site until you test it first!

Link to comment
Share on other sites

well not sure i can directly help as my store is heavily customized ... plus the checkout process changed sometime ago and depending what version of osc you are running, the file to edit is different.... the version I use has a checkout_process.php file..... and that is where the function call is made. if you have this file, open it up and look for:

 

// send emails to other people
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
? ?tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT . ' (#' . $insert_id . ')', nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');
?}

 

or something close to that. I think mine is modified from the original but I don't remember because I did this so long ago....

 

all I did was add this directly after. I think you get the jist of it... I would suggest experiementing on your TEST site to see if it works for you first:

 

// send email to phone
?tep_mail('', '[email protected]', 'Order #' . $insert_id . '', $products_ordered, '', '', '');

 

The format for the tep_mail function is something like:

 

function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address)

 

please realize that your version of osc might be slightly different so please dont monkey around with your live site until you test it first!

 

Thank you. I understand about working with a production site. Thank you again.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...