| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Custom Category and Subcategory Menu Blocks | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I am trying to create a custom menu block that displays depending on what the root category the user is browsing.
So far I have came up with a few ways to display the custom menu when they are in a specific category, but when they browse to a subcategory - the menu is gone. Here are the different ways I have found so far, but again it only works for the current category that they are in: Code:
How can I create something like this, but will work acrosss the subcategories of the specific root category? Also there is only 3 root categories if that makes it simple... |
|||||||||
#2
|
|||||||
|
|||||||
![]() Please post your X-Cart version in your signature per the forum rules.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() sorry, when I started using X-Cart it wasnt necessary. But its done now
__________________
X-Cart Gold 4.4.1 X-Cart Gold 4.2.3 |
|||||||||
#4
|
|||||||
|
|||||||
![]() I just did this for a client...let me dig up the code and post it for you.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() thanks!
__________________
X-Cart Gold 4.4.1 X-Cart Gold 4.2.3 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Where you able to dig it up? I really appreciate the help...
__________________
X-Cart Gold 4.4.1 X-Cart Gold 4.2.3 |
|||||||||
#7
|
|||||||
|
|||||||
![]() Still trying to find it....too many clients
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() Ok, here's the code you want:
Code:
Replace Rootname with the name of the root category you want it displayed for. If you have three root categories, all of which will show different menus, write it like this: Code:
Hope this helps!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
![]() I had tried something like this, but it doesn't seem to work. Not sure whats up. Any ideas?
Code:
__________________
X-Cart Gold 4.4.1 X-Cart Gold 4.2.3 |
|||||||||
#10
|
|||||||
|
|||||||
![]() It must be something to do with Pro
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|