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

Sorting Categories and subcategories alphabetically.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-30-2002, 12:02 PM
 
Kayssted Kayssted is offline
 

Member
  
Join Date: Sep 2002
Location: USA
Posts: 12
 

Default Sorting Categories and subcategories alphabetically.

Is there a way to do it? I haven't been able to as of yet. Products are easy enough, but no joy on cats.
Reply With Quote
  #2  
Old 09-30-2002, 03:36 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

The latest version of x-cart allows for a method of "positioning" the categories list's. If you have previous version you can modify the sql query for the categories to GROUP BY field ASC or DESC.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 10-17-2002, 11:59 AM
 
Crusaderx Crusaderx is offline
 

Member
  
Join Date: Oct 2002
Location: Philippines
Posts: 21
 

Default positioning made simple for alphabetizing

3.2

a) just add all your products in any order.
b) click "modify products" in your admin interface
c) click "ALL" Search
d) you will have a list of ALL your products... and admin interface conveniently ignores the pos data and displays them alphabetically.
e) number all the products sequentially 0001, 0002, 0003... etc...

then they will always come out alphabetically no matter what category you browse.

cheers,
Daniel
Reply With Quote
  #4  
Old 10-17-2002, 12:05 PM
 
Crusaderx Crusaderx is offline
 

Member
  
Join Date: Oct 2002
Location: Philippines
Posts: 21
 

Default or to continue...

what i do is list each main category of products in the admin modify list...
then number each category sequentially with a uniqu header number... as i have a ALL Items category that includes all products i want Shirts to list alphabetically with other shirts and pants alphabetically with pants... etc...

thus something like:

in my code: pants are post header 10
shirts are pos header 20

shirts a 1001
shirts b 1002
shirts c 1003
pants a 2001
pants b 2002
pants c 2003

this example assumes you wont have more than 99 items in any single category. But the header could be 1 digit, if you have less than 10 categories...
hope this helps...

Daniel
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:56 PM.

   

 
X-Cart forums © 2001-2020