Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Split Category List

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-11-2010, 05:36 AM
 
kooki kooki is offline
 

Member
  
Join Date: Jun 2008
Posts: 20
 

Default 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
__________________
X-Cart 4.4.2
Reply With Quote
  #2  
Old 02-11-2010, 05:42 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 02-11-2010, 06:24 AM
 
artmatt artmatt is offline
 

Member
  
Join Date: Aug 2006
Posts: 12
 

Default 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)
__________________
Xcart Pro Version 4.1.2
Reply With Quote
  #4  
Old 02-11-2010, 06:30 AM
 
kooki kooki is offline
 

Member
  
Join Date: Jun 2008
Posts: 20
 

Default Re: Split Category List

Thanks Got it sorted now!
__________________
X-Cart 4.4.2
Reply With Quote
  #5  
Old 06-16-2010, 04:57 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default 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)
__________________
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
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:56 AM.

   

 
X-Cart forums © 2001-2020