protected function updateStatusOrder()
    {
        $this->controlAccess('order_edit');

        $submitted = array('status' => $this->getSubmitted('status'));

        if ($this->order->update($this->data_order['order_id'], $submitted)) {
            $submitted['notify'] = $this->setNotificationUpdateOrder($this->data_order['order_id']);
            $this->logUpdateStatusOrder($submitted);
            $messages = $this->getMassagesUpdateOrder();
            list($severity, $text) = $messages[$submitted['notify']];
            $this->redirect('', $this->text($text), $severity);
        }

        $this->redirect('', $this->text('Order has not been updated'), 'warning');
    }
protected function updateStatusOrder()
    {
        $this->controlAccess('order_edit');

        $submitted = array('status' => $this->getSubmitted('status'));

        if ($this->order->update($this->data_order['order_id'], $submitted)) {
            $submitted['notify'] = $this->setNotificationUpdateOrder($this->data_order['order_id']);
            $this->logUpdateStatusOrder($submitted);
            $messages = $this->getMassagesUpdateOrder();
            list($severity, $text) = $messages[$submitted['notify']];
            $this->redirect('', $this->text($text), $severity);
        }

        $this->redirect('', $this->text('Order has not been updated'), 'warning');
    }
protected function updateStatusOrder ( ) { $ this -> controlAccess ( 'order_edit' ) ; $ submitted = array ( 'status' => $ this -> getSubmitted ( 'status' ) ) ; if ( $ this -> order -> update ( $ this -> data_order [ 'order_id' ] , $ submitted ) ) { $ submitted [ 'notify' ] = $ this -> setNotificationUpdateOrder ( $ this -> data_order [ 'order_id' ] ) ; $ this -> logUpdateStatusOrder ( $ submitted ) ; $ messages = $ this -> getMassagesUpdateOrder ( ) ; list ( $ severity , $ text ) = $ messages [ $ submitted [ 'notify' ] ] ; $ this -> redirect ( '' , $ this -> text ( $ text ) , $ severity ) ; } $ this -> redirect ( '' , $ this -> text ( 'Order has not been updated' ) , 'warning' ) ; }
Update an order status
Update an order status