Releases: everyday-as/craft-waitwhile
Releases · everyday-as/craft-waitwhile
1.1.6
1.1.5
- Added
craft.waitwhile.getAbsoluteBusinessHours
to accomodate Waitwhile's newest API addition inbusinessHoursByDate
- Added
craft.waitwhile.getAbsoluteWaitlistHours
to accomodate Waitwhile's newest API addition inbusinessWaitlistByDate
- Added
craft.waitwhile.getAbsoluteBookingHours
to accomodate Waitwhile's newest API addition inbusinessBookingByDate
craft.waitwhile.getBookingTimesForDay
now 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
BookingController
andQueueController
. 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-Request
header 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
BookingController
just likeQueueController
does - Added
start_real_unix_ms
to times array forWaitwhile@getBookingTimesForDay
- Use
Controller@asJson
instead 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::formatBookins
method, only used internally - Added a booking length setting (in minutes)
- Added
everyday-waitwhile/booking/times
action
1.0.6
- Added support for a hidden input field called
country_code
in submission for actioneveryday-waitwhile/queue
(input is without +, only the actual country code) - Added
notes
input 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@getBookings
method - Added a
Waitwhile@getResources
method - Create a
Waitwhile@getSession
method for theWaitwhile
class to expose the API response on the following page - The above means that
craft.waitwhile.getSession
grabs the previous API response - Added validation rules for email and phone fields for the
Guest
model
1.0.4
- Added localization
Waitwhile@createWaitingGuest
now adds a waiting guest to Waitwhile- Added a
everyday-waitwhile/frontend/queue-form
template for submitting aWaitwhile@createWaitingGuest
action - Added a
BookingController
, aBooking
model andcreateBooking
method