prestashop category as homepage

Solutions on MaxInterview for prestashop category as homepage by the best coders in the world

showing results for - "prestashop category as homepage"
Merlin
28 Jan 2016
1/* 
2 * Better way with overide
3 * 1. Create file override/controllers/front/IndexController.php
4 * 2. Insert code
5 * 3. Remove file cache/class_index.php
6 */
7class IndexControllerCore extends FrontController {
8  public function initContent() {
9  	Tools::redirect('index.php?id_category=3&controller=category');
10  }
11}
Isabelle
23 May 2016
1/* Quick and dirty
2 * in file Controllers/IndexController.php
3 */
4public function initContent() {
5   parent::initContent();
6   Tools::redirect('index.php?id_category=10&controller=category');
7   $this->context->smarty->assign('HOOK_HOME', Hook::exec('displayHome'));
8   $this->setTemplate(_PS_THEME_DIR_.'index.tpl');
9}