Your address will show here +12 34 56 78

This topic contains 10 replies, has 2 voices, and was last updated by  Anna 3 years, 4 months ago.

  • Author
    Posts
  • #16079

    Mockba

    Hi there,

    Just wanted to add some search functions into the Advanced Search Panel. I’ve removed type filters (Lines 87-98 from googlemapforms.php). I want to add features eg from the image below:

    https://www.dropbox.com/s/sospegptmsz74me/ss.png

    Any help is really appreciated.

  • #16476

    crerem

    I;m not sure i understand what you want to add and where do you want to add , but

    The code for checkbox list is in libs/templates/adv-search1.php . For first row look around line 44 and for the second around line 61.

    Come back with more details if this is not what you need and good luck 🙂

  • #16511

    Mockba

    Let me describe you this way:

    This is the current theme function:
    https://www.dropbox.com/s/ydn26knzey5b5fc/ss3.png

    What I need is to list “amenities and features” e.g attic, wine cellar, gym, pool, balcony etc. instead of “properties categories” e.g apartments, condos, villas etc.
    https://www.dropbox.com/s/sospegptmsz74me/ss.png

    Settings are located in googlemapforms.php at line 3-7. There’s a category for properties but there’s no category or section for the “amenities and features”
    https://www.dropbox.com/s/smkhsgrtdo7rn99/ss4.png

    My question was how to list “amenities and features” in the advanced search widget.Is there any easy way to list it or do I have to create another category for the “features”?

  • #16902

    crerem

    OK, I think i understand now.

    You have a looooooooot of work to do and you need to be fluent in php, html, css and js . These are general steps , doing this in detail will take a lot of time.

    first of look into single-estate_property.php around line 325 and see how the list of features and amenities is read.

    then in adv-search1.php – put the code that reads the features and add the checkboxes

    i suggest that all those checkbox inputs to be sent as array to advanced-search-results.php

    then in advanced-search-results.php you need to construct a query that will filter the listings according to your search input data.

    If you want the same behaviour on the map – you need to add those ammenities in a transporting array to js. This is done in function listing_pins() in pin-management

    The you need to read the click events on the new checkboxes and in the google js files to set visible/invisible the pins

  • #19140

    Mockba

    I’ve followed different way tho. Listing the arrays into the advanced search option was much more easy.

  • #19156

    Mockba

    Can you please tell me where I can set the default array for the “features listing?”
    If you don’t check the box on the front end, database record it as blank. ( see the attachment)

    I couldn’t find the code where you can set any default.

    https://www.dropbox.com/s/sospegptmsz74me/ss.png

  • #19263

    crerem

    What do you mean by default array ? When is installed ?

  • #19890

    Mockba

    Nevermind. Found it!

  • #41115

    Tony

    I don’t have the programming skill of Mockba, and I quickly realized that Advanced Search seems more like basic search when it doesn’t have the ability to search filters by Property Features such as “Furnished, Unsurnished, Serviced, Unserviced, Pool, Garage, Fitness Center, Tennis Court, etc. etc.
    I assume this is what Mockba is trying to accomplish and I was wondering if there are any plans for allowing users to create truly Advanced Search Pages. If we can already, I’m missing it.
    I noticed that in theme options there is the “Listings Custom Fields”, so it would seem like you were on track to implementing such an Advanced Search feature, but Alas I am at a loss.
    If I am missing something, please direct me. Otherwise, will we ever get truly Advanced Custom Search fields/pages.

    Thanks,
    tony

  • #41360

    Tony

    Bump

  • #41475

    Anna
    Keymaster

    Hi Tony,

    Thank you for the post.

    Adding Features and Amenities in Advanced Search is something we don’t have now, but we plan to add in the future, after we release the booking plugin. Wishlist looks like this:

    – booking plugin
    – email search alerts
    – features and amenities in advanced search (we will go with one type probably type 4 – because it has the most space)
    – user profile custom fields
    – floor plan plugin

    Thanks again for the suggestion.

    Anna

You must be logged in to reply to this topic.