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:
specifically, line 436. there is an extra period. try removing the period (in red above) to: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; } }
while i have not implemented this add-on, that period definitely looks wrong to me, and fits the description of your error.Code:$order_str = " order by p.products_sort_order, pd.products_name";
let us know if that solves it!
best.
I really appreciate your help :)
The good news is that after deleting the period then I do not get the error message!
The bad news is the sorter does not actually sort!
The debugger shows for case "sort ascending"
(includes/modules/pages/advanced_search_result/header_php.php line 366) $multi_sort= order by p.products_price_sorter
(includes/modules/pages/advanced_search_result/header_php.php line 375) $order_str= order by p.products_price_sorter
Tedious innit!
Ok, I have revisited this and found I had done mods and never uploaded them...
So, please use this new fileset and report back
https://github.com/torvista/zen-cart...listing_sorter
and note that regarding the issue with the extra dot or not, both statements should have the dot so it IS a bug in 1.55, fixed in 1.56.
https://github.com/zencart/zencart/b...header_php.php
I tested this in a ZC155f new installation.
Last edited by torvista; 12 Sep 2018 at 06:57 PM.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Great, thanks.
No more error messages and the various sort options all work fine.
I just did a quick test by loading the files into my ZC155f test system without doing any of the required merging.
All the folders named classic I renamed as "my-template".
I will now withdraw my claim to be "the idiot"! :)
Many thanks everyone, really, really appreciated :)
That's good to know, I could not face any more time staring at the ZC sorting code, it makes your head spin.No more error messages and the various sort options all work fine.
If you are sure that ALL indeed works fine, I'll upload this version....
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...