Availability Date Search

Viewing 7 posts - 1 through 7 (of 7 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #6093
    darren
    Spectator

    I see there is the Date Available field on each property.

    Now I realize that it is currently just a text field, but I was wondering if there would be any way to use that in the search box shortcode to filter results by date available.

    The way I was thinking about trying to standardize this was to add a jQuery datepicker to the post edit and search box screens so the user can’t enter bogus dates. I see in the shortcode for the search box you do a bit of SQL searching for used property types so I imagine you could use the same approach with a standardized datepicker. You could do something along the lines of filtering the search results if their available date is greater than (after) the date they choose (if a date is chosen).

    I’m very interested in your input on how to implement this. Not only do I have a client requesting this feature, but I believe your plugin would greatly benefit from having this feature added to core.

    #6097
    Merv Barrett
    Keymaster

    Great idea, the auction fields and the sale fields have this functionality

    #6099
    Merv Barrett
    Keymaster

    Moving this and your other topic to feature request

    #6103
    darren
    Spectator

    Okay, that’s great to hear: two questions remain.

    1. What’s the estimated release of this feature.
    2. Could anybody on your support team give me an idea on how to add this to my custom built site?

    I’m quite familiar with writing code, and I’m guessing it wouldn’t be difficult for one of your developers to assist me in adding it, if at least temporarily.

    #6227
    Merv Barrett
    Keymaster

    I’m just finishing documentation and release notes for 2.1

    Its not that easy to edit yours to do it. I’ll be pushing the pre-release 2.1 to github here.

    #6230
    Merv Barrett
    Keymaster

    It is actually very easy for you to make the change…. I made changes and then realised what I did was not necessary.

    Open plugins/easy-property-listings/lib/meta-boxes/metaboxes.php

    Search for property_date_available

    you will see

    array(
    	'name'		=>	'property_date_available',
    	'label'		=>	__('Date Available', 'epl'),
    	'type'		=>	'text',
    	'maxlength'	=>	'100'
    )

    change 'type' => 'text', to 'type' => 'date',

    #6244
    Merv Barrett
    Keymaster

    Sounds like a great idea but how can this possibly work?

    It would be next to impossible for the user to maintain this and how can the end user actually select the date?

    I’ll leave this for another release as we do want to better support short term accommodation listings. But its a considerable amount of coding required and thinking about the best way to implement it.

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Feature Requests’ is closed to new topics and replies.