Sorting does not work on quicksearch results archives
-
leomoonParticipant4 years, 1 month 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.
leomoonParticipant4 years, 1 month ago #13687I’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.wpsolrKeymaster4 years, 1 month ago #13870Here is a beta version with a fix to manage custom taxonomies with WooCommerce:
https://www.dropbox.com/s/5h954kixzhuckzb/wpsolr-pro-woocommerce-custom-taxonomies.zip?dl=0
You must be logged in to reply to this topic.