-
Uncollapsed Categories Tree
In a shop with only a few categories, it might be useful to uncollapse all subcategories. The customer can directly select the category he is interested in.
Here is a new sidebox showing all categories, all the time. It will use all the same templates and configuration options of the default category sidebox, but will always unfold.
You can see a demo at
http://shop.frankfurt.it/
The Sidebox was referred as ch_categories by this forum. This release fixes some bugs and makes it comaptible with zen cart 1.3.x (tested with 1.3.7)
http://plone.held-im-ruhestand.de/so...art-categories
-
Re: Uncollapsed Categories Tree
This is great! Is there a way to control how many levels are uncollapsed? I'd like it only to uncollapse *one* level (We currently have 2 levels of sub-categories).
-
Re: Uncollapsed Categories Tree
Same here. I only want to expose the top level and first sub-level...
-
Re: Uncollapsed Categories Tree
Same here.. I'm anxious to know if this mod allows you to open ONLY the top level category and first level of sub categories. I'm needing something to do that for a client's store and I don't want to go install things willy-nilly just to check them out.
-
Re: Uncollapsed Categories Tree
me too...would be great to know how to acomplish this...
regards,
kruna
-
Re: Uncollapsed Categories Tree
Take a look at the Simple Category Tree under my sig. You can also search the forum for its support thread along with demo link.
-
Re: Uncollapsed Categories Tree
thank you very much yellow 1912.
i tried the mod under your sig, but nothing happens...
here is what I did:
I copied/pasted your code in a php file called
simple_categories_tree.php (which i uploaded in includes/classes
and
config.simple_categories_tree.php (uploaded in includes/auto_loaders
but nothing happened.
What did I do wrong?
thanks for help.
regards,
kruna
-
Re: Uncollapsed Categories Tree
Did you read the readme.txt file ? :)
-
Re: Uncollapsed Categories Tree
-
Re: Uncollapsed Categories Tree
Quote:
Did you read the readme.txt file ? :)
...:blush:not at first...
ok I have read it now, although I didnt understood very well I tried to implemente the codes, but now the design is gone, please take a look at my sig.
regards,
kruna
-
1 Attachment(s)
Re: Uncollapsed Categories Tree
hi...I put it back like it was before meanwhile i find a solution or get help.
Here is a screenshot of how it looked.
I managed to get the subcats to see, but the design was gone and suddenly i had the cats twice but the second pair of cats was collapsed.
best regards,
kruna
-
Re: Uncollapsed Categories Tree
You have to turn off your default cat sidebox.
As for the design is gone, please follow this debug instruction:
https://www.zen-cart.com/tutorials/index.php?article=82
-
Re: Uncollapsed Categories Tree
hi,
if i turn off the default cat i dont see categories at all...as for the debbug..I wouldnt know what to fix, as I am not very familiar.
thank you very much for all your help so far, I really do appreciate, but somehow it doesnt work for me and of course it is not your mod, but my lack of knowledge to implement it...:blush:
regards,
kruna
-
Re: Uncollapsed Categories Tree
If you put the 2 category trees (the default one and the new one) in 2 different sideboxes, you should be able to turn off just one of them.
You may not know how to debug, but you can copy the errors you get and post here.
-
Re: Uncollapsed Categories Tree
hmmm...now i lost track completely. I have only one category tree. The codes which i found in your readme docs, i added them to the default files and loaded them up to MY_TEMPLATE direction.
I guess it was the wrong way...
I will have to look over it again...step by step...
As for the design, I was able to peak in some websites using your mod and I found out that I would have to make changes in the stylesheet...hopefully this will sort it out.
regards,
kruna
-
Re: Uncollapsed Categories Tree
You want to put it in a different sidebox, so that you can turn it off, or the default off.
Read
https://svn.rubikintegration.com/zen...ideboxcode.txt
-
Re: Uncollapsed Categories Tree
:blush:...yes I just noticed that reading more carefully and trying it out...
-
Re: Uncollapsed Categories Tree
Thanks!
your mob work for me in both 1.3.8 and 1.3.7
there were 2 other mods that do the same thing but nether of them just worked automatically with out doing anything extra like yours!
-
Re: Uncollapsed Categories Tree
you could add it to the download section...
-
Re: Uncollapsed Categories Tree
yellow1912 ... Wonderful mod.. I got it to work perfectly.. it would be nice to have it in a downloadable file like the other mods, but nonetheless.. works good.
My question is how do you get rid of the bullets.. or make it where it uses the same bullet styles that the regular categories box does that can be set from the admin:
Categories Separator between the Category Name and Count
-and-
Categories Separator between the Category Name and Sub Categories
Also.. on a side note.. you have a splash page thing on your demo store... do you have that for download somewhere?
-
Re: Uncollapsed Categories Tree
You know what.. I just did it the cheat way.. and did my admin settings under Configuration--> Layout Settings as follows:
Categories - Always Show on Main Page: 1
Main Page - Opens with Category: 2_3_4_5_6_0
It works fine like that.
I am still curious about that splash page though.:smile:
-
Re: Uncollapsed Categories Tree
This is how I did it: http://www.zen-cart.com/forum/showthread.php?t=102871
Edit: duplicate posts merged by moderator
-
Re: Uncollapsed Categories Tree
-
Re: Uncollapsed Categories Tree
When I add in this MOD it creates the box on the left side but it makes it 3 different times.
It is on a local machine so I can not give a link.
Zen Cart 1.3.8a
Database Patch Level: 1.3.8
-
Re: Uncollapsed Categories Tree
Maybe I am unclear about what it is doing. Is there any updates to this or is there a better way to make it so the tree in always uncollapsed?
Sideboxes display as follows:
Categories List show expanded
Logo area
Categories List show expanded
Gallery area
Categories List show expanded
Banner - Side
-
Re: Uncollapsed Categories Tree
I really like this idea and tried to implement it on my site.. however... Im not sure why the chcategories is in the middle of my site instead of on the left...
thelittlestgiftboutique.com
http://img803.imageshack.us/img803/5186/uncollapse.jpg
-
Re: Uncollapsed Categories Tree
It may be something about the way you have merged BetterCategories with Uncollapsed Categories Tree. What did you actually do? I don't think BC would apply to the chcategories sidebox without some customization... or maybe it would, using the regular tpl_categories.php file as Uncollapsed Categories does. It may be filtering through the BC version of the file.
If you want to style the expanded categories, it would be cleaner to just use Categories Dressing which I can see you have at least partially installed (stylesheet_chcategories_dressing.css).
-
Re: Uncollapsed Categories Tree
Hey, I somehow fixed it.. I had categories listing box installed... I didn't clean up the files properly when I removed it.. and I had that enabled in sideboxes controller. I also had to clean up the stylesheet.css.
-
Re: Uncollapsed Categories Tree
Having bits of multiple mods installed which all affect the same element is pretty much guaranteed to lead to unexpected results in some form...
Glad it's sorted now.
-
Re: Uncollapsed Categories Tree
For those of you requesting to show only 1 level of subcategories... try the following:
1) Edit Line 36 in /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php
Code:
$content .= '<li class="' . $new_style . '">';
2) Add this code to your template's CSS file:
Code:
li.category-products {display: none;}
-
Re: Uncollapsed Categories Tree
Hi guys,
I am using the Uncollapsed Categories Tree. All is working fine. What I would like to do is 'unlink' the top level category, which I don't really need. Currently, if I click on the top level category a page load and lists each subcategory in thumbnail format. It's a bit redundant, as the sub cats are always showing anyway.
Any idea to make the top level category 'unclickable' ?
thanking you.
adam
-
Re: Uncollapsed Categories Tree
open \includes\templates\YOUR_TEMPLATE\sideboxes\tpl_categories.php and comment out this line:
Code:
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
and this one:
Code:
$content .= '</a>';
OR you can change the <a> tag to <span> tag. There may be some adjustments you have to make in CSS styling, it depends on your template.
-
Re: Uncollapsed Categories Tree
Sorry, I tested it and realize it actually removes ALL your category links. You would actually want to replace the line with an if/then statement like so:
Code:
if ($box_categories_array[$i]['top'] == 'true') {
$content .= '<span class="' . $new_style . '">';
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
}
-
Re: Uncollapsed Categories Tree
Hi, thanks for the reply, but the tpl_categories you use in your example is the default. the categories dressing mod actually replaces this with a new tpl_categories, which don't have the lines you refer to. I understand the logic but struggling to apply it to the correct tpl_categories.
if you get more time, i'd appreciate further advice.
thanks, adam
-
Re: Uncollapsed Categories Tree
You should be asking in the Categories Dressing support thread, since it is a Cat Dressing issue rather than an Uncollapsed Categories issue.
I am away from home now, but if you post there I will answer when I get back to my mod files tomorrow.
-
Re: Uncollapsed Categories Tree
thank you Glenn, doing it now
-
Re: Uncollapsed Categories Tree
Someone just commented that the ch_categories mod is no longer available. It is still at fragfutter's site, but you have to look very carefully to find it (page 2 of the "Software" category). Here is a direct link to the correct location (as of February 2, 2014):
http://www.held-im-ruhestand.de/soft...art-categories