Sorting does not work on quicksearch results archives
3 years, 8 months ago #13618
Sorting works fine for categories, eg. https://test.antikvarijatknjiga.hr/knjige/knjizevnost/aforizmi-i-epigrami/?orderby=_price_str_asc
and it also works fine in fauceted search, eg. https://www.antikvarijatknjiga.hr/?s=krle%C5%BEa&post_type=product&orderby=_price_str_asc&wpsolr_fq%5B0%5D=pa_izdavac_str%3AOslobo%C4%91enje
But it does not work in other taxonomies, eg. https://test.antikvarijatknjiga.hr/autor/miroslav-krleza/
In that case, whatever is chosen in the sort dropdown is ignored.3 years, 7 months ago #13687
I’ve been trying to debug this all this time – yes, replace sort option was on.
Apparently, on custom taxonomy based archive pages, the $wp-query global object is not replaced by wpsolr’s, as it is on category and fauceted search results.
Also, I noticed that function wpsolr_filter_is_replace_by_wpsolr_query returns true for category pages, but false if the page displays custom taxonomy results.3 years, 7 months ago #13870
Here is a beta version with a fix to manage custom taxonomies with WooCommerce:
You must be logged in to reply to this topic.