Статус изменения заказа OpenCart

$status_order = $this->checkOrder($this->request->get['order_id']);
        $id = $this->request->get['id'];
        $this->load->model('checkout/order');
        if ($status_order) {
            $this->model_checkout_order->addOrderHistory($id, 5);
            $this->response->redirect($this->url->link('akbarali/intend/success', '', 'SSL'));
        } else {
            $this->model_checkout_order->addOrderHistory($id, 7);
            $this->response->redirect($this->url->link('akbarali/intend/error', '', 'SSL'));
        }
Shadow