Jet200 Posted October 18, 2007 Share Posted October 18, 2007 Products in my categories seem to be sorting alphabetically. http://www.jet200.com/catalog/index.php?cPath=4 I'd like to be able to dictate how they sort. Thanks Link to comment Share on other sites More sharing options...
Gauravs Posted October 18, 2007 Share Posted October 18, 2007 Default sorting is by product_name... you would find the line below in index.php $listing_sql .= " order by pd.products_name"; You may replace pd.products_name - to the field you would like to use for sorting. Cheers GS Best Regards,Gaurav Link to comment Share on other sites More sharing options...
Jet200 Posted October 18, 2007 Author Share Posted October 18, 2007 that seems easy enough, but where are these fields defined? i wouldn't know what to put there Link to comment Share on other sites More sharing options...
Jet200 Posted October 19, 2007 Author Share Posted October 19, 2007 i've searched and searched but cannot find where these things are defined. really need some help with this as it just looks stupid having the products sort by alphabet. otherwise i will have to resort to some lame product names ;) Link to comment Share on other sites More sharing options...
Guest Posted November 5, 2007 Share Posted November 5, 2007 Hey why don't you take that line of code $listing_sql .= " order by pd.products_name"; and change it to your product id $listing_sql .= " order by p.products_id"; this way its how you insert the products not by the name. :thumbsup: Link to comment Share on other sites More sharing options...
ReBeL Tech Posted November 23, 2007 Share Posted November 23, 2007 Default sorting is by product_name... you would find the line below in index.php $listing_sql .= " order by pd.products_name"; I do not see this line in index.php Link to comment Share on other sites More sharing options...
picard102 Posted November 30, 2007 Share Posted November 30, 2007 I do not see this line in index.php How do I reverse the order though. It displays the product ID in descending order, I want it in ascending. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.