Displaying the search criteria submitted in a search form on a search results list page
11 posts by 2 authors in: Forums > CMS Builder
Last Post: December 31, 2013 (RSS)
By Dave - December 31, 2013
Hi Jerry,
If the price field is empty it throws the _max searches off because it includes all of the blank fields
So how exactly do you want it to work? Shouldn't setting a max price show listings without a price since "no price" is less than whatever the max price is?
One thing you can do is set default values in your search results page before you call getRecords() like this:
if (!@$_REQUEST['price_min']) { $_REQUEST['price_min'] = "0.01"; }
// or
if (@$_REQUEST['price_max'] && !@$_REQUEST['price_min']) { $_REQUEST['price_min'] = "0.01"; }
I'll respond your email as well, so wait for that before you post back (should be a few minutes).
Let me know any questions.
interactivetools.com