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

always display subcategories in sidebox

Views: 30,165

Results 1 to 20 of 52
9 Sep 2006, 12:29 AM
#1
chrisdem avatar

chrisdem

New Zenner

Join Date:
Sep 2006
Posts:
3
Plugin Contributions:
0

always display subcategories in sidebox

Hi,
Need help to find a way to display the subcategories links permanently in the sidebox as the categories are.

Thanks!!

9 Sep 2006, 1:46 AM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

Please refer to the topic below and follow the related links for further infos.
how would I make the categories expand

.

10 Sep 2006, 12:27 AM
#3
chrisdem avatar

chrisdem

New Zenner

Join Date:
Sep 2006
Posts:
3
Plugin Contributions:
0

Re: always display subcategories in sidebox

Thanks,
but in any case and if I didn't missed something, the proposed adds-on allow to expends the category box to the product level (all the tree)
I didn't find a way to expend to selected level: for me Categories and sub-categories, only 2 levels.

Thanks for help

10 Sep 2006, 3:09 AM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

How about the following mod.
Zen Cart Categories. Show Subcategories All The Time.
A Replacment Categories Tree for the zen-cart Shopping System. It will uncollapse all Subcategories.

And the demo,
http://shop.frankfurt.it/

But please NOTED, it is only for the old version of ZC and modifications may needed.

.

11 Sep 2006, 8:20 PM
#5
chrisdem avatar

chrisdem

New Zenner

Join Date:
Sep 2006
Posts:
3
Plugin Contributions:
0

Re: always display subcategories in sidebox

OK,
I won't have time to test it now, but the result of the exemple is exactly what I was looking for.
I found an issue with "yahoo_tmenu_zc_1.2.7_0.1b" proposed in your previous links by deactivating the build product branch fonctions in php files.
I'll install this new release soon.

Thanks

20 Oct 2006, 5:00 PM
#6
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: always display subcategories in sidebox

seethrou:

But please NOTED, it is only for the old version of ZC and modifications may needed.

Thank you for the mod. It does appear to do exactly what I want to do too. One minor issue to report is that the "categories subcategories indent" appears to be printing twice. In my case, I use a nonbreaking space, then an asterix, then another nonbreaking space. If you look at my work-in-progress site, http://www.decaldepot.net/zencart you'll see that each category has " * * " before each.

Any advise on how to 'fix' this?

22 Oct 2006, 6:55 AM
#7
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

dinki:

Thank you for the mod.
We should thank Christoph Handel for his contribution. :smile:
I forgot his member's name and the topic should be in the old forum archive somewhere.

dinki:

It does appear to do exactly what I want to do too. One minor issue to report is that the "categories subcategories indent" appears to be printing twice. In my case, I use a nonbreaking space, then an asterix, then another nonbreaking space. If you look at my work-in-progress site, http://www.decaldepot.net/zencart you'll see that each category has " * * " before each.

Any advise on how to 'fix' this?
I have tried to update the file and it seems without your problem in a brief test.
You can try my file as link follow:
ch_category_1.3x.zip

Please feed back for any problem! :smile:
If no problem will submit to the download area later.

.

22 Oct 2006, 1:05 PM
#8
ladygodiva avatar

ladygodiva

New Zenner

Join Date:
Oct 2006
Posts:
52
Plugin Contributions:
0

Re: always display subcategories in sidebox

After numerous searching on this topic and lots of threads with dead links. I downloaded the last .zip but will this work with zen cart version 1.3.5 or is there a simpler way i can show all subcategories? Thanks

22 Oct 2006, 4:18 PM
#9
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

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.

22 Oct 2006, 4:37 PM
#10
ladygodiva avatar

ladygodiva

New Zenner

Join Date:
Oct 2006
Posts:
52
Plugin Contributions:
0

Re: always display subcategories in sidebox

