コード例 #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
ファイル: CheckoutAbstract.php プロジェクト: kewaunited/xcart
 /**
  * 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();
 }