| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Categories Menu - Showing Subcategories | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Categories Menu - Showing Subcategories
What would I need to do to get the subcategories to show for the category that the user is currently in?
For example, on the main page, the category menu would show: - Cat A - Cat B - Cat C - Cat D However, if you click on Cat A, or go to a product that is in Cat A, the menu would show: - Cat A --- Sub Cat 1 --- Sub Cat 2 --- Sub Cat 3 - Cat B - Cat C - Cat D Any help would be greatly appreciated. Thanks! |
|||||||
#2
|
|||||||
|
|||||||
So far.. I have..
Code:
..but it's outputting the same subcategory. So for Cat A, instead of getting: - Cat A --- Sub Cat 1 --- Sub Cat 2 --- Sub Cat 3 - Cat B - Cat C - Cat D ...i get - Cat A --- Sub Cat 1 --- Sub Cat 1 --- Sub Cat 1 - Cat B - Cat C - Cat D |
|||||||
#3
|
|||||||
|
|||||||
I would like to display my menus this way also. Did you ever figure it out.
__________________
Brian X-Cart 4.0.18 |
|||||||
#4
|
|||||||||
|
|||||||||
Try this:
Code:
You didn't have the index in the inner loop set correctly (cat_num vs. subcat_num). I also added " " tags to make it display properly. Hope this helps! --Kurt |
|||||||||
#5
|
|||||||
|
|||||||
thanks! it works like a charm. I didnt have the
in there because the code sniplet i posted was a stripped down version of what im using... i have my menu setup in tables. http://www.aheadgames.com/cart/customer/home.php Here's the /customer/categories.tpl I'm using if anyone wants to do anything similar.. you might have to change things a bit to work with your cart. Code:
|
|||||||
#6
|
|||||||||
|
|||||||||
Nice mod that, moved to custom templates
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#7
|
|||||||
|
|||||||
inVINCEible,
How did you get the sub-categories to stay after a person clicks them. Did you have to make any other modifications? The categories and sub-categories are displaying correctly but if you click a sub-Categorie only the main categories are showing. The Sub-Categories disappear. Code:
__________________
Brian X-Cart 4.0.18 |
|||||||
#8
|
|||||||
|
|||||||
This is extremely cool and almost exactly what I am in need of right now! But Brian has a really good question. Additionally, I'd like to figure out a way to have the first main category initially opened by default, showing its sub-categories when a person first goes to the site. That way it will be more obvious to less experienced users that all these menus open to reveal more.
|
|||||||
#9
|
|||||||
|
|||||||
Hey inVINCEible, Ditto to the two above, fantastic mod.. must admit, the ahead games site looks awesome.. Got a question... same as Brian... How did you get the sub-categories to stay after a person clicks them. would love to know how you did it! Cheers man.. Aj |
|||||||
#10
|
|||||||
|
|||||||
http://www.below-0.net
is there any chance you can make it more like that? by this i mean, not open up a new page aswell as revieling the lst of subcats |
|||||||
|
|||
X-Cart forums © 2001-2020
|