Changing the Default Product Sort Order
Posted: Thu Jul 09, 2009 5:50 pm
Here are instructions for changing the default sort order from Featured to something else in the Category view. In this example, we'll change the default sort order from Featured Products to Product Price in ascending order.
If you have any questions, feel free to contact Novista Web @ http://www.novistaweb.com
If you have any questions, feel free to contact Novista Web @ http://www.novistaweb.com
- Open /includes/classes/class.category.php
At around line 211 you'll see "public function SetSort()". Look for "case priceasc" a few lines down.
Copy "priceasc" and replace the word "featured" in the $sort = "featured" which you will find a few lines above. If you want to sort by review, you'd replace "featured" with "avgcustomerreview".