Ejemplo n.º 1
0
 /**
  * Continue checkout -- decides where to take the checkout process next
  *
  * @param	void
  * @return	void
  */
 public function continueTask()
 {
     /* Decide where to go next */
     $cart = new CurrentCart();
     // Check/create/update transaction here
     $transactionInfo = $cart->getTransaction();
     // Redirect to cart if no transaction items (no cart items)
     if (!$transactionInfo) {
         $cart->redirect('checkout');
     }
     // Redirect to the next step
     $nextStep = $cart->getNextCheckoutStep()->step;
     $cart->redirect($nextStep);
 }