public function __construct($registry, $modelFile = NULL)
 {
     parent::__construct($registry, $modelFile);
     $this->model = App::getModel('layerednavigationbox');
     $this->controller = $this->registry->router->getCurrentController();
     //$this->args = array(
     //'orderBy' => $this->getParam('orderBy', 'default'),
     //'orderDir' => $this->getParam('orderDir', 'asc'),
     //'currentPage' => 1,
     //'viewType' => $this->getParam('viewType', 0),
     //'priceFrom' => $this->getParam('priceFrom', 0),
     //'priceTo' => $this->getParam('priceTo', Core::PRICE_MAX),
     //'producers' => $this->getParam('producers', 0),
     //'attributes' => $this->getParam('attributes', 0)
     //);
     //$this->controller = $this->registry->router->getCurrentController();
     //if($this->controller == 'categorylist') {
     //$this->category = App::getModel('categorylist')->getCurrentCategory();
     //$this->args['param'] = $this->category['seo'];
     //}
     //elseif ($this->controller == 'productsearch') {
     //$this->args['action'] = 'index';
     //$this->args['param'] = $this->getParam();
     //}
     //else {
     //$this->category = array('id' => 0);
     //}
     if (isset($_POST['layered_submitted']) && $_POST['layered_submitted'] == 1) {
         App::redirectUrl($this->model->generateRedirectUrl());
     }
     //$this->productIds = $this->getProducts();
 }
Exemple #2
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->model = App::getModel('staticcontent');
     $this->id = App::getModel('staticcontent')->getConditionsId();
     $this->cms = $this->model->getStaticContent($this->id);
 }
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $dataset = App::getModel('productscrosssellbox')->getDataset();
     if ($this->_boxAttributes['productsCount'] > 0) {
         $dataset->setPagination($this->_boxAttributes['productsCount']);
     }
     $dataset->setOrderBy($this->_boxAttributes['orderBy'], $this->_boxAttributes['orderBy']);
     $dataset->setOrderDir($this->_boxAttributes['orderDir'], $this->_boxAttributes['orderDir']);
     $dataset->setCurrentPage(1);
     $products = App::getModel('productscrosssellbox')->getProductDataset();
     $this->dataset = $products;
 }
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $dataset = App::getModel('customproductlistbox')->getDataset();
     if ($this->_boxAttributes['productsCount'] > 0) {
         $dataset->setPagination($this->_boxAttributes['productsCount']);
     }
     $dataset->setSQLParams(array('ids' => isset($this->_boxAttributes['products']) && strlen($this->_boxAttributes['products']) > 0 ? explode(',', $this->_boxAttributes['products']) : array(0)));
     $dataset->setOrderBy($this->_boxAttributes['orderBy'], $this->_boxAttributes['orderBy']);
     $dataset->setOrderDir($this->_boxAttributes['orderDir'], $this->_boxAttributes['orderDir']);
     $dataset->setCurrentPage(1);
     $products = App::getModel('customproductlistbox')->getProductDataset();
     $this->dataset = $products;
 }
Exemple #5
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     if ((int) $this->registry->core->getParam() > 0 && $this->registry->router->getCurrentController() == 'news') {
         $this->news = App::getModel('News')->getNewsById((int) $this->registry->core->getParam());
         $this->_heading = $this->news['topic'];
         $this->_template = 'view.tpl';
     } else {
         if (($this->news = $this->registry->cache->load('news')) === FALSE) {
             $this->news = App::getModel('News')->getNews();
             $this->registry->cache->save('news', $this->news);
         }
         $this->_heading = _('TXT_NEWS');
         $this->_template = 'index.tpl';
     }
 }
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->_boxAttributes['productsCount'] = 10;
     $this->_boxAttributes['pagination'] = 1;
     $this->_boxAttributes['view'] = 'list';
     $this->_boxAttributes['orderBy'] = 'name';
     $this->_boxAttributes['orderDir'] = 'asc';
     $dataset = App::getModel('productbuyalsobox')->getDataset();
     if ($this->_boxAttributes['productsCount'] > 0) {
         $dataset->setPagination($this->_boxAttributes['productsCount']);
     }
     $dataset->setOrderBy($this->_boxAttributes['orderBy'], $this->_boxAttributes['orderBy']);
     $dataset->setOrderDir($this->_boxAttributes['orderDir'], $this->_boxAttributes['orderDir']);
     $dataset->setCurrentPage(1);
     $products = App::getModel('productbuyalsobox')->getProductDataset();
     $this->dataset = $products;
 }
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->model = App::getModel('productsearchlist');
     $this->controller = $this->registry->router->getCurrentController();
 }
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->producer = App::getModel('producerlistbox')->getProducerBySeo($this->getParam());
     $this->dataset = array();
 }
Exemple #9
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
 }
Exemple #10
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->dataset = App::getModel('ShowcaseBox')->getDataset('ShowcaseBox');
 }
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->category = App::getModel('categorylist')->getCurrentCategory();
     $this->dataset = array();
 }
Exemple #12
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->model = App::getModel('staticcontent');
 }
Exemple #13
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->phrases = App::getModel('MostSearchedBox')->getAllMostSearched();
     $this->total = count($this->phrases);
 }
Exemple #14
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->producers = App::getModel('producerbox')->getProducerAll();
     $this->total = count($this->producers);
 }