PDA

View Full Version : Sort Products By Dropdown



michael_s
10-18-2007, 01:01 PM
All regards for this great contribution and easy to follow readme.txt belongs to homewetbar

This v1.2.1 (FULL VERSION):
1.) Is correcting the missing `order by` in the readme.txt here.
See: http://forums.oscommerce.com/index.php?showtopic=213587&st=20#
case 'PRODUCT_LIST_NAME':
$listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
break;
case 'PRODUCT_LIST_30SALES':
$listing_sql .= " order by p.products_recent_sales desc, pd.products_name desc";
break;


2) Is additionally removing some spaces in file and directory name, which would making you mad on *nix systems otherwise.









More... (http://addons.oscommerce.com/info/4312)