Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Sort product list by price


Recommended Posts

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?


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


This topic is now archived and is closed to further replies.

  • Create New...