Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


grwd

Recommended Posts

Posted

:?: Does any one know how to make the default sort for products by decending price? (i.e. highest price first)

Thank you,

Tim

Posted

There is a thread that describes how to set the default ... try a search for default sort

 

I will try to hunt it up ...

Posted
There is a thread that describes how to set the default ... try a search for default sort

 

I will try to hunt it up ...

 

Thank you! I found it! :)

Thank you,

Tim

Posted

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

Posted
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

Posted
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

Posted

Thanks! Just makes it easier for the next person feeling confused and lost ... 8)

Archived

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

×
×
  • Create New...