Quote:
1: modify categories.php so that the allcategories array is sorted by position (or probably better, create a sorted allcategories array clon and working with it from the .tpl)
|
Been messing with categories.php, and I have manged to get the sub-cats to be nicely ordered by position in the admin area, but no such luck on the customer side. Here's what I have in categories.php:
Code:
if ($flag == "all")
$sort_condition = " ORDER BY $sql_tbl[categories].order_by";
else
$sort_condition = " ORDER BY $sql_tbl[categories].order_by";
}
elseif (defined('MANAGE_CATEGORIES'))
$sort_condition = " ORDER BY $sql_tbl[categories].order_by";
Any other place I should be adding an order_by??? Thanks in advance!