Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Show only sub-categories when viewing top-categories

Show only sub-categories when viewing top-categories

Locked

Views: 1,325

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Feb 2010, 12:17 PM
#1
bthreen avatar

bthreen

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

Show only sub-categories when viewing top-categories

Hi there,

I have searched for many days, but can't seem to find the solution to my problem.

Is there a way to only display sub-categories when viewing top categories?

For example, if I have the following categories:

Fruits

Apples
Bananas
Pears
Peaches
Oranges
Grapes

Snacks

Chips
Biscuits
Donuts
Bread
Ants

And the categories will be displayed as the following on the frontpage:

Fruits
Snacks

And I if clicked on Snacks on the front page, only the selected category and it's siblings will be displayed:

Snacks

Chips
Biscuits
Donuts
Bread
Ants

Your help would be greatly appreciated.

Thankssss

20 Feb 2010, 12:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Show only sub-categories when viewing top-categories

By default this is your display that you should be seeing when a top cat is selected

Fruits
Snacks

Chips
Biscuits
Donuts
Bread
Ants
20 Feb 2010, 6:07 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Show only sub-categories when viewing top-categories

If you have to ask this question, you either haven't installed and played with Zen Cart yet, or you have some third-party template that makes a non-standard display. In that case, a link to see your site will let us give useful advice.

20 Feb 2010, 6:17 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Show only sub-categories when viewing top-categories

I think what he wants is for the other top categories to disappear when one is selected, leaving only the selected category and its subcategories displayed in the Categories box.

I don't know how to do that, (though it can't be done with a stock cart), and it doesn't make sense to me to require customers to click back to the main page to see all categories.

20 Feb 2010, 6:20 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Show only sub-categories when viewing top-categories

It can be done using Categories Dressing, and when combined with the cat-tabs bar it can actually make sense.

21 Feb 2010, 7:28 AM
#6
bthreen avatar

bthreen

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

Re: Show only sub-categories when viewing top-categories

Yes, stevesh is correct. I wanted to create a more user-friendly category browsing system (as with a large number of top level, and sub-categories, it can get quite overwhelming).

Thanks gjh42, your addon worked nicely.

And thanks to all you other people for helping as well :)