예제 #1
0
파일: Cart.php 프로젝트: 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();
     }
 }
예제 #2
0
파일: Checkout.php 프로젝트: kingsj/core
 /**
  * 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();
 }
예제 #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();
 }