Product Icon

Checkout Field Editor for WooCommerce

Optimize your checkout process by adding, removing or editing fields to suit your needs.

Datepicker: Set Days which cant be booked

For example the sunday shouldnt be bookable on my store. please leave space for me to black it out generally.

Author

Current Status

Open

Last updated: July 17, 2018

3 comments

Log in to comment on this feature request.

  1. Damien Carbery says:

    There is an example in the documentation about changing the Date Picker settings: https://woocommerce.com/document/checkout-field-editor/#extending-the-date-picker-year-range

  2. Damien Carbery says:

    While waiting for the developers to implement this you should be able to write custom JavaScript to disable some dates.
    It looks like the plugin uses jQuery DatePicker.
    I blocked out some dates for client that used a different checkout field editor plugin (but both use jQuery DatePicker): see the ‘disabledDates’ parameter in https://gist.github.com/damiencarbery/1e0e38cb1befe4acb5071a00dc2cfd1c#file-use-cmb2-block-delivery-dates-php-L92

  3. Tu Pham says:

    This seems obvious, yet i had to explain this several times to customer support who then just referrred me to an alternate extension published by another developer.

    Is there a way you can at least validate it after selection to tell the user to change their selection to a date thats within the valid time/date range?

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.