Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing default product sort to Decending Price - How???


grwd

Recommended Posts

And if you post that thread URL here ... then I don't have to go hunt it down ... :D

 

Here it is!

if ( !$HTTP_GET_VARS['sort'] ) {

 $HTTP_GET_VARS['sort'] = '4d';

 $sort_order='d';

}

Thank you,

Tim

Link to comment
Share on other sites

And if you post that thread URL here ... then I don't have to go hunt it down ... :D

 

:oops: Now heres the WHOLE thing!:oops:

Well, you know you can click the titles to change the sort order to which ever order you want on the product listing.

 

What you need to do is change the default order that is being used.

 

Something like this in the start of default.php works:

 

if ( !$HTTP_GET_VARS['sort'] ) {

 $HTTP_GET_VARS['sort'] = '4d';

 $sort_order='d';

}

Thank you,

Tim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...