1. Home
  2. Booking & Appointment Plugin for WooCommerce
  3. Types of Bookings
  4. Maximum Night Booking for Multiple Nights

Maximum Night Booking for Multiple Nights

In our previous post, we saw how Minimum nights booking can be facilitated in businesses like hotel reservations, rentals, costume or equipment hire, etc. using the Booking & Appointment Plugin for WooCommerce. In such businesses, there are set of rules for making bookings like advance booking period, minimum number of nights to book or maximum number of nights to book. Today, we shall learn how to set up multiple nights booking where you can restrict the customers in booking for only a maximum number of nights.

Firstly, let us understand what you mean by the maximum number of nights to book?

This implies that you can set the maximum number of nights for which the bookings can be taken. For instance, you have the Number of dates to choose settings set to 365 nights and the maximum number of nights to book set to 30 nights, then booking can be done on any date but the maximum number of nights will be 30. This way you can restrict the customer in selecting the number of nights for their bookings.

In this post, taking the same above instance, we will see how to set up a maximum number of nights to book with the Booking & Appointment Plugin for WooCommerce. This can be well understood using two sections namely the Admin section and Customer section which explains how specified settings in admin would reflect the product on the front end.

Admin Section

Let’s say you are running a Rental business and you have an apartment to give on rent all year round. The customer can select to rent the apartment for maximum 30 nights or less but not more than 30 nights. 

To set this up, the first step is to create a bookable product Grand Apartments from the Products -> Add Product link.

On the same Products page, you will also find the Booking Meta Box that allows you to set up your bookable product. Enable settings in the Booking Meta box by clicking the Enable Booking option as shown below:

Enable Booking option

By enabling this setting, you can convert your normal WooCommerce product into a bookable product.

Now select Booking type as Multiple Nights option as shown below and click on the Save Changes button.

Selecting Multiple Nights option

Now you will need to add settings for making the apartment available for booking. So go to the Availability tab and add all the bookable weekdays along with all the settings as shown below and click on the Save Changes button.

Adding setting and bookable weekdays

The additional settings in Availability tab are Advance Booking Period, Number of dates to choose, Minimum Booking On Any Date, Minimum and Maximum number of nights to book. We will focus on maximum number of nights to book settings here, which we have set to 30 Nights and number of dates to choose settings which is set to 365 nights as shown in the above screenshot.

This implies that when a customer selects the date to rent the apartment, he will be shown 365 nights enabled on the calendar where he can reserve the apartment for maximum of 30 nights or less than that but will be unable to select more than 30 nights.

The details on all the above mentioned additional settings can be seen in our Multiple Nights Booking for Simple Products post.

After adding all the settings and enabling the bookable weekdays, click the Save Changes button. Once you have completed all the above steps, the product is now ready to be booked.

Let us see at how these settings would reflect on the front end for customers to make the booking.

Customer Section

The newly created product to take bookings for Grand Apartments, will appear on the front end of the website like shown in the below screenshot.

Newly created product displayed on front end

As you can see, the Start Date and End Date option appears here, where you need to select the date of the first day and the last day for renting the apartment.

So click on Start Date field and select a date from the calendar as shown below:

Select the Start Date

For this instance, let us select 15th November, 2017 as the Start Date from the calendar and then select the End Date in the similar manner.

Select the End Date

So as you can see in the above screenshot, the End Date selected is 15th December, 2017 which is 30 nights from the start date. You will be unable to select the end date after 15th December, 2017 as it will exceed the maximum number of nights to book settings which is set to 30 nights.

Note that the price for the rooms will be calculated as per the selected number of nights to book the product. Hence the total price for this booking will be $24,000 as number of nights selected is 30 nights.

Once you select the Start date and End date, the Add to Cart button will be enabled as shown below:

Add to Cart button enabled

When you click Add to Cart button, the order is added to your cart and clicking the View Cart button will redirect you to the Cart page which will show the booking details as shown below:

Cart page displaying the booking details

Here you can click on Proceed to checkout button to go to the Checkout page which gives you a preview of the actual order. Please ensure you check everything and then click on the Place Order button.

Order details on the Checkout page

Your order is now placed and you will receive an order confirmation as shown below:

Order confirmation of the booked product


In this post, we learned how easily one can add settings where you can allow customers to rent an apartment for the specified maximum number of nights using the maximum number of nights to book option in our Booking & Appointment Plugin for WooCommerce.

It is a simple procedure and will not take more than 10 minutes to set up the product for taking bookings of the maximum number of nights.

The above example was for the Simple WooCommerce product. It is also possible to use this option for WooCommerce Variable products.

Thus, such an additional setting of the plugin helps different businesses work efficiently without any hassles of overbooking. Thereby, curbing issues related to bookings and reservations which in turn results in aggregated sales and business revenues.



Was this article helpful to you? Yes 1 No

How can we help?