Releases: everyday-as/craft-waitwhile
Releases · everyday-as/craft-waitwhile
1.1.6
1.1.5
- Added
craft.waitwhile.getAbsoluteBusinessHoursto accomodate Waitwhile's newest API addition inbusinessHoursByDate - Added
craft.waitwhile.getAbsoluteWaitlistHoursto accomodate Waitwhile's newest API addition inbusinessWaitlistByDate - Added
craft.waitwhile.getAbsoluteBookingHoursto accomodate Waitwhile's newest API addition inbusinessBookingByDate craft.waitwhile.getBookingTimesForDaynow usesgetAbsoluteWaitlistHours
1.1.4
- Added a birthdate field to Booking and Guest. This is a useful field a lot of people have a need for. Validation is if it's numeric and 6 in length (ddmmyy).
- The above is sent as an addition to a note as I can not seem to make custom fields work at all
- Made error messages more obvious
1.1.3
1.1.2
1.1.1
- Refactored
BookingControllerandQueueController. They now support JavaScript requests - if it's an ajax request you have to do nothing,
but if it's an axios or other request you need to set theJavascript-Requestheader to 1 or true.
When sending JavaScript requests you need to deal with the error and redirect logic yourself. - Set response in waitwhile session for
BookingControllerjust likeQueueControllerdoes - Added
start_real_unix_msto times array forWaitwhile@getBookingTimesForDay - Use
Controller@asJsoninstead ofjson_decode
1.1.0
- Added a
Waitwhile@getBookingTimesForDay('YYYY-MM-DD')method that returns an array with the available times on the given day - Added a
Booking::formatBookinsmethod, only used internally - Added a booking length setting (in minutes)
- Added
everyday-waitwhile/booking/timesaction
1.0.6
- Added support for a hidden input field called
country_codein submission for actioneveryday-waitwhile/queue
(input is without +, only the actual country code) - Added
notesinput to Queue and Booking - Added same validation Guest received in 1.0.5 to Booking
- Make sure some fields truly are optional
- Require PHP 7.0 or above
1.0.5
- Added a
Waitwhile@getBookingsmethod - Added a
Waitwhile@getResourcesmethod - Create a
Waitwhile@getSessionmethod for theWaitwhileclass to expose the API response on the following page - The above means that
craft.waitwhile.getSessiongrabs the previous API response - Added validation rules for email and phone fields for the
Guestmodel
1.0.4
- Added localization
Waitwhile@createWaitingGuestnow adds a waiting guest to Waitwhile- Added a
everyday-waitwhile/frontend/queue-formtemplate for submitting aWaitwhile@createWaitingGuestaction - Added a
BookingController, aBookingmodel andcreateBookingmethod