/** * Summary step of the checkout * * @return void */ public function summaryTask() { require_once PATH_CORE . DS . 'components' . DS . 'com_cart' . DS . 'models' . DS . 'CurrentCart.php'; $cart = new CartModelCurrentCart(); $transaction = $cart->liftTransaction(); if (!$transaction) { $cart->redirect('home'); } // Generate security token $token = $cart->getToken(); // Check if there are any steps missing. Redirect if needed $nextStep = $cart->getNextCheckoutStep(); if ($nextStep != 'summary') { $cart->redirect($nextStep); } $cart->finalizeTransaction(); $this->view->token = $token; $this->view->transactionItems = $transaction->items; $this->view->transactionInfo = $transaction->info; $this->view->display(); }