Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Default Sort-Criteria In Category-View


JoxWayne

Recommended Posts

Posted

Hallo,

is it possible to change the default order criteria of the product listing page? In my shop, the standard criteria is product name and I wish to set it to Item-No.

 

Is there a possibility to handle it?

 

Jox

Posted

you change it in the catalog\index.php

 

Change

 

		if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
	  $HTTP_GET_VARS['sort'] = $i+1 . 'a';
	  $listing_sql .= " order by pd.products_name";
	  break;
	}

 

to:

		if ($column_list[$i] == 'PRODUCT_LIST_MODEL') {
	  $HTTP_GET_VARS['sort'] = $i+1 . 'a';
	  $listing_sql .= " order by p.products_model";
	  break;
	}

Archived

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

×
×
  • Create New...