Deprecated – Capacity Concept (versions 9.7.7 or older)

Deprecated for Update 9.8 or newer

Description
In the Booking Calendar Business Large or higher version, each calendar, which represents a booking resource, can have its own specific capacity. Here's how this capacity feature works:

Setting Capacity. You can assign a capacity value to each calendar (booking resource). This capacity represents the maximum number of bookings that can be accepted for specific dates.

Booking Options. When visitors interact with the booking form, they can choose how many items they want to book within a specific calendar. If the total number of bookings for the selected dates or times does not exceed the calendar's capacity, they can proceed with their reservations.

Preventing Overbooking. The capacity feature serves as a safeguard against overbooking. It ensures that the total number of reservations for specific dates within a calendar does not surpass the specified capacity. Once the capacity is reached, no more bookings are accepted for those dates or times until existing reservations are canceled or modified.

Versatile Usage. This functionality is versatile and can be applied to various scenarios where you need to manage and limit bookings for specific resources. Whether it's hotel room reservations, restaurant table bookings, event space rentals, or parking slot allocations, the capacity feature ensures a smooth and controlled booking process.

By allowing you to set and manage capacity for each calendar (booking resource), the Booking Calendar plugin ensures efficient booking operations while preventing overbooking, providing a user-friendly experience for both administrators and visitors. The main or master booking resource in each group of related resources helps coordinate this capacity management.

Configuration
If you are need to configure the booking resource(s) with some capacity, so you are need to add the "child" resources to your "parent" resource at the top form of Booking > Resources admin page. 
Just create one resource, and then create several child resources (set parent resource for them as a first resource), so the capacity of the first resource will increase.
Capacity it's number of times, which is possible to reserve the same date in calendar, based on number of selected visitors in the booking form. Resource its more like room, where is possible to be several seats for the visitors. 

Here is examples of different configuration of capacity settings.

The availability (number of seats/maximum amount of people ) can be calculated only based on the "visitors" shortcode (shortcode

[select visitors "1" "2" "3" "4" "5"]
in the Booking > Settings > Fields page at top form ). Its can not calculate availability based on the adults or children shortcodes.

You need to activate "Set capacity based on number of visitors" option at the general booking settings page at advanced section. After that you will see the maximum number of visitors at the Resources page.

Also you can read more here: https://wpbookingcalendar.com/help/booking-resource/

Let say you are having booking resources like this:

test   (parent resource, capacity = 3)   Max. visitors = 2
- test 1
- test 2

A) If you are do not activate the "Set capacity based on number of visitors" so then, during reservation process you will book only ONE available booking resource, do not depend from the any number of visitors selections in the "visitors" select box. So it's mean if you are select 1 or 2 or 5 visitors in the select box at the booking form, you will reserve only one booking resource (firstly its will be parent resource "test", during the next new (second) reservation it's will be child resource "test 1" and during third reservation you will reserve "test 2" booking resource.
If the "Set capacity based on number of visitors" is not checked, the availability for the specific date will be 3 (based on capacity only) and during reservation process the selection number of visitors will not impact to the Availability and just will be saved as a any other field.

B) If you will set checked the "Set capacity based on number of visitors" option and activate first radio button in sub settings:

Add tooltip on calendar(s) to show availability based on the number of available booking resource items remaining for each day.
Note: Be sure to match the maximum number of visitors for the one booking resource with the number of visitors specified on the booking form.

Then the Availability in the mouse over tool-tip will be based on the capacity of the booking resource. So it's mean that for the free dates the availability will be show as 3, as in our previous example.

But during reservation process, you can not select more than 2 visitors in the select box. Because each booking resource, is support only 2 visitors per resource.

In other words, during reservation process you can reserve only 1 booking resource during one reservation, but the system is also check that the number of visitors, which you are selected in the booking form have to be not more then maximum number of visitors, which you are set at the Booking > Resource page. The availability in mouse over tooltip will be based on the capacity and in out example will be show as 3

C) And now last variant, if you had selected the bottom radios button option:

Display tooltip on calendar(s) to show availability based on total (fixed) number of visitors for the resource, which can be at free booking resource items.
Note: Be sure to match the maximum number of visitors for all booking resources with the number of visitors specified on the booking form.

So it's mean that availability over the specific date will be based on the capacity and number of maximum visitors per resource. In our example it's will be show as 6 ( 3 * 2 = 6 ).
During reservation process the system can book several booking resources, it's will calculate the visitors, which you are select in the booking form for the each booking resource (parent or child) and number of visitors per this resource.

So for example if you are select 3 visitors in the booking form. It's will reserve 2 booking resources. Because first resource is support 2 visitors and second is support also 2 but we are have only 1 ( 3 - 2 = 1 ), in other words one bed will be free in the second resource.

How all this capacity concept is working for search availability in search form at front-end side ?

You can test search form in action at the live demo of Booking Calendar Business Large version.

During searching availability in search form, number of selected visitors (shortcode [search_visitors] in the search form at Booking > Settings > Search page), can work in several ways. It's depend from selected or do not selected option: "Set capacity based on number of visitors" at the General Booking Settings page in advanced section and selected additional parameters.

A) If "Set capacity based on number of visitors" option UNCHECKED (not selected), then search availability form will search for available booking resources only based on the Check In/Out dates and possible some other parameters, but its will not depend from the selected number of visitors.

You can select any number of visitors and its will show items in search results, if other parameters (check in/out dates and possible some other parameters fit to selected options in search form).

B) If "Set capacity based on number of visitors" option CHECKED and you activated this sub option:

Add tooltip on calendar(s) to show availability based on the number of available booking resource items remaining for each day.
Note: Be sure to match the maximum number of visitors for the one booking resource with the number of visitors specified on the booking form.

Then during search process, the number of visitors (selected in the search form) must be equal or less then maximum number of visitors per booking resources (that you set at the Booking > Resources page). Its does not depend from the number of available "child booking resources", if the booking resource was configured with specific capacity (have child booking resources) and this booking resources (or at least one child booking resource) have available dates that you are searching.

C) If "Set capacity based on number of visitors" option CHECKED and you activated this sub option:

Display tooltip on calendar(s) to show availability based on total (fixed) number of visitors for the resource, which can be at free booking resource items.
Note: Be sure to match the maximum number of visitors for all booking resources with the number of visitors specified on the booking form.

Then during search process, the number of visitors (selected in the search form) must match the maximum number of visitors for all booking resource. Its means that availability per booking resource calculated as number of maximum visitors per resource multiply on capacity of booking resources (number of child booking resources). If we are having booking resource with capacity 3 (2 child booking resources), and maximum number of visitors as 2. Then maximum availability = 2 * 3 = 6 And its means that, if we selected 6 visitors in the search form we fit to get this booking resource in search results. If we select more than 6 visitors, then we do not match this criteria and this booking resource will not show in the search results.