protected function finishAddOrderCheckout(array $result)
    {
        if (!empty($result['order']['order_id'])) {

            $vars = array(
                '@num' => $result['order']['order_id'],
                '@name' => $result['order']['customer_name'],
                '@status' => $this->order->getStatusName($result['order']['status'])
            );

            $message = $this->text('Order #@num has been created for user @name. Order status: @status', $vars);
            $this->redirect("admin/sale/order/{$result['order']['order_id']}", $message, 'success');
        }
    }
protected function finishAddOrderCheckout(array $result)
    {
        if (!empty($result['order']['order_id'])) {

            $vars = array(
                '@num' => $result['order']['order_id'],
                '@name' => $result['order']['customer_name'],
                '@status' => $this->order->getStatusName($result['order']['status'])
            );

            $message = $this->text('Order #@num has been created for user @name. Order status: @status', $vars);
            $this->redirect("admin/sale/order/{$result['order']['order_id']}", $message, 'success');
        }
    }
protected function finishAddOrderCheckout ( array $ result ) { if ( ! empty ( $ result [ 'order' ] [ 'order_id' ] ) ) { $ vars = array ( '@num' => $ result [ 'order' ] [ 'order_id' ] , '@name' => $ result [ 'order' ] [ 'customer_name' ] , '@status' => $ this -> order -> getStatusName ( $ result [ 'order' ] [ 'status' ] ) ) ; $ message = $ this -> text ( 'Order #@num has been created for user @name. Order status: @status' , $ vars ) ; $ this -> redirect ( "admin/sale/order/{$result['order']['order_id']}" , $ message , 'success' ) ; } }
Performs final tasks after an order has been added for a user
@param array $result
Performs final tasks after an order has been added for a user