-
Re: Simple Category Tree
OK, everything is now in the correct place with the correct file names. It showed in the sidebox layout menu and I was able to turn it on. I have an error somewhere in my code because nothing is showing on my sidebar now.
I haven't had to debug code for anything on my site so far so I'll search through the forums to figure out how to do that and let you know what error I'm getting.
Kathy
http://www.pinkbypost.com/store/
-
Re: Simple Category Tree
Try enabling debug mode using this:
https://www.zen-cart.com/tutorials/index.php?article=82
BTW, did you put all the content needed into those 2 files?
-
Re: Simple Category Tree
Thank you yellow, I did install that debug module and found my error. A missing ';' in my version of 'my_categories.php'. Everything is working the correct way now, yay:clap:
OK, now for a few more questions: :smile:
1. I did some reading on unordered lists. It seems like the bullets at each of my three levels are defaults. Any easy way for me to customize the look of these? I'd like to remove the bullet completely from Level 1, use the solid bullet for level two and the solid square for level 3.
2. Can I specify the amount of the indent in the stylesheet somehow? For example, I'd like each level to indent just a bit so that the total width of my sidebox footprint is smaller.
3. I did notice that the tree picks up categories that are disabled. I'm just going to remove these categories for now until I am ready to fully populate them for my shop.
Thank you for all your help!
Kathy
http://www.pinkbypost.com/store/
-
Re: Simple Category Tree
-
Re: Simple Category Tree
Thanks for the links. I think I've reached my limit in being able to make these types of changes. I got the bullet symbols and their colors to change. I've tried to trial and error getting the positioning to change but have failed at that.
I've also noticed that when I click on the top level Category (Cloth, Pattern or Tool) I end up with the following error:
Not Found
The requested URL http:// was not found on this server.
All the sub categories correctly link to where they're going.
Any insights?
Thank you,
Kathy
http://www.pinkbypost.com/store/
-
Re: Simple Category Tree
Hi,
I am having the same problem of the top level category getting the same error . I also cannot get the bullet symbols to change.
Could someone please point me in the right direction? I am a bit confused.
Thanks,
Daysi
-
Re: Simple Category Tree
to resolve the top level category issue - do the following:
open includes/classes/simple_categories_tree.php
locate about line 195
PHP Code:
if(is_int($cPath) || preg_match('/[0-9]+(_[0-9]+)+/', $cPath))
$link = zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath);
else
# $link = $cPath;
$link = zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath);
return '<a'.$class.' href="' . $link . '">'.$categories_name.'</a>';
}
I have commented out (using #) the "$link = $cPath;" item and replaced it with a duplicate of the line above "$link = zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath);" that adds in the cPath and resolves that error
Anyway if you copy the code above and copy into relevant files - clicking the top of the cats works
Enjoy :)
Sarah
-
Product list...
This mod looks great. Thanks for your effort here, Yellow...
I want to put this into my tpl_index_categories.php page so each category index will see a product list in links. Here is one of the pages: http://www.jonescoffeecompany.com/in...index&cPath=27
I've updated with most current files you've posted, and got it to list each categories sub-categories, but not the products.
Here is the code I have in tpl_index_categories.php:
PHP Code:
<?php
$_SESSION['category_tree']->build_deepest_level_children();
echo $_SESSION['category_tree']->build_category_string('ul', 'li', '', $_GET['cPath'], 5, false, true) ;
?>
Any idea why sub products aren't showing?
-
Re: Simple Category Tree
Thanks for your help the fix worked great.:clap:
-
Re: Simple Category Tree
Any ideas on this.... I'm trying to post inside the tpl_categories_index.php.... here is what I have:
echo $_SESSION['category_tree']->build_deepest_level_children('ul', 'li', '', $_GET['cPath'], 3, false, true);
I'm really stuck here (and not php expert!)... Please please help me out!! :shocking: