Forums › Forums › Search & Filter Pro › Woocommerce : problems with search after upgrade version from 2.5.0 to 2.5.2
- This topic has 8 replies, 2 voices, and was last updated 4 years, 2 months ago by
Trevor.
-
Anonymous(Private) December 15, 2020 at 3:37 pm #269894
Hello!
Since I have upgrade the version from 2.5.0 to 2.5.2, I can’t get my search works correctly:
Configuration:
Woocommerce + custom theme (_s) with woo custom fields in functions.php + WPML
Everything is update, woocommerce database also.symptoms:
1. When I make a search, with or without AJAX, the search no return results:
query string: /?_sfm__weight=0+4200&_sfm__length=0+530&_sfm__width=0+330&_sfm__height=0+230&_sfm__diameter=0+300
If I do search without range selector, works perfectly.
If I change the querystring and mantain only 1 parameter, works perfectely.
Field relationships: “AND”Thanks in advance.
RuiTrevor(Private) December 16, 2020 at 5:33 pm #270039With the example search that you gave me, you are trying to find products that are both ‘astrays’ AND ‘bowl’ at the same time. That is unlikely to happen. The AND is set here:
https://www.screencast.com/t/xKZYWbvGXlW
I think it needs to be ‘OR’.
Trevor(Private) December 17, 2020 at 3:43 pm #270165Range controls do act (intentionally so) oddly, in some circumstances.
They assume that all posts have a value set in the field(s) they are based on. If any post does not have a value in ANY of the range fields, it will not appear in the results. This only applies to range type controls.
The simplest way to test this is to change the form fields/controls to the Choice type and see what happens.
-
AuthorPosts