How to add custom field in search form?

For Property Listing and Hotel Booking Portal #02, and templates with visual forms support:

Please follow guide from template, like:

http://geniuscript.com/wbooking/user_guide_theme/#!/custom_search_form

For Real Estate Agency Portal script or manually build forms:

Depends on which template file you using, for example: templates\bootstrap2-responsive\components\search-filter.php line around 23, add additional input… (You should not copy paste from this website, but from your file and modify, because of possible “quote” formatting issues or changes in your script version)

Example to find FROM some number:

<input id="search_option_20_from" type="text" class="span2" placeholder="From bedrooms" />

Example to find TO some number:

<input id="search_option_20_to" type="text" class="span2" placeholder="To bedrooms" />

Example to find EQUAL, same number:

<input id="search_option_20" type="text" class="span2" placeholder="To bedrooms" />

For this situation example you also need to change field type to short input  in Administration…

Also very helpfully for customization is example search form, so check out code in this and other search form files: search-filter.php

For new inovative search form on right side:

Also templates\bootstrap2-responsive\components\search-filter.php and additional templates\bootstrap2-responsive\page_homepage-filters.php, lines 153-209, same field on 2 places, one time in above mentioned files.

NOTICE: Don’t removed top primary searchbar, this custom search can’t work without primary top, so you should restore top search. If you want to hide it you can hide via css (style=”display:none;”), but not remove completely from HTML!

For >=v1.5.4 If you want that textfield become numeric searchable you should add in database “property_lang” table, add
field_136_int in type int. Then resave all properties. 136 is example of field ID.

For >=v1.5.6 If you want that textfield become numeric searchable Admin->Real estates->Fields->Edit wanted and click on “Enable numeric filtering”:

Screenshot_1

After that you should resave all properties

For >=v1.5.7 right search form is moved to widget:

templates\bootstrap2-responsive\widgets\right_customfilter.php