Allows to cancel the customer notification when an order changes its status.
The handler should return FALSE if the notification should not be sent.
public function subscribeEvents() {
Backend::$events->addEvent('shop:onBeforeOrderCustomerStatusMessageSent', $this, 'before_send_customer_message');
}
public function before_send_customer_message($order, $status)
{
//skip sending customer order status change notifications for free orders
if($order->total == 0)
return false;
}