Support » Plugin: WPCasa » Search Form

  • Resolved andyt1980

    (@andyt1980)


    Hi,
    Can the search widget have pre-defined values for the Min/Max price range as a drop-down?
    e,g)
    Min Max
    £50,000 £80,000
    £60,000 £90,000
    £70,000 £100,000

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Joe Hana

    (@joehana)

    Hello,

    this is possible with a code snippet:

    /**
     * Display price (min/max) select
     * dropdowns instead of text fields
     */
     
    add_filter( 'wpsight_get_search_fields', 'custom_search_form_details', 50 );
    function custom_search_form_details( $fields ) {
        // Set price (min) to select
    	$fields['min']['type'] = 'select';
    	
    	// Set price (min) select options
    	
    	$fields['min']['data'] = array(
    		'100000' => '100.000',
    		'200000' => '200.000',
    		'300000' => '300.000',
    		'400000' => '400.000'
    	);
    	
    	// Set price (max) to select
    	
    	$fields['max']['type'] = 'select';
    	
    	// Set price (max) select options
    	
    	$fields['max']['data'] = array(
    		'500000' => '500.000',
    		'600000' => '600.000',
    		'700000' => '700.000',
    		'800000' => '800.000'
    	);
    	
    	return $fields;
    }

    Please avoid any currency signs within this code snippet, otherwise the search will return weird results.

    If you do not know where to place this code you might want to use the Code Snippets Plugin and add the code there.

    All the best,
    Joe [WPCasa]

    Great thanks.

    Also, can postcode search be added to the search form?.

    • This reply was modified 2 years, 5 months ago by  andyt1980.
    • This reply was modified 2 years, 5 months ago by  andyt1980.
    Plugin Author Joe Hana

    (@joehana)

    Hello,

    Search by Location is already available. Location is basically a taxonomy. You can either use it for Location Names or Location Post Codes.

    All the best,
    Joe [WPCasa]

    Great thanks.

    Just a couple more questions, can Auctions be added to the property listings type, so there would be For Sale, For Rent and Auctions?.

    Also, in your Oslo demo on this listing: http://demo.wpcasa.com/oslo/listing/2-bedroom-semi-detached-house-in-ullern/ it has a slider at the top of the page, is this possible with the plugin and any other theme?

    Plugin Author Joe Hana

    (@joehana)

    Hello,

    1. Custom Offer
    To add a custom offer, you can use this snippet.

    2. Slider
    Sliders are more of theme-territory. We’ve included sliders in our own themes. If you use a 3rd party theme you need to check if it has also a slider included and if not you should still be able to use a 3rd party slider plugin of your choice.

    Please consider to open a new thread for new questions, so that the thread title will not be misleading and others will do easier to find help. Thank you.

    All the best,
    Joe [WPCasa]

    Excellent Thank you.

    Regarding sliders, I knew I could use a 3rd party slider, but I wondered if there was some way the images you add were integrated into the plugins interface or whether the slider was added independently.

    Regarding Post Code search, this doesnt seem to behave the way I would expect it to. I added a test property with the post code ML3 7DP, I then entered my current location as ML3 6RU in the search box but it didnt find the listed property.

    It only finds the property if I enter either the area code ML3 or the exact post code of the property.
    Most online real estate agents sites have a search mile radius functionality, is something similar not possible?

    Plugin Author Joe Hana

    (@joehana)

    Hello,

    1. Slider
    WPCasa uses the default WordPress approach with having the listing images as “attachments” to the specific listing (post). So any slider plugin which can “read” the “attachments” of a listing can display them. So WPCasa does not use custom fields to store images or something.

    2. Search
    Well, you could basically separate those and have Area Code as a children for the Post Code but I’m not sure if this looks appealing and clear. I’m not sure about an alternative solution here for you.

    3. Radius Functionality
    No, we do not have this kind of feature available yet but we have it on our list. But to be honest – it gets not pretty much often requested. In fact it has been requested around 3 times in the last 5 years (with many thousands of users), so it can take a little bit until we can release a plugin for that.

    Thank you for all your prompt and helpful replies.

    I’m thinking it may be best for me to remove the general search box and just have the location drop-down. I believe I can use one of the custom filter snippets to do this.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Search Form’ is closed to new replies.