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)
-   -   Sorting Categories and subcategories alphabetically. (https://forum.x-cart.com/showthread.php?t=152)

Kayssted 09-30-2002 12:02 PM

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.

B00MER 09-30-2002 03:36 PM

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. :wink:

Crusaderx 10-17-2002 11:59 AM

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

Crusaderx 10-17-2002 12:05 PM

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


All times are GMT -8. The time now is 02:52 AM.

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