Jump to content

Create different category blocks for different pages


Recommended Posts

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 by TrannyBob (see edit history)
Link to comment
Share on other sites

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

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...