Guest pghtech Posted September 2, 2008 Share Posted September 2, 2008 How can I make it so that the products get listed alphabetically automaticallly? without the user having to select 'name' and clicking the sort button. Basically, I want to do away with the sort option and just have the products be listed alphabetically. No one has any idea how I can get the sort feature to work automatically>? Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted September 4, 2008 Share Posted September 4, 2008 The file that generates the SQL query (to fetch items from within a particular category) is in: includes/content/viewCat.inc.php It should already be sorting by name alphabetcially already thanks to this line: if (empty($orderSort) || strstr($orderSort, 'SearchScore')) $orderSort = sprintf(' ORDER BY name ASC'); Quote Link to comment Share on other sites More sharing options...
Guest pghtech Posted September 4, 2008 Share Posted September 4, 2008 Thanks Brivtech. Quote Link to comment Share on other sites More sharing options...
tomoharu Posted March 14, 2009 Share Posted March 14, 2009 Apologies for digging up an old thread, but my new products always display at the end of a category's page(s). I'm running 4.30, and have reinstalled viewcat.inc.php, but it still does this. Is there any easy fix to sort them by name? I don't need an entire mod for something it's supposed to do anyway. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.