Kairion
Forum Replies Created
-
So there’s to way I can do something like that?:
if(reference != “”) {
// use search just with code parameter
}
else {
// run search with all filled parameters
}I just want to know where should I do it, and I’d do the job by myself.
You need to use the supermap add-on (you’ll have to “buy” it from Usability Dynamics website, even if it’s actually free (just add it to your cart and create an account)) that you can get from here:
https://www.usabilitydynamics.com/product/wp-property-supermapOn Madison theme they are automatic populated from prices, bedrooms and bathrooms from all properties on already added to WordPress.
You can do that adding an attribute, selecting it as searchable and its search input field as DropDown Selection (leave its options blank).
If you want to show specific (and limited) values, just follow this link:
https://www.usabilitydynamics.com/product/wp-property/docs/how-to-add-auto-populated-field-to-wp-property-searchEven if I set it to strict search, if someone writes a “Reference code” and another field (e.g. selling price, city, area etc.) it wouldn’t show the property if the other fields have different data from the property.
So what I need is to ignore all the other fields if “reference code” has text, so the search would work.