Exemplo n.º 1
0
Arquivo: Cart.php Projeto: kingsj/core
 /**
  * Handles the request.
  * Parses the request variables if necessary. Attempts to call the specified action function
  *
  * @return void
  */
 public function handleRequest()
 {
     if (\XLite\Core\Config::getInstance()->CDev->Catalog->disable_checkout) {
         $this->redirect($this->buildUrl(\XLite::TARGET_DEFAULT));
     } else {
         parent::handleRequest();
     }
 }
Exemplo n.º 2
0
 /**
  * Go to cart view if cart is empty
  *
  * @return void
  */
 public function handleRequest()
 {
     if (!$this->getCart()->checkCart()) {
         $this->setHardRedirect();
         $this->setReturnURL($this->buildURL('cart'));
     }
     parent::handleRequest();
 }
Exemplo n.º 3
0
 /**
  * Go to cart view if cart is empty
  *
  * @return void
  */
 public function handleRequest()
 {
     // We do not verify the cart when the customer returns from the payment
     if (\XLite\Core\Request::getInstance()->action !== 'return' && !$this->getCart()->checkCart()) {
         $this->setHardRedirect();
         $this->setReturnURL($this->buildURL('cart'));
         $this->doRedirect();
     }
     parent::handleRequest();
 }