Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Send E-mails when orders are placed from admin panel


s9393

Recommended Posts

When I log into the admin panel and place an order for one of my customers I would like it to send an e-mail to an address that I use to collect all data from my site. I've enabled 'send extra e-mails' in the config panel but when an order is placed from within the admin panel it sends nothing except to the customer if the checkbox is checked to do so. If anyone has any info on this I would very much appreciate it.

 

Thank you all you are all very helpful folks :D

S9393

Link to comment
Share on other sites

There is code in catalog/checkout_process.php that sends the extra email

 

// send emails to other people

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

}

 

 

Try adding that to the admin on whatever page you are sending it from. It should be just below the part that sends the email to the customer.

Link to comment
Share on other sites

Just to see if I'm understanding right I should add the code you've provided above to whatever .PHP page within the admin panel that I use to submit the order to the database. Is that correct or am I missing somehting.

 

Thanks for the quick response,

s9393

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...