prevent cutomer from getting order emails


/ Published in: PHP
Save to your folder(s)

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

(around line 872)


Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.