This plugin adds reservation units to the Reservations plugin.
- define your own units - tables, cars, rooms, lectors
- each unit has minimum and maximum capacity
- unit prices and additional charges
- an upgraded reservation form with the capacity picker available
- each unit is automatically attached to every new reservation
- each unit has availability validation, also for backend changes
Before use be sure you have Reservations installed.
How it works
Special reservation form contains extra field quantity
, which is automatically updated depends on selected time and your minimum and maximum unit's capacities. Loading of available time slots is also redesigned to works with units - in one time-slot could operate more units.
After sending reservation, the first available unit will be automatically attached. This unit is then available at backend listing and also at reservation detail. This unit can be changed to another else (backend validation included). Enriched are also reservations export and Reservations Calendar plugin.
Time-slot for each unit can't be shared with more reservations. If someone order table for two with capacity 4, other two seats are not available for another booking.
Before installation be sure you have Reservations installed.
When you have some reservations in database before installation, all reservations will be attached to the first unit and quantity will be set to 1.
After installation just use the updated "Reservation form with units" component and that is all.
Reservation form events
Reservation form field "capacity" has event updated
which can be used for updating your own capacity pickers:
// example of using hernansartorio/jquery-nice-select jQuery library $('.persons-select').niceSelect(); $('.persons-select').on('updated', function () { $(this).niceSelect('update'); });
You can also use global variables minimumCapacity
and maximumCapacity
.
Licence
Icon made by Freepik from www.flaticon.com.
-
Rael Vaz
Found the plugin useful on 3 Sep, 2023
Hey! This is a great plugin and very useful.
I would like to suggest a small change in the Units extension: In the scope "scopeAvailableAt()" in the Units model, it could contain "notCancelled()" to handle canceled dates.
-
Co
Found the plugin useful on 2 Feb, 2018
Hello I downloaded your plugin reservations unit for octoberCMS. I put my site on line with the calendar but I have an error when I click on the button "submit" of the form. the error is "Method [validateReservationQuantity] does not exist."
Can you help me please thank you in advance
-
Vojta Svoboda author
Replied on 5 Feb, 2018
Hi Co, I'm so sorry for this trouble. Could you please run Update from your CMS backend area? I just made a fix. Thanks, Vojta
-
mike
Found the plugin useful on 15 May, 2017
Hi, the unit plug verion is 1.0.2, and here is my error in my Reservations Units after I installed
Call to undefined method VojtaSvoboda\ReservationsUnits\Classes\TimeSlotsResolver::getInterval()
-
Vojta Svoboda author
Replied on 15 May, 2017
Hi Mike, I'm so sorry for this trouble. Could you please run Update from your CMS backend area? I just made a fix. Thanks, Vojta
-
1.1.3 |
Fix saving empty unit price. Sep 19, 2019 |
---|---|
1.1.2 |
Refactor registering validator. Feb 05, 2018 |
1.1.1 |
Fix uninstalling plugin when Reservations plugin is already deleted. Feb 05, 2018 |
1.1.0 |
Add working hours, opening days. Load config from backend. May 18, 2017 |
1.0.3 |
Update TimeSlots resolver because of changes in Reservation plugin. May 15, 2017 |
1.0.2 |
Add price to the units May 09, 2017 |
1.0.1 |
First version of Reservations Units Mar 08, 2017 |