Line 115 (in red)
This will extract all the chars after the first one, rather than just the last one. While it will work with a two character sort code, maybe it needs to be corrected in light of this:// if set to nothing use products_sort_order and PRODUCTS_LIST_NAME is off
if (PRODUCT_LISTING_DEFAULT_SORT_ORDER == '') {
$_GET['sort'] = '20a';
}
} else {
$sort_col = substr($_GET['sort'], 0 , 1);
$sort_order = substr($_GET['sort'], 1);
switch ($column_list[$sort_col-1]) {
http://www.zen-cart.com/showthread.p...ulty-iteration
Suggest
$sort_order = substr($_GET['sort'], -1, 1);
Bookmarks