Posted By

nico65 on 01/12/11


Tagged

magento 14


Versions (?)

prevent cutomer from getting order emails


 / Published in: PHP
 

URL: http://stackoverflow.com/questions/4647648/magento-how-to-send-order-emails-only-to-the-admin-not-to-customer/4667909#4667909

Overlook sending of emails in MageSalesModel_Order->sendNewOrderEmail(), remove sending to customer from there.

(around line 872)

  1. /* $sendTo = array( array( 'email' => $this->getCustomerEmail(), 'name' => $customerName ) ); */
  2.  
  3. if ($copyTo && $copyMethod == 'copy') {
  4. foreach ($copyTo as $email) {
  5. $sendTo[] = array(
  6. 'email' => $email,
  7. 'name' => null
  8. );
  9. }
  10. }

Report this snippet  

You need to login to post a comment.