Jump to content

[SOLVED] how to hook featuredproducts in override IndexController.php?


ventesites

Recommended Posts

Hello

 

I am using Prestashop 1.6.9

 

I have modified my indexController.php to open the site on a specific category but I would like to get featured products to show below this category..

 

Actually this is what I have:

class IndexControllerCore extends CategoryController
{
 public $php_self = 'index';
/**
 * Assign template vars related to page content
 * @see FrontController::initContent()
 */
 public function init(){
 $_GET['id_category']=3;
 parent::init();
 }
 public function canonicalRedirection($canonicalURL = ''){
}

}

 

this opens my site with the category ID=3 how do I add the block of featured products below?

 

I tried to add various types of hooks in the IndexController but nothing works....

 

Thanks

 

Pat

Edited by ventesites (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...