public function addressesAction()
 {
     if (Mage::getSingleton('rewardpoints/session')->getCreditPoints()) {
         //$this->_getCheckoutSession()->addError($this->__('Points cannot be redeemed within multiple shipping orders.'));
         Mage::getSingleton('checkout/session')->addError($this->__('Points cannot be redeemed within multiple shipping orders.'));
         Mage::getSingleton('rewardpoints/session')->unsetAll();
         Mage::helper('rewardpoints/event')->removeCreditPoints();
     }
     parent::addressesAction();
 }
 /**
  * Multishipping checkout login page
  */
 public function registerAction()
 {
     if (Mage::getSingleton('customer/session')->isLoggedIn()) {
         $this->_redirectUrl($this->_getHelper()->getMSCheckoutUrl());
         return;
     }
     if (Mage::getStoreConfig('customer/avectra/login_hook') == 1) {
         $return_url = preg_replace('/^http:/', 'https:', $this->_getRefererUrl());
         $return_url = urlencode($return_url);
         $return_path = urlencode($this->_getRefererUrl());
         // urlencode($_SERVER['HTTP_REFERER']);
         $this->_redirectUrl($this->getSharepointRegister() . '?' . $this->getReturnPathGetParam() . '=' . $return_url);
     } else {
         parent::loginAction();
     }
 }
 /**
  * Redirect customer to PayPal payment page if the customer choose to pay with
  * EbayEnterprise PayPal payment method. If the customer is returning back from paying
  * with PayPal, then allow the customer to continue to go to the next step of the Multi-shipping checkout.
  *
  * @param  Mage_Checkout_MultishippingController
  * @return self
  */
 public function initializePaypalExpressCheckout(Mage_Checkout_MultishippingController $controllerAction)
 {
     /** @var Mage_Checkout_Model_Session */
     $checkoutSession = $this->getCheckoutSession();
     /** @var Mage_Core_Controller_Request_Http */
     $request = $controllerAction->getRequest();
     /** @var array | null */
     $paymentData = $checkoutSession->getMultiShippingPaymentData() ?: (array) $request->getParam('payment');
     if ($this->isRedirectToPayPal($paymentData)) {
         $checkoutSession->setIsUseMultiShippingCheckout(true)->setMultiShippingPaymentData($paymentData);
         /** @var Mage_Core_Controller_Response_Http */
         $response = $controllerAction->getResponse();
         $response->setRedirect($this->getPayPalExpressStartupUrl());
         return $this;
     }
     /** @var Mage_Sales_Model_Quote */
     $quote = $checkoutSession->getQuote();
     $quote->setIsMultiShipping(true);
     // Remove Payment Data from session once we are passed returning
     // from PayPal Express page.
     $checkoutSession->setMultiShippingPaymentData(null);
     $request->setPost('payment', $paymentData);
     return $this;
 }
 public function overviewPostAction()
 {
     parent::overviewPostAction();
 }