dailce Posted September 2, 2005 Share Posted September 2, 2005 On index.php when you click on a product/category it will show the products listed in order alphabetically. How do I get my products sorted by price? Link to comment Share on other sites More sharing options...
dailce Posted September 2, 2005 Author Share Posted September 2, 2005 WILL THIS WORK???? Change (arround line 193)CODEif ($column_list[$i] == 'PRODUCT_LIST_NAME') { into CODEif ($column_list[$i] == 'PRODUCT_LIST_PRICE') { And change (arround line 195) CODE$listing_sql .= " order by pd.products_name"; into CODE$listing_sql .= " order by p.products_price, pd.products_name"; Then it orders by price and then by name, and there are no problems with browsing pages. Link to comment Share on other sites More sharing options...
Guest Posted September 2, 2005 Share Posted September 2, 2005 yes that should do it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.