In this post we will see how to use variations with WooCommerce Booking & Appointment Plugin. To configure everything that’s mentioned below, having WordPress & WooCommerce is a must. So if you don’t have those, then please install them & then continue below.
I will take example of hotel bookings without variations initially and then I will add a variation.
The booking settings in WooCommerce Booking & Appointment Plugin can be done from the “Booking” meta box on the Products page.
To start, you need to enable Allow multiple day booking option under the booking tab. When you enable that, automatically the check-in and check-out date fields appear on the frontend, which is the main component in hotel bookings.
In the screenshot below, I have set the lockout date after X orders as 60. This means that there can be a maximum of 60 bookings for any date. Once the limit of 60 bookings is reached, the room is unavailable for those dates. You can set this according to your number of available rooms.
I have enabled the minimum number of days for multiple day bookings and set the value as 1 which means the customer will have to book a room for 1 day minimum. If it is set to 3, then the customer has to book for a minimum of 3 nights. They can book for 3 or more then 3 nights, but not less then that.
Different advance booking periods are required by almost all bookable products. For example, you might want the customers to book atleast 1 day in advance or you could also set this to 12 hours, which means they can book for the same day until 12 noon. There is an Advance booking period option where you can enter the number of hours. In our case, we have entered 24 hours, which means customers can’t book a room for the same date on which they are ordering.
In the product settings, you just have to select the type of product and enter the per night price for your room. It will be a Simple product.
Once all of these settings are done, you are ready to sell hotel bookings with WooCommerce. Let’s see how the frontend looks like.
Looks good until now. But this isn’t enough. Every hotel has different types of rooms and before anyone books a room they need to decide what type of room will be needed and then book the same. The prices of the rooms will differ. Here we need to use variations so the user can choose a room type right from the above page.
We will need to change the product type. We will need to set the product type to Variable Product. If you see below, I have created a new attribute named room type. It has five room types – Non AC, AC Room, AC Deluxe, Super Deluxe and Honeymoon Suite. We enter these separated by | in the Value(s) text box.
The prices are going to differ for each room type. Once you save the attribute, you need to go in the “Variations” tab. Under that, I can click on Link all variations and set the price for each room type.
The prices that I have set are:
Non AC – £300
AC Room – £400
AC Deluxe – £550
Super Deluxe – £1000
Honeymoon Suite – £1500
Once you enter the prices for room types & save the product, your frontend would appear as shown below:
After adding variations, the frontend gives you another option to select the room type. Based on the room type chosen & the number of nights selected, the appropriate price will be charged to the user. In our case, we selected “AC Room”, which costs £400 and selected 7 nights, so the total cost comes to £2800. A honeymoon suite for 7 nights would cost a whopping £10,500! A costly affair 🙂
Similar to the room type, you can add other variations too. Some common variations for hotel bookings are Number of Adults & Number of children. About a year back, we created a video. You can check that out.[vimeo width=”500″ height=”375″]https://vimeo.com/71421806[/vimeo]
Selling hotel bookings with WordPress & WooCommerce was never so easy!
If you are selling concert tickets or match tickets maybe you could add the stand as a variation, like VIP Box, Pavilion stand, etc.
The ability to use variations along with WooCommerce Booking & Appointment Plugin is a huge advantage. Most plugins do not allow WooCommerce variations to be used alongside bookings.
If you have not purchased our plugin yet & if this post has changed your mind, please go ahead & purchase it. Along with a solid booking plugin for WooCommerce, you also get superior support, which is what differentiates us from the others.