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

Alphabetize Categories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-06-2004, 11:43 AM
 
c8records c8records is offline
 

Newbie
  
Join Date: Jun 2004
Location: Sacramento
Posts: 2
 

Default Alphabetize Categories

Is there an easier way to make the categories to be auto alphabetized?
Reply With Quote
  #2  
Old 07-06-2004, 11:56 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Easier than what?

I haven't attempted this, but you can try this.

Open /include/categories.php

Make a backup first.

Then change:

Code:
group by $sql_tbl[categories].categoryid order by ".($current_area=="C" ? "order_by" : "category"));

to

Code:
group by $sql_tbl[categories].category order by $sql_tbl[categories].category);
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 06:38 PM.

   

 
X-Cart forums © 2001-2020