New Zenner
- Join Date:
- Jul 2008
- Posts:
- 48
- Plugin Contributions:
- 0
weird looking sub catagories
would anyone know why my sub catagories have |_ in front of them?
|_ RC Cars - Gas/Nitro
|_ RC Cars - Electric
my site is at goof-offs.com/goofcart
Views: 885
New Zenner
would anyone know why my sub catagories have |_ in front of them?
|_ RC Cars - Gas/Nitro
|_ RC Cars - Electric
my site is at goof-offs.com/goofcart
New Zenner
and is there any way to make the catagories menu collapsable so the sub catagories are hidden? or is there anyway to hid the sub catagories?
New Zenner
is there any way to make it so that as the user is clicking though the tree, products dont show up in the catagory tree but they only show up on the page itself?
New Zenner
what i want to do is make it so that the categories list behaves just like the list in the header. when you click it, the categories only appear on the page, and not underneath the category links.
Black Belt
Answering your pm for everyone's benefit...
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 {
and add
substr_count($box_categories_array[$i]['path'],'_') > 0 or
to get
if (substr_count($box_categories_array[$i]['path'],'_') > 0 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 {
This will skip the category being processed if there are any underscores _ in the cPath. Subcategories always have at least one _ in the cPath.
Note: you can show any level of subcats in addition to top cats by changing the 0 to a 1, 2, etc.
Tell staff why this post should be reviewed.