Rich2005 Posted June 13, 2005 Posted June 13, 2005 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
krnl Posted June 13, 2005 Posted June 13, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.