Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / always display subcategories in sidebox

always display subcategories in sidebox

Views: 30,165

Results 21 to 40 of 52
21 Nov 2007, 10:11 PM
#21
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

always display subcategories in sidebox

Is it possible to get this mod to only extend the sub cats to the first level?

I've got about 1 gazillion subcategories (which can be confusing but unfortunately it's needed), and I'm trying to make it a little easier for my customers aren't familiar with online shopping.

14 Feb 2008, 10:46 PM
#22
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: always display subcategories in sidebox

Same here.. I just want to show top level categories and the first level of sub categories... any ideas?? :wacko:

25 May 2008, 2:29 AM
#23
kdays avatar

kdays

Zen Follower

Join Date:
May 2008
Posts:
239
Plugin Contributions:
0

Re: always display subcategories in sidebox

I just wanted to say a BIG thanks to the person that wrote this mod. It was simple to install and works perfectly :D

Cheers!

5 Jun 2008, 9:08 PM
#24
gjh42 avatar

gjh42

Black Belt

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

Re: always display subcategories in sidebox

The most current version of this mod ("Uncollapsed Categories Tree") is available from the maker's site, and posted in the forum under his username fragfutter.

24 Aug 2008, 10:11 PM
#25
cinbou avatar

cinbou

New Zenner

Join Date:
Aug 2007
Posts:
91
Plugin Contributions:
0

Re: always display subcategories in sidebox

Maybe I'm missing something, but when I go to the creator's site, I cannot find the file for download. Can someone point me to the right file location?

Thanks,
Cindy

25 Aug 2008, 7:52 AM
#26
gjh42 avatar

gjh42

Black Belt

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

Re: always display subcategories in sidebox

Do you see the link for ch_category.tar.gz? That should be it. I haven't checked recently to see if it still downloads.

29 Sep 2008, 4:35 PM
#27
twiddletails avatar

twiddletails

New Zenner

Join Date:
Sep 2008
Location:
Seatte, WA
Posts:
47
Plugin Contributions:
0

Re: always display subcategories in sidebox

Should I rename this before copying it?

13 Oct 2008, 1:43 AM
#28
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: always display subcategories in sidebox

Did anyone figure out how to get this mod to only open to the first level categories not every sub-categorie???

29 Oct 2008, 12:35 AM
#29
jamesandjennie avatar

jamesandjennie

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

Re: always display subcategories in sidebox

Glamorousshoe:

Did anyone figure out how to get this mod to only open to the first level categories not every sub-categorie???

Bump, because I need this as well. :)

19 Jan 2009, 1:34 AM
#30
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

Re: always display subcategories in sidebox

Did anyone figure out how to get this mod to only open to the first level categories not every sub-categorie???

Maybe this will be a standard option in ZC 2 ?

Anxious

14 Feb 2009, 7:43 PM
#31
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: always display subcategories in sidebox

Same question here....... Does anyone know how to get this mod to only open to the first level subcategories not every sub-category?

14 Feb 2009, 9:10 PM
#32
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: always display subcategories in sidebox

After hours of searching and experimenting, here is the solution:

Find this in /includes/templates/your_template/sideboxes/tpl_categories.php:

 if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
  } else { 

Replace with:

 if (substr_count($box_categories_array[$i]['path'],'_') > 1 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
  } else {
17 Mar 2009, 4:08 AM
#33
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: always display subcategories in sidebox

Anyone succeeded in changing the default look of ch_categories?

17 Mar 2009, 9:15 AM
#34
gjh42 avatar

gjh42

Black Belt

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

Re: always display subcategories in sidebox

You can do it by adding the appropriate classes/ids to your stylesheet, or applying Categories Dressing as mentioned in the other thread where you have posted about this.

9 Oct 2009, 6:42 AM
#35
janiceng avatar

janiceng

New Zenner

Join Date:
Sep 2009
Posts:
25
Plugin Contributions:
0

Re: always display subcategories in sidebox

seethrou:

There are only two php files of the mod and two docs, one is readme.txt and the other is gnu license.txt.

The installations should within half minute. :smile:
Including one setup in admin
=> Tools => Layout Boxes Controller => sideboxes/ch_categories.php

Then enable and config the sort order of => sideboxes/ch_categories.php
Or
If you don't like two Categories Sideboxes Co-Existing
Then Disable / Config the sort order of => sideboxes/categories.php

Attached is the screen capture of the default display of the un-collapse Ch_Categories Sidebox (only show the upper portion), for your preview and run under v1.3.5.

Hi, I am using the ch_category mod and it is working fine to expand my subcategories.

Can I know how can i make the font at my main categories to be bold (or in other colour just like yours) while the subcategories remain unbold? I tried looking at the css styesheet but couldnt get any idea. I am totally new in web designing. Can anyone help?

10 Oct 2009, 5:37 AM
#36
gjh42 avatar

gjh42

Black Belt

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

Re: always display subcategories in sidebox

The exact selectors to style may depend on your template, so giving us a link to see your site live is always the most reliable way to get correct answers about CSS.

For the stock template, styling
a.category-top {}
will take care of top cats, and
a.category-subs, a.category-products {}
will cover subcategories.

If you don't find them in your stylesheet, add them and style away.

19 Oct 2009, 5:10 PM
#37
timdwyer42 avatar

timdwyer42

Zen Follower

Join Date:
Apr 2009
Posts:
149
Plugin Contributions:
0

Re: always display subcategories in sidebox

limelites:

After hours of searching and experimenting, here is the solution:

Find this in /includes/templates/your_template/sideboxes/tpl_categories.php:

 if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
  } else { 

Replace with:

 if (substr_count($box_categories_array[$i]['path'],'_') > 1 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
  } else {

I've tried that and it just shows it as default with no subcatagories :/

19 Oct 2009, 7:43 PM
#38
gjh42 avatar

gjh42

Black Belt

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

Re: always display subcategories in sidebox

Just in case you are getting a float vs. integer problem, you can try either of these:

if (COLOR="Red"[/COLOR]substr_count($box_categories_array[$i]['path'],'_') > 1 or

if (substr_count($box_categories_array[$i]['path'],'_') >= 2 or

4 Feb 2010, 11:49 AM
#39
neha avatar

neha

New Zenner

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

Re: always display subcategories in sidebox

hi,

can somebody suggest me how to show the categories and subcategories at level one always. and afterwards on click it will show me the next level sub category too.

thanks in advance. hope to see the response soon.

4 Feb 2010, 2:27 PM
#40
gjh42 avatar

gjh42

Black Belt

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

Re: always display subcategories in sidebox

Install Categories Dressing with the chcategories option, and set the 'CAT_ACTIVE_LEVEL' define as described in the readme.
Post in the Categories Dressing support thread if you need help.