| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Show only sub-categories in left sidebar? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Show only sub-categories in left sidebar?
I'm desiging a store with a horizontal menu for my root categories. Once one is clicked, I'd like to display only the corresonding sub-categories in the left sidebar. Anyone got a simple way of accomplishing this?
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
#2
|
|||||||
|
|||||||
Re: Show only sub-categories in left sidebar?
New problem. Nevermind the previous...changed categories.tpl to this
Code:
Now the problem is that when I click a menu item that has no sub-categories, my menu disappears. I guess what I'm looking for is a statement that says "if there are no subcategories, show all subcategories of this subcategory's parent. Does that make sense? If I click a 2nd level that has only products and no 3rd level categories, I only want to display the other 2nd level categories of the parent in categories.tpl. Can anyone help?
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
#3
|
|||||||
|
|||||||
Re: Show only sub-categories in left sidebar?
For anyone looking for something similar....horizontal category bar with only the current subcats for each in a sidebar..check this post - http://forum.x-cart.com/showthread.php?t=58751
__________________
hollaratbear Xcart Gold 4.2.1 Newbie |
|||||||
|
|||
X-Cart forums © 2001-2020
|