TrannyBob Posted October 14, 2013 Share Posted October 14, 2013 (edited) Hello Community! I have to solve this problem. I sell 3 different categories, let's call them knifes, spoons and forks. Now I want to manage these 3 different categories in the best way. (Suggestions welcome) I thought about creating 3 different menus in the top horizontal menu addon. One for Knifes, one for spoons and one for forks. This is not a problem at all. The problem is, that the block categories should show different categories on each of these pages. If you click in the top horizontal menu on knifes, in the Block Categories should only appear the different brands for knifes. Etc. How can I solve this problem? Edited October 14, 2013 by TrannyBob (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 15, 2013 Share Posted October 15, 2013 Hi there! I think you need a custom solution in this case. You need a module which only grabs subcategories of the current categories, basically. Now, you can also try editing blockcategories.tpl, but the major issue is that this module is cached. So, my advice would be to create another module, if you are, or have, a developer. Otherwise, you can try removing caching from the default one, then edit blockcategories.tpl, when it loops through the first level (knives,spoons,forks) and only display content if $smarty.get.id_category matches the current element in the loop Link to comment Share on other sites More sharing options...
vekia Posted October 15, 2013 Share Posted October 15, 2013 ive got modification of module, you can use it as second categories block here it is: category block with counter this is a separate module it will not overwrite existing one Link to comment Share on other sites More sharing options...
marquand26 Posted October 31, 2013 Share Posted October 31, 2013 Was this solved? I'm also looking for the module to only display the subcategories related to the page it's on. I looked for modifiying the code above using the module that vekia has but I haven't a clue as to what to do. Also, if I use your module vekia, how can I get the counters not to show? Many thanks Link to comment Share on other sites More sharing options...
vekia Posted October 31, 2013 Share Posted October 31, 2013 in module tpl file just remove part related to counter (from categories tree branch tpl file) 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