コード例 #1
0
 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;
         }
     }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public function preDispatch()
 {
     parent::preDispatch();
     $this->prepareCart();
 }
コード例 #4
0
 public function init()
 {
     parent::init();
     $this->view->layout()->setLayout('coreshop_email');
 }