Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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
            );
        }
    }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top