| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Split Category List | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have a standard list of categories on the left side of the page, using the built-in fancy categories module.
At the top of this list is a heading image labelled "CATEGORIES". I'd like to split the categories up into multiple lists, shown one below the other, with seperate heading images for each one. The problem is knowing how to break up the list into different sections.. if I could figure out how to pick out specific category ID's I might just be able to copy the foreach loop for each list. Hope this makes sense! http://www.kookiweb.co.uk/dump/pro-cat-example.gif
__________________
X-Cart 4.4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Lots of posts about something like this. Here is one of them http://forum.x-cart.com/showthread.php?t=37234&highlight=category+position
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Two quick ways we've done similar in the past, one is to use ordering to define it, so where you put a number in the admin section to determine the order it is shown, use a range to define one menu and another range to define another. So you could start the first menu at 0, the second menu at 100, third at 200 etc. The code is then fairly simple to only pull the ones out where the number is less than 100 etc.
The other way is to make the headings categories, and remove the link from them in the tpl file. You then need to set it to show subcategories all the time, to do that have a read of this: http://forum.x-cart.com/showthread.php?t=45126 (third option)
__________________
Xcart Pro Version 4.1.2 |
|||||||
#4
|
|||||||
|
|||||||
![]() Thanks
![]()
__________________
X-Cart 4.4.2 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
You got i sorted for 4.3.x? Please, please share, I am dying to find out how to do this (looked at the other threads but just don't see it)
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|