Da9L Posted April 25, 2014 Share Posted April 25, 2014 (edited) What do i need to do, to get the catalog filters (Layered navigation module) to show in the left sidebar? It is already hooked into displayLeft.. But its not showing.. Using the default theme. Prestashop 1.6.0.6 Edited April 25, 2014 by Da9L (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted April 25, 2014 Share Posted April 25, 2014 It will only show up in category pages. Make sure a category you check is currently active in the module's configuration! Link to comment Share on other sites More sharing options...
navid68 Posted April 25, 2014 Share Posted April 25, 2014 Hi nemo, two questions that are not available in the set up area of the module: 1) do you think the layered navigation (filter) can be shown in the homepage and in all the pages? 2) do you think it is possible to view other features with the slider bar just like the price? Hope you can help Navid Link to comment Share on other sites More sharing options...
Da9L Posted April 25, 2014 Author Share Posted April 25, 2014 Nemo1 Where do i configure the modules active categories ? Link to comment Share on other sites More sharing options...
NemoPS Posted April 25, 2014 Share Posted April 25, 2014 @ navid: no to both @Da9L: modules list in the back office, look for layered navigation block and hit configure 1 Link to comment Share on other sites More sharing options...
Da9L Posted April 25, 2014 Author Share Posted April 25, 2014 @ navid: no to both @Da9L: modules list in the back office, look for layered navigation block and hit configure Thanks that did the trick! Link to comment Share on other sites More sharing options...
navid68 Posted April 25, 2014 Share Posted April 25, 2014 @Nemo - do you know any module to accomplish that? - often I see some kind of search with attributes in e-commerce websites, how come it's not a standard feature in PrestaShop? - it would be great to have a small search in all the pages and then an advanced search into a dedicated page, suggestions? thanks Navid 1 Link to comment Share on other sites More sharing options...
NemoPS Posted April 26, 2014 Share Posted April 26, 2014 1-Hm! Maybe advanced search4, but I never tried it. 2- Marketing strategy? No idea 3- You need to have someone code it, or buy a module such as the one i mentioned Link to comment Share on other sites More sharing options...
alamagar Posted April 26, 2014 Share Posted April 26, 2014 Hi, I've the same problem. Categories activated for layered navigation and left side bar missing. Layered Navigation Block is hooked on DisplayLeftColum hook. In fact there is no left column on categories pages. Is there anywhere a way to activate it? Link to comment Share on other sites More sharing options...
NemoPS Posted April 28, 2014 Share Posted April 28, 2014 Are you using a custom theme? Go to preferences->themes, edit the theme and make sure left column is active for the category page Link to comment Share on other sites More sharing options...
navid68 Posted April 28, 2014 Share Posted April 28, 2014 @Nemo: can you display the Layered Navigation Block in the homepage? In the page you suggested there is category page, what is the name of the homepage? Thanks again Navid Link to comment Share on other sites More sharing options...
navid68 Posted April 28, 2014 Share Posted April 28, 2014 Just tried clicking index (using the standard theme), but it didn't show the block in the homepage... what else? Navid Link to comment Share on other sites More sharing options...
NemoPS Posted April 28, 2014 Share Posted April 28, 2014 No, you can't display it in the homepage Only within category pages Link to comment Share on other sites More sharing options...
navid68 Posted April 28, 2014 Share Posted April 28, 2014 what a pitty... last question... Nemo... with the standard theme is it possible to add the layered navigation block into the central column of a CMS page? I would like to create a sort of page dedicated to the Search with some explanation... Thanks again Navid Link to comment Share on other sites More sharing options...
alamagar Posted April 28, 2014 Share Posted April 28, 2014 I solved the problem and layered navigation is visible in left column. I have another questions: Is it possible to display the manufacturers block on the homepage but not in categories pages? That is, I want the manufacturers block on the "homepage left column" and layered navigation in categories pages. Otherwise manufacturers selection is redundant in categories pages.Another question, Is it possible to wide the left column? categories and brands in layered navigatiion appear in two columns and some long names are divided into two lines. One last, Can you change the order in layered navigation? This means that price slide appears as the first selection for example.Thanks in advance! Link to comment Share on other sites More sharing options...
NemoPS Posted April 28, 2014 Share Posted April 28, 2014 what a pitty... last question... Nemo... with the standard theme is it possible to add the layered navigation block into the central column of a CMS page? I would like to create a sort of page dedicated to the Search with some explanation... Thanks again Navid Nope, category only Link to comment Share on other sites More sharing options...
NemoPS Posted April 28, 2014 Share Posted April 28, 2014 I solved the problem and layered navigation is visible in left column. I have another questions: Is it possible to display the manufacturers block on the homepage but not in categories pages? That is, I want the manufacturers block on the "homepage left column" and layered navigation in categories pages. Otherwise manufacturers selection is redundant in categories pages. Another question, Is it possible to wide the left column? categories and brands in layered navigatiion appear in two columns and some long names are divided into two lines. One last, Can you change the order in layered navigation? This means that price slide appears as the first selection for example. Thanks in advance! Manufacturers: yes, just add an exception for the category page in modules->positions when setting up the hook You can widen left column by editing css, it depends on your theme of course! Lastly, you should be able to sort out items from the module's configuration page, just drag them and save Link to comment Share on other sites More sharing options...
klopotnik Posted February 1, 2015 Share Posted February 1, 2015 I solved the problem and layered navigation is visible in left column. I have another questions: Is it possible to display the manufacturers block on the homepage but not in categories pages? That is, I want the manufacturers block on the "homepage left column" and layered navigation in categories pages. Otherwise manufacturers selection is redundant in categories pages. Another question, Is it possible to wide the left column? categories and brands in layered navigatiion appear in two columns and some long names are divided into two lines. One last, Can you change the order in layered navigation? This means that price slide appears as the first selection for example. Thanks in advance! how did you solve it? i cant see navigation layer on the left column.. - i am on category page (i see 5 products in the category) - left column is enabled on category (in theme setup) - layer block module is enabled (there is only price filter enabled within module, price index is rebuilt) (using ps 1.6.0.9, running on locale now) Link to comment Share on other sites More sharing options...
NemoPS Posted February 2, 2015 Share Posted February 2, 2015 Make sure it's enabled for that specific category, it might not. If it is, try un-checking and re-checking it Link to comment Share on other sites More sharing options...
annashial Posted February 3, 2015 Share Posted February 3, 2015 Hi, I would like to move the layered navigation block in the center and modify it so it will be displayes horizontally but it is not allowed. Does anybody know how to move it? Or an add on which I can buy? I am searching this for a week now but I didn't find a solution. I also tried to create a new hook and move it but it was not allowed, too. Link to comment Share on other sites More sharing options...
klopotnik Posted February 3, 2015 Share Posted February 3, 2015 Nemo, didnt help.. any idea how to debug it? Link to comment Share on other sites More sharing options...
NemoPS Posted February 4, 2015 Share Posted February 4, 2015 @annashial: how did you add the new hook? @klopotnik: Try echoing out something like echo 'test'; from the module's hookDisplayLeftColumn, this will tell us if the hook runs, to start with Link to comment Share on other sites More sharing options...
tbamy Posted February 4, 2015 Share Posted February 4, 2015 @Nemo1: I followed the steps I found here: http://prestatips.info/adding-new-hook-prestashop/ First I inserted a new entry in ps_hook table. Then I created a file named CategoryController.php in the override/controllers/first folder, which contains the following code: class CategoryController extends CategoryControllerCore { /** * @see CategoryControllerCore::initContent() */ public function initContent() { parent::initContent(); $this->context->smarty->assign( 'HOOK_CATEGORY_TOP', Hook::exec('displayCategoryTop') ); } } And finally I added the following code in the themes/default/category.tpl {if $HOOK_CATEGORY_TOP} <div class="hook_category_top"> {$HOOK_CATEGORY_TOP} </div> {/if} Is anything wrong here? Link to comment Share on other sites More sharing options...
annashial Posted February 4, 2015 Share Posted February 4, 2015 I found this http://blog.premium-templates.eu/creating-custom-hooks-in-prestashop-1-5-1-6-the-easy-way and followed the steps. When I try to transplant the module, I can see the new hook in the drop down list but I get the error: This module can not be transplanted to this hook. Link to comment Share on other sites More sharing options...
NemoPS Posted February 4, 2015 Share Posted February 4, 2015 tbamy you should use the method on the provided link, or mine: http://nemops.com/adding-hooks-to-prestashop-1-5/ Make sure you add the method and annashial, same thing, make sure you name the method correctly Link to comment Share on other sites More sharing options...
annashial Posted February 6, 2015 Share Posted February 6, 2015 Ok, I tried to do what is described in your link but nothing changed. What I did is: In the category.tpl I placed this {hook h='categoryTop'} in the line I want the new position. Then, I opened the blocklayered.php (beacause this is the module I want to move) and put the following public function hookCategoryTop($params){ return 'hi there!';} And then I added $this->registerHook('categoryTop') in the install function: if (parent::install() == false || $this->registerHook('categoryTop') || $this->registerHook('leftColumn') == false || $this->registerHook('beforeFooter') == false || $this->registerHook('header') == false) return false; Then I reset the module and I tried to transplant the layered navigation block into the categoryTop but I got the message "this module is already transplanted to this hook". But I can't see anything in the site. I should see the 'hi there' message, right? Link to comment Share on other sites More sharing options...
NemoPS Posted February 6, 2015 Share Posted February 6, 2015 Instead of return, try with die('hi here'). See what happens, it should work really Link to comment Share on other sites More sharing options...
annashial Posted February 9, 2015 Share Posted February 9, 2015 Ok, I finally found it but I would like to ask you about that, because it's strange. I noticed that when I made changes in category.tpl nothing happened. I just added a div tag and I looked for that in the site page source but didn't find it. So I decided to search in the whole site code for a div that the category.tpl contained and in the results, except of the category.tpl, there was also another one file with a strange name (many letters and numbers), which was in a folder with path /cache/smarty/ and then many folders with names like 9d/2a/3f/...whatever.. So I tried to changed that file and then I saw the changes in the site. I did what I wanted, but I would like to ask if this is the right way and also what are all these files and folders? I think it makes more sense to change the catgeory.tpl file but when I did it nothing happened. Did I make something wrong? Link to comment Share on other sites More sharing options...
NemoPS Posted February 11, 2015 Share Posted February 11, 2015 Nope, you didn't, but you likely didn't set the templates to Force Compile or at least Recompile, nor cleared cache after making the modification (advanced parameters/performance) Link to comment Share on other sites More sharing options...
Recommended Posts