| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Showing all categories, subcategories and sub-subcategories | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Showing all categories, subcategories and sub-subcategories
I had my home page redone to put the categories on top instead of on the side. Using code from stackoverflow.com I was able to show subcategories together with parent categories. I need to go down a level or two, and can't seem to figure it out. Any ideas?
The code I used is below: in include/common.php, I added the following under "Get categories menu data Code:
Code:
What do I do to go down further levels?? |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Showing all categories, subcategories and sub-subcategories
Looking in /include/func/func.category.php:
Code:
See that $max_level = 0 in the function arguments above? Looks to me like you are calling this function with this code: Code:
So the last parameter you are feeding it is a 1, $maxlevel = 1. Try increasing it and see what you get.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Showing all categories, subcategories and sub-subcategories
v4.x - Up to 5 levels... ensure Modules > Flyout Menus is enabled + 'Cache the menu' is disabled.
Code:
__________________
xcartmods.co.uk |
|||||||
|
#4
|
|||||||||
|
|||||||||
Re: Showing all categories, subcategories and sub-subcategories
Thank you guys, I will see if we cna make this work.
PhilJ, can I do this without flyout menus? I am using customized design for my categories. |
|||||||||
#5
|
|||||||
|
|||||||
Re: Showing all categories, subcategories and sub-subcategories
You can, but why bother, just use the code.
__________________
xcartmods.co.uk |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Showing all categories, subcategories and sub-subcategories
Thank you PhilJ.
I got it working, now I just need to tweak the design to get it back to where I really need it, but all the information is now showing. |
|||||||||
#7
|
|||||||
|
|||||||
Re: Showing all categories, subcategories and sub-subcategories
cool.
__________________
xcartmods.co.uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|