To reverse it ... you would need to leave the setting blank and then customize the code in the:
/includes/index_filters/default_filter.php
There is a section that sets the blank which is converted to 20a to:
PHP Code:
// sort by products_sort_order when PRODUCT_LISTING_DEFAULT_SORT_ORDER is left blank
// for reverse, descending order use:
// $listing_sql .= " order by p.products_sort_order desc, pd.products_name";
$listing_sql .= " order by p.products_sort_order, pd.products_name";
break;
Switch the commented line so you are using the desc ...
NOTE: There is not an override for this file ...
You will need to decide if there is a benefit to this on searches ...
/includes/modules/pages/advanced_search_result/header_php.php
This is the code:
PHP Code:
} else {
// sort by products_sort_order when PRODUCT_LISTING_DEFAULT_SORT_ORDER ia left blank
// for reverse, descending order use:
// $listing_sql .= " order by p.products_sort_order desc, pd.products_name";
$order_str .= " order by p.products_sort_order, pd.products_name";
break;
Note the $listing_sql needs to be changed to $order_str if you make the change here ...
Bookmarks