public function preDispatch() { $checkCookie = in_array($this->getRequest()->getActionName(), $this->_cookieCheckActions); $checkCookie = $checkCookie && !$this->getRequest()->getParam('nocookie', false); $cookies = Mage::getSingleton('core/cookie')->get(); if ($checkCookie && empty($cookies)) { Mage::getSingleton('core/session', array('name' => $this->_sessionNamespace))->start(); $this->getResponse()->setRedirect($this->getRequest()->getRequestUri() . '?cookies')->sendResponse(); exit; } parent::preDispatch(); /*if (!$this->getRequest()->isXmlHttpRequest()) { $cartUrl = str_replace('/icart/', '/cart/', $this->getRequest()->getRequestUri()); $this->getResponse()->setRedirect($cartUrl)->sendResponse(); exit; }*/ }
public function preDispatch() { parent::preDispatch(); }
public function preDispatch() { parent::preDispatch(); $action = $this->getRequest()->getActionName(); }
/** * Predispatch: remove isMultiShipping option from quote * * @return Mage_Checkout_CartController */ public function preDispatch() { parent::preDispatch(); $cart = $this->_getCart(); if ($cart->getQuote()->getIsMultiShipping()) { $cart->getQuote()->setIsMultiShipping(false); } return $this; }