1. Home
  2. Booking & Appointment Plugin for WooCommerce – NEW
  3. Types of Bookings
  4. Maximum Nights in the Multiple Nights Booking Type

Maximum Nights in the Multiple Nights Booking Type

In businesses such as hotel reservations, rentals, costume or equipment hire, etc, the Maximum night booking for Multiple Nights from the Booking & Appointment Plugin for WooCommerce helps you restrict the customer bookings to a certain number of nights.

Multiple Nights booking is divided into these types:

  1. Simple products booking
  2. Variable products booking
  3. Minimum number of nights booking for multiple nights
  4. Maximum number of nights booking for multiple nights

Let’s look at how to configure Multiple-night bookings for multiple days and set up the maximum stay for reservations.

What is theMaximum number of nights to book’ setting?

This setting allows you to set the maximum number of nights for bookings that can be accepted.

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.

Here, the booking can be done on any date but the maximum number of nights will be 30.

In this way, you can restrict the customer in selecting the number of nights for their bookings.

Let’s look at how the Admin section and Customer section will look like for this setting.

1. Admin Section

You run an all-year-round Apartment rental businessThe customer can select to rent the apartment for a maximum of 30 nights or less but not more than 30 nights. 

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.

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

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Selecting the Multiple Nights option

Next, go to the Availability tab and add all the bookable weekdays along with all the settings.

Click on the Save Changes button after it.

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Adding setting and bookable weekdays

The additional settings in the Availability tab are Advance Booking Period, Number of dates to choose, Minimum Booking On Any Date, Minimum and Maximum number of nights to book. 

You can learn about them in the Multiple Nights Booking for Simple Products post.

Let’s focus on the maximum number of nights to book settings.

You can set it to 30 Nights and the Number of dates to choose settings can be 365 nights as shown in the above screenshot.

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

Click the Save Changes button, once done.

2. Customer Section

The newly created product to take bookings for Grand Apartments will appear on the front end of the website as shown here:

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Newly created product displayed on the front end

The Start Date and End Date options appear here. This is where you need to select the date of the first day and the last day for renting the apartment.

Click on the Start Date field and select a date from the calendar.

For this instance, you can select 15th March 2024 as the Start Date from the calendar.

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Select the Start Date

Select the End Date. You will find the first available End date as 16th March 2024.

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

When you move to another month to select a further date, you will notice that the last End Date available will be 14th April 2024 which is 30 nights from the start date.

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Select the End Date

You will be unable to select the End Date after 15th April 2024 as it will exceed the maximum number of nights to book limit 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 the number of nights selected is 30 nights.

Once you select the Start Date and End Date, the Book Now! button will be enabled as shown below:

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Add to Cart button enabled

When you click the Book Now! button, the order will be added to your cart.

Clicking the View Cart button will redirect you to the Cart page which will show the booking details as shown below:

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

The cart page displaying the booking details

Clicking the Proceed to checkout button will take you to the Checkout page which gives you a preview of the actual order.

After checking the order details, click the Place Order button.

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Order details on the Checkout page

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

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Maximum Nights in the Multiple Nights Booking Type - Tyche Softwares Documentation

Order confirmation of the booked product

In the above case, the feature was used with Simple WooCommerce product, however, you can also explore this feature with WooCommerce Variable products.

To summarise, this is how you can easily add settings that 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.

Was this article helpful to you? Yes No

How can we help?