public function preDispatch() { parent::preDispatch(); if ($this->getParam("action") != "login" && $this->getParam("action") != "register") { if (!$this->session->user instanceof CoreShopUser) { $this->_redirect($this->view->url(array("lang" => $this->language), "coreshop_index")); exit; } } }
public function preDispatch() { parent::preDispatch(); if (count($this->view->cart->getItems()) == 0 && $this->getParam("action") != "thankyou") { $this->_redirect($this->view->url(array("action" => "list"), "coreshop_cart")); } if (!is_array($this->session->order)) { $this->session->order = array(); } $this->prepareCart(); }
public function preDispatch() { parent::preDispatch(); $this->prepareCart(); }
public function init() { parent::init(); $this->view->layout()->setLayout('coreshop_email'); }