Wow thank you so much for that i managed to get it to work straight away. I was wondering, would there be a way to get rid of the numbers that tell you how many items are in a category, example: jewellery (12). And also how could you modify the |_ before each subcategory?

22 Oct 2006, 4:47 PM
#11
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

Before any modification, look up at the admin first.

In admin => Configuration => My Store

Show Category Counts  	true

Show Category Counts - Admin  	true

In admin => Configuration => Layout Settings

Categories Separator between links Status  	1
Categories Separator between the Category Name and Count 	->
Categories Separator between the Category Name and Sub Categories 	|_ 
Categories Count Prefix 	 (
Categories Count Suffix 	)
Categories SubCategories Indent 	  
22 Oct 2006, 4:57 PM
#12
ladygodiva avatar

ladygodiva

New Zenner

Join Date:
Oct 2006
Posts:
52
Plugin Contributions:
0

Re: always display subcategories in sidebox

I just want to say a big fat thank you for that :D, it seems so obvious that i've missed it, but weeks of working on my zencart i think my brains started to give in a bit. Thanks again, you've been allot of help i appreciate it.

22 Oct 2006, 5:12 PM
#13
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

You are welcome! :smile:

And gald that it can be of help.

.

23 Oct 2006, 3:29 PM
#14
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: always display subcategories in sidebox

seethrou:

I have tried to update the file and it seems without your problem in a brief test.
You can try my file as link follow:
ch_category_1.3x.zip

Please feed back for any problem! :smile:
If no problem will submit to the download area later.

.

Thanks for the update. Unfortunately I am still having the same problem. I uploaded the new files (overwriting the old ones), turn the module off and then on again and I am getting the same double * as before. I do not see this behavior with the original categories module.

I've left both the original and the ch_category boxes on if you'd like to see what I see:

http://www.decaldepot.net/zencart/index.php

Thanks for your help

23 Oct 2006, 4:36 PM
#15
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: always display subcategories in sidebox

As an update, until I have time to work on this, I've changed the seperator to " " which generates two blank spaces to indent the categories. I'm not overly concerned with getting the "*" to work. I see others are not having the troubles I am facing so perhaps it is just something screwy with my set up.

I'm willing to try any additional fixes, but don't worry too much about it if others are not having problems.

24 Oct 2006, 12:26 AM
#16
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

The problem is confirmed! :(

It need to trace the program and see what happen.

.

26 Oct 2006, 9:55 AM
#17
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: always display subcategories in sidebox

Give below is the link for the updated ch_category sidebox.
ch_category_1.3x_a1.zip

  • 2006-10-26 updated for Zen Cart v1.3.x
  • Fix the double display issue for the "Categories SubCategories Indent"

It is the follow up for a problem for the prevous discussion.

dinki:

Thank you for the mod. It does appear to do exactly what I want to do too. One minor issue to report is that the "categories subcategories indent" appears to be printing twice. In my case, I use a nonbreaking space, then an asterix, then another nonbreaking space.

.

26 Oct 2006, 2:52 PM
#18
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: always display subcategories in sidebox

Works great! Thank you for the update.

The only thing that could make it better would be if you could 'fix' the issue when category names span two lines. It would be ideal if the category name would line up with the subcategory name rather than with the main category heading. I'm pretty sure this can be done with an html unordered list, but it will require a good bit of modification to the categories template php file. If you 're interested in working on this, I've started a thread here . I've given it a try but I'm by no means anything more than a novice php hacker. I think this would make a nice addition to your great contrib!

Thanks again for the update!

10 Dec 2006, 11:01 PM
#19
ptcdf avatar

ptcdf

New Zenner

Join Date:
Nov 2006
Posts:
16
Plugin Contributions:
0

Re: always display subcategories in sidebox

Great Tool. Works very well for small category Sites

8 Feb 2007, 10:09 AM
#20
qingtianyu9 avatar

qingtianyu9

New Zenner

Join Date:
Jan 2007
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.

very good cood,haha! thanks for seethrou!
--------chinese---------