1. Home
  2. Booking & Appointment Plugin for WooCommerce – NEW
  3. Maximum Bookings
  4. Setup lockout limit or maximum bookings for Variable products

Setup lockout limit or maximum bookings for Variable products

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 ProductsGrouped Productsand 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. 

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

Adding attributes

Go to the Variations Tab and click the Generate Variations button.

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

Generating Variations

Your variations have been added.

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

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.

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

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:

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

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:

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

Enable all the weekdays from the Weekdays table.

Setup lockout limit or maximum bookings for Variable products - Tyche Softwares Documentation

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:

Setup Lockout at the variation level - Tyche Softwares Documentation

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:

Setup Lockout at the variation level - Tyche Softwares Documentation

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:

Setup Lockout at the variation level - Tyche Softwares Documentation

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:

Setup Lockout at the variation level - Tyche Softwares Documentation

For Size – XXL:

Setup Lockout at the variation level - Tyche Softwares Documentation

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.

Was this article helpful to you? Yes No

How can we help?