문제

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
            );
        }
    }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top