protected function setNotificationUpdateOrder($order_id)
    {
        if (!$this->config('order_update_notify_customer', 1)) {
            return static::NOTIFICATION_DISABLED;
        }

        $order = $this->order->get($order_id);
        if ($this->order_action->notifyUpdated($order) === true) {
            return static::NOTIFICATION_SENT;
        }

        return static::NOTIFICATION_ERROR;
    }
protected function setNotificationUpdateOrder($order_id)
    {
        if (!$this->config('order_update_notify_customer', 1)) {
            return static::NOTIFICATION_DISABLED;
        }

        $order = $this->order->get($order_id);
        if ($this->order_action->notifyUpdated($order) === true) {
            return static::NOTIFICATION_SENT;
        }

        return static::NOTIFICATION_ERROR;
    }
protected function setNotificationUpdateOrder ( $ order_id ) { if ( ! $ this -> config ( 'order_update_notify_customer' , 1 ) ) { return static :: NOTIFICATION_DISABLED ; } $ order = $ this -> order -> get ( $ order_id ) ; if ( $ this -> order_action -> notifyUpdated ( $ order ) === true ) { return static :: NOTIFICATION_SENT ; } return static :: NOTIFICATION_ERROR ; }
Notify a customer when an order has been updated
@param integer $order_id
@return integer
Notify a customer when an order has been updated