Jump to content

How to enable Block Layered Navigation on Home Page


mbp

Recommended Posts

Hi!

 

I know that  Block Layered Navigation module are only displayed on the category page, but is there anyone who knows what I need to edit to get it to work at the Home Page?

 

I want to be able to sort out products based on attributes regardless of category.

 

Prestashop ver: 1.5.6.2

 

Regards

 

Mbp

Link to comment
Share on other sites

  • 8 months later...

Did you find a solution ?

 

I solved it by using a category page as homepage.

 

 

Use this code instead in /controllers/front/IndexController.php and set the id_category to your choice!

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 initContent()
 {
 parent::initContent();
 }
}
  • Like 1
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...