magento how to send order emails only to the admin (not to customer)
I want magento to send the order emails only to the admin not to the customer, because the customer gets an email from another system.
It's possible to send an ordermail to the customer, or to the customer and admin but it seems to be impossible to send the mail only to the admin.
If someone knows how to do it I 开发者_开发百科would be very thankful.
best regards nico
Good news: it's easy. Bad news: you cannot make it in interface, you can only program it.
Overload sending of emails in Mage_Sales_Model_Order->sendNewOrderEmail(), remove sending to customer from there.
thanks a lot!
I just commentet out this area, and it works.
/* $sendTo = array( array( 'email' => $this->getCustomerEmail(), 'name' => $customerName ) ); */
if ($copyTo && $copyMethod == 'copy') {
foreach ($copyTo as $email) {
$sendTo[] = array(
'email' => $email,
'name' => null
);
}
}
精彩评论