Przemysław Suszek Posted April 22, 2014 Share Posted April 22, 2014 (edited) Hi, Is there any module which can display a sub menu ? For example. In my shop I have this menu: Main page, PerfumFor him (sub menu) For her (sub menu) When I visit perfum section I want display only "For him" and "For her" in category blog. It is possible ? Edited April 24, 2014 by mr.suchy (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 please explain what you exactly expect. for now i don't understand this part: When I visit perfum section I want display only "For him" and "For her" in category blog. It is possible ? as i can see for him is a separate category, so how you want to display it in other category, if it isn't a part of category tree of parent category ? and blog? it's definitely not default feature .... so we need explanation... Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted April 23, 2014 Author Share Posted April 23, 2014 Now I see. When I wrote this post in editor I have tree like this: 1.Category: 1.1 Sub category 1.2 Sub category. In default category blog module display all menu. I want display only sub category. So if user visit "Category" in category blog I want to see only sub category not all menu. Link to comment Share on other sites More sharing options...
NemoPS Posted April 23, 2014 Share Posted April 23, 2014 WHat is this category blog module you mention? Do you mean the cms block? Because prestashop doesn't have a built-in blog module Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted April 23, 2014 Author Share Posted April 23, 2014 (edited) In module section and have module "block category" with catalog icon. Not blog, I mean block. Sorry for my language. Edited April 23, 2014 by mr.suchy (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted April 23, 2014 Share Posted April 23, 2014 Ah, I see. Well you can't do that by default, you need to modify the module so that it only shows subcategories of the current category (which is more complex to achieve than it seems) Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted April 23, 2014 Author Share Posted April 23, 2014 Is there any module who can what I need ? Link to comment Share on other sites More sharing options...
vekia Posted April 23, 2014 Share Posted April 23, 2014 "multiple categories block" is probably what you're looking for Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted April 23, 2014 Author Share Posted April 23, 2014 This module is supplied with presta installation ? Link to comment Share on other sites More sharing options...
vekia Posted April 23, 2014 Share Posted April 23, 2014 no it's not Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted April 23, 2014 Author Share Posted April 23, 2014 Yeah. I see this module on your site. Thanks for help. Link to comment Share on other sites More sharing options...
webdev0008 Posted April 23, 2014 Share Posted April 23, 2014 Hi Add this code at the bottom of blockcategories.tpl file in themes/THEME_DIR/modules/blockcategories folder. {if isset($currentCategoryId)} {literal} <script type="text/javascript"> $(document).ready(function(){ $("#categories_block_left ul.tree > li").hide(); $("#categories_block_left ul.tree a.selected").parents('li').show(); }) </script> {/literal} {/if} 1 Link to comment Share on other sites More sharing options...
Przemysław Suszek Posted April 24, 2014 Author Share Posted April 24, 2014 This is it! Thanks Link to comment Share on other sites More sharing options...
Recommended Posts