• Resolved el_doble

    (@el_doble)


    Hello,
    First of all I would like to say Thank you for this excellent plugin. I just have a couple of small issues that I hope you might be able to help me with. I have searched the support forum here but can’t find an answer. The problem I’m having is with the datepicker in the contact form 7 form. when I select a start date with the datepicker, dates prior to the current date are also selectable meaning it’s possible to select an end date prior to the start date and also to the current date. Also, when selecting a start date, previously booked dates are also selectable to book, Is it possible to have previously booked dates unselectable in the datepicker in the same way that you can restrict reservations by a certain number of days?
    Thank you for your time.

    https://www.ads-software.com/plugins/jm-avail-booking/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jan Maat

    (@jan-maat)

    Hi,

    Did you use in the CTF7 definition:
    [date start_date]? I think so.

    You should use for the checkin and checkout the following definitions:
    [text* start_date id:start_date] and [text* end_date id:end_date ]

    With these definitions you get all the functions which settings are in the Bookings section of the Settings menu and all the ones you asked for.

    Regards,

    Jan

    Thread Starter el_doble

    (@el_doble)

    Hi Jan,
    Thank you for your reply, yes I do have [text* start_date id:start_date] and [text* end_date id:end_date] in my form. Perhaps I have a plugin or theme conflict somewhere? Do you have any suggestions of how I can troubleshoot this issue?
    Thanks again, Joe.

    Thread Starter el_doble

    (@el_doble)

    Hello again,
    sorry to keep bothering you!
    I looks like maybe I have a jQuery conflict from another plugin. Disabling the plugin solves the issue of being able to select an end date prior to the current date and selected start date. I just want to clarify, should a date which already has a booking be unselectable(greyed out) in the datepicker of the contact form when making a new booking?

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi Joe,

    No, the already booked dates are not greyed out.

    At clicking the Send button of the CTF7 the checkin and checkout date are validated against the database. In case of a conflict an error message is shown below the checkout box. The send of the email(s) and the update of the database is aborted.

    Regards,

    Jan

    Thread Starter el_doble

    (@el_doble)

    Hi Jan,
    I see how it works now, I wonder is it possible to implement greying out or highlighting booked dates on the datepicker somehow? Just a thought.
    Thanks again for taking the time to respond, I greatly appreciate it. I will be sure to give you a five star review for this excellent plugin.
    Regards, Joe.

    Plugin Contributor Jan Maat

    (@jan-maat)

    Hi Joe,

    Thanks.

    I keep your remark in mind for further development.

    Regards,

    Jan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Contact form 7 datepicker’ is closed to new replies.