One of its biggest advantages is the ability to use the Booking & Appointment Plugin for WooCommerce with all other WooCommerce Product Types, such as Variable Products, Grouped Products, and Bundle Products.
Many bookable businesses, like hotels, rent inventory-based equipment, etc., deal with a product with different variations. In such cases, they would like to set different lockout limits for each variation. These lockout limits are also called the maximum bookings/ limit.
If the customer books any one variation till its maximum limit for a particular date, then that date would be blocked for that variation. However, the other variations will be available to book for that date.
This is possible if you set the lockout limit for each variation of a WooCommerce variable product according to your requirements.
Here’s how to make it happen:
Admin Experience
For instance, you run an online business that rents out party dresses.
Create a product Rental – Party Dresses from Products > Add Product link to your store.
An important aspect of this is letting customers choose the dress size first. For this, create a Variable bookable product.
Check out this documentation if you want to learn ☞ How to Create a Variable product in WooCommerce.
Now, under Product Data, select the Variable Product dropdown and go to the Attributes Tab.
Under Name, add the attribute Size; under Values, add the different sizes.
Adding attributes
Go to the Variations Tab and click the Generate Variations button.
Generating Variations
Your variations have been added.
Generated variations
The created attribute and its variations for Rental Party Dresses are as follows:
- Size: L, XL, and XXL
The following are all the created variations and their charges for the Rental Party Dresses. The customer can select these variations on the front end, and the price will be displayed according to the selection.
- L- $100
- XL- $200
- XXL- $300
The Lockout value for each variation is set to 1 as shown below.
Setting Lockout for each variable
Make sure to save changes after adding the prices and the lockout limit.
Note: You will need to Publish the variable product once you have created all the attributes and their variations. Otherwise, it will not show the Lockout option.
Now, it’s time to convert this product into a bookable product. Go to the Booking & Appointment meta box.
Enable the Booking option and select the Booking type as Multiple Nights from the dropdown. Click the Save Settings button once done:
Select the Multiple Nights option
Go to the Availability tab. The value of the Maximum Bookings On Any Date option needs to be set to the sum of all the variation lockouts.
In the above case, there were 3 variations, and their lockout limits were 1 each. Therefore, the sum would be 3:
Enable all the weekdays from the Weekdays table.
Add Weekdays and Maximum Bookings On Any Date value for this product
After finishing the above steps, your Rental Party Dresses product is ready to go!
User Experience
When a customer visits your website, your product Rental – Party Dresses will look like this:
Product displayed on the front-end
If the customer wants to rent a party dress from 22nd December to 24th December 2017 for size – XL, they will be able to so as shown below:
Dates selected for renting the product
Once the booking is made, the dates 22nd and 23rd December will get blocked (i.e., the lockout limit has been reached) and will display as Booked for size – XL as shown below:
Bookable calendar showing the dates are booked for renting party dress of size-XL
This is because the Lockout for this variation (Size – XL) was set to 1.
However, the same dates will remain available for renting party dresses of other 2 sizes, i.e., L and XXL, as shown below:
For Size – L:
For Size – XXL:
Similar to party dresses for rent, a hotel offering different types of rooms can utilize this feature of setting up lockout limits for their rooms.
Conclusion
Any business dealing in a variable product will have different stock for each variation of that same product. That’s when this important feature of the Booking & Appointment Plugin for WooCommerce plugin can be used easily to set various lockout limits for customers on variable products.