X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Split Category List (https://forum.x-cart.com/showthread.php?t=52284)

kooki 02-11-2010 05:36 AM

Split Category List
 
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

cflsystems 02-11-2010 05:42 AM

Re: Split Category List
 
Lots of posts about something like this. Here is one of them http://forum.x-cart.com/showthread.php?t=37234&highlight=category+position

artmatt 02-11-2010 06:24 AM

Re: Split Category List
 
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)

kooki 02-11-2010 06:30 AM

Re: Split Category List
 
Thanks :) Got it sorted now!

Warwick 06-16-2010 04:57 AM

Re: Split Category List
 
Quote:

Originally Posted by kooki
Thanks :) Got it sorted now!


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)


All times are GMT -8. The time now is 08:11 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.