Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Disable order emails to customer?


Rich2005

Recommended Posts

Posted

Hey,

 

I need to disable the emails that are sent out to the customer when they place an order. But I want to allow emails to be sent out for forgotten passwords and when a new user registers. So simply disabling email isn't an option.

 

Anybody know how I can do this?

 

Plus where can I edit the forgot password and new customer emails?

 

 

Cheers

 

 

Rich

Posted

The code for the order emails is in:

 

.../catalog/checkout_process.php

 

This processing is completely seperate from the forgotten passwords and other email generation, so you should be able to stub this code out in the checkout_process file to get rid the order emails.

 

The following line in checkout_process.php is the one that actually sends the email to a customer when the order is placed:

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

JECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 

Comment that line out with two forward slashes // to stop it from executing.

 

The code and defines for forgotten passwords is in:

 

.../catalog/password_forgotten.php and .../catalog/includes/languages/english/password_forgotten.inc

 

 

And finally, the mail to new customers is located in:

 

.../catalog/create_account.php and .../catalog/includes/languages/english/create_account.inc

Archived

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

×
×
  • Create New...