ryangus Posted January 30, 2005 Share Posted January 30, 2005 This seems like a simple option, and it's getting late here, but I can't find how to have my product list sort by price (ascending) as default. Can anyone help? Link to comment Share on other sites More sharing options...
gevans Posted January 30, 2005 Share Posted January 30, 2005 This seems like a simple option, and it's getting late here, but I can't find how to have my product list sort by price (ascending) as default. Can anyone help? <{POST_SNAPBACK}> I could be wrong but if you look in your catalog/index.php for this code: if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) { $sort_column = PRODUCTS_LIST_NAME; $sort_order = 'a'; and change the PRODUCTS_LIST_NAME; to PRODUCTS_LIST_PRICE; that should do what you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.