I need to assign my “availability.slots” for a chosen event to a datepicker.
I can grab the initial availability slots for the chosen event and i’m just looking at documentation on how to format the data to send to the datePicker.
How to to assign the available dates to the picker and disabled the dates that are not available?
Is there any mechanism that does this all in one go - fo example plugging the datePicker into an event, so it can automatically get the available slots and only make those dates/times available?
Thank you kindly for your response, I did start going down this route and your reply confirms it’s a good route to go! Appreciate the code example too.
Next I am wondering how to display a calendar (without building one) that is open (like in the prebuilt booking system), and not have the datepicker…
@sonicswapstu You cannot use the calendar widget if you intervene the out-of-the-box bookings flow by using a Velo code.
In this case you need to use datePicker and imitate the regular booking flow.
You can use my code example for showing the available dates.
Then, once the date was selected, filter the slots by the selected date.
Then, start your payment and make a book.
Hello, not sure if this issue is still open but I’ trying to use this sample code (from first comment) from @jacobg but can’t manage to increase the availability showing to more than 5 days.
I tried the example on the wix-bookings API to pass AvailabilityOptions but it is still retrieving only the first 5 available dates.