How to only allow bookings until a certain date (eg. one year from now)?
Let’s say you don’t want to allow bookings further than one year in the future. You have two options for preventing customers from making bookings too far away in the future.
Using the Booking Restrictions add-on.
- Go to WP Booking System → Forms
- Select your form
- Go to the Booking Restrictions tab
- In the “Advance Reservation” option, set the Max period to 365 days.
This will not allow the customer to book more than one year in the future, starting from the current date. This restriction is always calculated from today’s date, so it will always be 365 days from today.
Using a custom legend item.
- Go to WP Booking System → Calendars
- Select your calendar
- Create a new legend item (eg. a grey one called Unavailable)
- Make sure to set it as not bookable.
- Using the Bulk Editor, assign the new legend item to all the dates from one year in advance until 2050.
This will visually block the calendar. As time goes by, you will have to edit the calendar availability to free up the dates.