Beispiel #1
0
 public function indexAction()
 {
     if (Mage::helper("apiplugin")->checkPreOrder()) {
         $this->_redirect('checkout/cart');
         return;
     }
     parent::indexAction();
 }
 public function indexAction()
 {
     $this->getVerification()->getCheckout()->setShowValidationResults(false);
     // set results mode (need for javascript logic)
     $this->getVerification()->getCheckout()->setValidationResultsMode(false);
     // clear verification results from prevous checkout
     $this->getVerification()->getCheckout()->setShippingWasValidated(false);
     $this->getVerification()->getCheckout()->setBillingWasValidated(false);
     $this->getVerification()->getCheckout()->setBillingValidationResults(false);
     $this->getVerification()->getCheckout()->setShippingValidationResults(false);
     parent::indexAction();
 }
 /**
  * Checkout page
  */
 public function indexAction()
 {
     $quote = $this->getOnepage()->getQuote();
     $items = $quote->getItemsCollection();
     foreach ($items as $item) {
         if ($item->getProductType() == 'conturifurnizori') {
             $this->_redirect('conturifurnizori/inregistrare/');
             return;
         }
     }
     return parent::indexAction();
 }
 public function indexAction()
 {
     $scheme = Mage::app()->getRequest()->getScheme();
     if ($scheme == 'http') {
         $secure = false;
     } else {
         $secure = true;
     }
     if (Mage::helper('onecheckout')->isEnable()) {
         $this->_redirect('bc_checkout', array('_secure' => $secure));
         return;
     } else {
         parent::indexAction();
     }
 }