コード例 #1
0
 /**
  * @return Mage_Checkout_OnepageController
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $this->_preDispatchValidateCustomer();
     $checkoutSessionQuote = Mage::getSingleton('checkout/session')->getQuote();
     if ($checkoutSessionQuote->getIsMultiShipping()) {
         $checkoutSessionQuote->setIsMultiShipping(false);
         $checkoutSessionQuote->removeAllAddresses();
     }
     return $this;
 }
コード例 #2
0
 /**
  * Predispatch: should set layout area
  *
  * @return Mage_Checkout_OnepageController
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $this->_preDispatchValidateCustomer();
     $checkoutSessionQuote = Mage::getSingleton('checkout/session')->getQuote();
     if ($checkoutSessionQuote->getIsMultiShipping()) {
         $checkoutSessionQuote->setIsMultiShipping(false);
         $checkoutSessionQuote->removeAllAddresses();
     }
     if (!$this->_canShowForUnregisteredUsers()) {
         $this->norouteAction();
         $this->setFlag('', self::FLAG_NO_DISPATCH, true);
         return;
     }
     return $this;
 }
コード例 #3
0
 /**
  * Predispatch: should set layout area
  *
  * @return Mage_Checkout_OnepageController
  */
 public function preDispatch()
 {
     // only extend the function in compiler-mode
     if (defined('COMPILER_INCLUDE_PATH')) {
         /*
          * This basically disables the usage ob the /includes/src/__checkout.php file, because there were autoloader problems. ( Mage-205 )
          * The files will be loaded "normally" from the single files, when the verifyPaymentAction from the Payone controller was called
          */
         $sRouteName = $this->getRequest()->getRouteName();
         if ($sRouteName == 'payone_core') {
             $sRouteName = 'checkout';
         }
         if (array_search($sRouteName, self::$_aLoadedScopes) === false) {
             self::_addLoadedScope($sRouteName);
         } else {
             $this->setFlag('', self::FLAG_NO_PRE_DISPATCH, 1);
         }
     }
     return parent::preDispatch();
 }
コード例 #4
0
 /**
  * @return Mage_Checkout_OnepageController
  */
 public function preDispatch()
 {
     $this->getRequest()->setRouteName('checkout');
     return parent::preDispatch();
 }