Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

opencart order change status

$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'));
        }
 
PREVIOUS NEXT
Tagged: #opencart #order #change #status
ADD COMMENT
Topic
Name
7+4 =