Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Sub Category Listing

Sub Category Listing

Locked

Views: 2,139

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
8 Sep 2007, 3:43 PM
#1
robiny avatar

robiny

New Zenner

Join Date:
Sep 2007
Location:
Dunfermline, Scotland
Posts:
22
Plugin Contributions:
0

Sub Category Listing

Hi there,

My final question of the day. Can anyone let me know how I change the listing of my subcategories to display horizontally rather than vertically?

Your help is much appreciated.

Thanks

Robin

8 Sep 2007, 8:02 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Sub Category Listing

This needs some clarification. Are you referring to the sub categories as listed in the categories sidebox (in which case there isn't normally space to list them horizontally) or the list of sub categories that appears in the centre panel (which is already listed horizontally) or the products within your subcategories?

9 Sep 2007, 10:06 AM
#3
robiny avatar

robiny

New Zenner

Join Date:
Sep 2007
Location:
Dunfermline, Scotland
Posts:
22
Plugin Contributions:
0

Re: Sub Category Listing

Thanks Kuroi, it is the listing in the centre panel. The subcategory icons are listing vertically.eg my main category is ride on cars, I have created 4 subcategories from this with pictures. When you click on Ride on cars the subcategorys are being displayed vertically. I would like them to be displayed Horizontally. It seems from your message that they should be displaying horizontally anyway. I hope that makes sense.

Thanks Again

Robin

9 Sep 2007, 10:09 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Sub Category Listing

Do you have a URL where we can see what is happening on your site?

9 Sep 2007, 2:20 PM
#5
robiny avatar

robiny

New Zenner

Join Date:
Sep 2007
Location:
Dunfermline, Scotland
Posts:
22
Plugin Contributions:
0

Re: Sub Category Listing

Hi,

Thanks for your help on this on.

I have included the link here to take you to a sub category listing page for personalised products. There are four sub categories listed vertically. I am new to this and appreciate this.

Thanks again

Robin

http://cool-kidz.com/kidzshop/index.php?main_page=index&cPath=10&zenid=53b1e9adac0c1f233578b6a73e910316

9 Sep 2007, 2:31 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Sub Category Listing

The section of your stylesheet from about line 115 reads as follows:> #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {

float: center;

}Since there is no such thing as a float:center, browsers just ignore it and your subcategories are listed vertically as a default.

The normal CSS for this section is> #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {

float: left;

}which would allow the subcategories to float up next to each other.

9 Sep 2007, 2:41 PM
#7
robiny avatar

robiny

New Zenner

Join Date:
Sep 2007
Location:
Dunfermline, Scotland
Posts:
22
Plugin Contributions:
0

Re: Sub Category Listing

Thank you...much appreciated.

12 Sep 2007, 6:02 AM
#8
pinuno avatar

pinuno

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: Sub Category Listing

hi bumping this thread up, i would like to ask a question...

is there a way to limit the sub categories list up to 4th level only?

thanks.

14 Sep 2007, 6:30 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Sub Category Listing

Do you mean to display only four levels deep of subcats in the categories box? Then how will you ever get to subcats beyond those?

Please explain in more detail what you want.

20 Sep 2007, 3:03 AM
#10
pinuno avatar

pinuno

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: Sub Category Listing

hi gjh42,

sorry for a very late reply...

sorry its three levels deep of sub categories on the side box, sub cats beyond level three will not shown up, i think zencart still displays the products of the lower level, which is exactly what i want.

i managed to make it work with the use of cPath, cPath value up to xxx_xxx_xxx, i still encountering error maybe because my code is not compatible with the current setup of zencart, i'll have to figure it out and make it work with the current ZC, thanks anyways :)