Re: how to keep categories unfolded on sidebox?
Problem: In Nav Bread Crumbs ALL of the expanded cats/subcats show when on a product page (if you get to product from expanded cat sidebox).
Furthermore, clicking on one of the many cats in the nav crumb is not reliable: It may say your category, but show sub cats from another category.
This mod, although simple and it does expand the cats and looks nice, may be too simple, unless one turns off bread crumbs. I don't want to.
I'll look at Yellow's cat tree post. More complex; wonder if it also shows everything in breadcrumb?
Re: how to keep categories unfolded on sidebox?
Solution: my main site uses dynamic url's, which causes the nav breadcrumb problem. And each product shows all of the cats listed in the array in the browser url address bar.
My test site uses simple seo url. It seems to work.
Dynamic url's are the problem?
Re: how to keep categories unfolded on sidebox?
"Categories Dressing mod
Where do I obtain this Uncollapsed Categories Tree mod? "
Uncollapsed Categories Tree is packaged in the Categories Dressing zip, and the readme describes how to install and use it.
Re: how to keep categories unfolded on sidebox?
Quote:
Originally Posted by
gjh42
"Categories Dressing mod
Where do I obtain this Uncollapsed Categories Tree mod? "
Uncollapsed Categories Tree is packaged in the Categories Dressing zip, and the readme describes how to install and use it.
Thanks! I've used your Categories Dressing mod like forever, it's on my site now (although never used to it's full potential):
www.prommart.com
I have subcats showing in another font color.
I could probably accomplish what I'm trying to do (group designers by their various divisions) using a non-linked heading (or pic) with Cat Mod and making it look nice, and returning subcats to top level. But that will entail a learning curve, as all I've really done is use the line separator.
I'll check the Categories Dressing mod again, maybe download again, and take a look at the uncollapsed categories tree.
Steve
Yes! New download appears to have more than my old one.
Re: how to keep categories unfolded on sidebox?
* Categories Dressing v2.2 Glenn Herbert (gjh42) 2008-05-08
I packaged Uncollapsed Categories Tree with Cat Dressing in v2.7, and there are lots of improvements in functionality in the most recent version as well.
Re: how to keep categories unfolded on sidebox?
You may want to look at the zip of v2.8 in the support thread, post 1542 (not yet released in Free Addons), as it makes some things easier than previous versions as well as having enhanced functionality.
Re: how to keep categories unfolded on sidebox?
Thanks! I'll go to the Cat Dressing thread, get the new zip, and make any further posts there.
But already, your updated version seems much more user friendly.
Re: how to keep categories unfolded on sidebox?
Quote:
Originally Posted by
sotlordrahl
This is how I hacked up the zen-cart code to have the ability to unfold ANY or ALL categories to display sub-cats on all pages, not just the index page:
open 'includes/classes/category_tree.php'
1) change line 137
-----------------------------------------------------------------------------------
change
if (zen_not_null($cPath)) {
TO =>
if (zen_not_null($cPath) or 1) {
-----------------------------------------------------------------------------------
2) insert code in lines 141-145
ORIGINAL
-----------------------------------------------------------------------------------
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
-----------------------------------------------------------------------------------
insert =>
$cPath_array = array(#,#);
in between the reset and while commands.
# equals the category ID you wish to be unfolded... you can have it only unfold one, or all... all would be #,#,#,#,# and so on until you have all the ID's inside the parenthesis.
END RESULT
-----------------------------------------------------------------------------------
reset($cPath_array);
$cPath_array = array(1,2,5,7);
while (list($key, $value) = each($cPath_array)) {
-----------------------------------------------------------------------------------
hope this helps some people, my buddy and I spent 2 hours trying to figure this one out. tried to add some hyphens in here for reading pleasure and such... do not insert the page breaks I made. ENJOY!!!
Any questions let me know, this is what worked for me.
Hi there! I made this change to includes/classes/category_tree.php and it ALMOST works except that the link for one of the subcategories is incorrect. It directs to the product listing of another subcategory.
Women (cPath=18)
-- Sandals (cPath=18_21)
-- Fur Accessories (cPath=18_22 - properly pulls up the page with additional subcategories for items like gloves, etc)
Men (cPath=17)
-- Sandals (cPath=18_17_19 - but still links properly to the men's sandals)
-- Fur Accessories (cPath=18_17_20 - but DOES NOT properly link to the men's page with additional subcats for items like slippers, etc but rather links to the WOMEN'S)
Please, help! I've been trying to fix this for hours. I hope someone has a fix out there! Thank you.
My cPath_array is : $cPath_array = array(18,17,21,19,20,22);
Using zencart v 1.3.9h
Re: how to keep categories unfolded on sidebox?
If you are not trying something fancy like expanding only some of the categories, forget editing code on your own and install Uncollapsed Categories Tree (detailed in previous posts), which just works reliably without adjustments.
Re: how to keep categories unfolded on sidebox?