mbp Posted March 18, 2014 Share Posted March 18, 2014 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 More sharing options...
seb776 Posted December 9, 2014 Share Posted December 9, 2014 Did you find a solution ? Link to comment Share on other sites More sharing options...
mbp Posted December 9, 2014 Author Share Posted December 9, 2014 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(); } } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now