hirev Posted March 22, 2004 Share Posted March 22, 2004 where it lists all the products that are in a category. it always lists as "product name" as default. how can i make it so that the default sort order is "Manufacturer" always? Link to comment Share on other sites More sharing options...
hirev Posted March 22, 2004 Author Share Posted March 22, 2004 nevermind i finally saw it in the code... in index.php i changed: if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; to: if ($column_list[$i] == 'PRODUCT_LIST_MANUFACTURER') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by m.manufacturers_name"; so now i get the default sorting order to be manufacturers now. Link to comment Share on other sites More sharing options...
dantent Posted March 29, 2004 Share Posted March 29, 2004 If Index.php doesn't work, try default.php. That is the one that I had to change. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.