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)
-   -   Category Sorting Problem (https://forum.x-cart.com/showthread.php?t=1285)

bloomis 01-25-2003 11:34 AM

Category Sorting Problem
 
I would think that if I set up 10 categories and assign them all the position of "1" then they would automatically sort alphabetically. It doesn't seem to work. Please tell me there is a way to fix this. I don't want to have to tell my client she will have to manually figure out how to sort :cry: alphabetically.

Thanks!

funkydunk 02-07-2003 12:17 AM

This is possible:

You will need to edit includes/categories.php and look for the line that is:
Code:

$categories_data = func_query("select $sql_tbl[categories].*, 0 as product_count from $sql_tbl[categories] ".($current_area=="C"?"where $sql_tbl[categories].avail='Y' $membership_condition ":"")." group by $sql_tbl[categories].categoryid order by ".($current_area=="C" ? "order_by" : "category"));
to be:
Code:

$categories_data = func_query("select $sql_tbl[categories].*, 0 as product_count from $sql_tbl[categories] ".($current_area=="C"?"where $sql_tbl[categories].avail='Y' $membership_condition ":"")." group by $sql_tbl[categories].categoryid order by ".($current_area=="C" ? "category" : "category"));

This will effectively disable the order by column and make it order by category name.


All times are GMT -8. The time now is 04:45 PM.

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