ok. i'm going to go with i was wrong.... and you are too marton_1; you are not an idiot as you say! ;)
this looks to be a bug in the code! especially since you loaded it without merging. in:
\includes\modules\pages\advanced_search_result\header_php.php
lines 425 -439:
Code:
//die('I SEE ' . $_GET['sort'] . ' - ' . PRODUCT_LISTING_DEFAULT_SORT_ORDER);
if ((!isset($_GET['sort'])) || (!preg_match('/[1-8][ad]/', $_GET['sort'])) || (substr($_GET['sort'], 0 , 1) > sizeof($column_list))) {
for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
if ($column_list[$col] == 'PRODUCT_LIST_NAME') {
$_GET['sort'] = $col+1 . 'a';
$order_str = ' order by pd.products_name';
break;
} 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;
}
}
specifically, line 436. there is an extra period. try removing the period (in red above) to:
Code:
$order_str = " order by p.products_sort_order, pd.products_name";
while i have not implemented this add-on, that period definitely looks wrong to me, and fits the description of your error.
let us know if that solves it!
best.
Bookmarks