Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how can i change default sort order?


hirev

Recommended Posts

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

Archived

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

×
×
  • Create New...