BJng Posted June 16, 2015 Share Posted June 16, 2015 Hi to all, I would like to hook the layered navigation on top of the page, above the product list. I found a free tutorial of Nemo but I can't let it work. Can anyone help me? Thanks in advance Stefano Link to comment Share on other sites More sharing options...
Pedro Pinto Posted June 16, 2015 Share Posted June 16, 2015 Hi, i think i got the same. I've made a new hook to be displayed on the top of categories, i can make it get in place but the filters dont work, the only think that appears is (when i apply a filter (any)) the image of loading, and that's all. any idea? ... thanks Link to comment Share on other sites More sharing options...
Pedro Pinto Posted June 26, 2015 Share Posted June 26, 2015 (edited) Hi Bjng, try this to create new hook: http://prestatips.info/adding-new-hook-prestashop/ and then this to display layered navigation on it: open blocklayered.php, find the line (54): public function install() { if (parent::install() && $this->registerHook('header') && $this->registerHook('leftColumn') && $this->registerHook('categoryAddition') && $this->registerHook('categoryUpdate') && $this->registerHook('attributeGroupForm') and add && $this->registerHook('displayCategoryTop') after && $this->registerHook('leftColumn') then in the same file at line 673 will see: public function hookLeftColumn($params) { return $this->generateFiltersBlock($this->getSelectedFilters()); } after that line insert: public function hookdisplayCategoryTop($params) { return $this->generateFiltersBlock($this->getSelectedFilters()); } and you're done. it worked for me. Edited June 26, 2015 by Pedro Pinto (see edit history) 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