This bookings use case will walk through how to use WooCommerce and WooCommerce Bookings to set up a bookable room, and collect a deposit for the room in advance.
The optional deposit taking feature is powered by the WooCommerce Deposits plugin.
Scenario
↑ Back to topYou have a room you would like make available for booking and you would like to collect a 25% deposit during checkout to hold the room.
Requirements include:
- The room can only be booked for an entire day at a time, not for specific time slots.
- The room is available 7 days a week, 365 days a year.
- The cost of the room varies by the type and number of people who will be using it – each adult is $85, each young adult is $25, and children are free.
- The room can hold 5 people maximum but can be booked for any number of people between 1 and 5.
- A 25% deposit on the cost of the room booking is required on checkout, with the remainder due when the room is actually used.
Products Used
↑ Back to topSetup and Configuration
↑ Back to topTo get this use case up we’ll take 6 steps:
- Create the bookable product.
- Configure the bookable product’s General Settings.
- Setting the bookable product’s Availability.
- Set up Persons on the bookable product.
- Set up Deposits on the bookable product.
- Publish the product.
Creating the Bookable Product
↑ Back to top- In the sidebar of your WordPress Admin, click on Products.
- Click on the Add New button on the top.
- Add a title to your new product, such as “Room Booking.”
- Under Product data select Bookable Product.
Configure General Settings
↑ Back to top- On your newly created Bookable Product, or on an existing Bookable Product you are editing, scroll down to the Product Data > General tab.
- Check the Virtual box to indicate that this product is virtual, as there is no physical item to be delivered. This will cause a booking for this room to be automatically marked as Complete once they are paid.
- Check the Has Persons box to allow the customer booking the room to indicate the number of persons that will be using the room. This allows you to alter the price of the room based on number of people, if required.
- Set the Booking Duration to be Fixed Blocks of 1 Day, as the room booking is for a specific date and books the room for the entire day.
Setting the Availability
↑ Back to topIn the Product Data box, click on the Availability tab. Here, we will set the days and dates that the room is available.
- Set Max Bookings per Block to 1, as we only have 1 room to offer; once it is booked, no other bookings are possible.
- Set Minimum block bookable and Maximum Block Bookable for allowed days in advance the room can be booked. In our example here, we are using the default 0 day minimum, meaning same-day bookings are allowed, and a 12 month maximum, meaning bookings can be made for dates up to a year in advance.
- Since this room is available all year, leave the All dates are… setting in the default state of “available by default”. This means with no additional availability rules, the room will be available every day of the year.
Setting up Persons
↑ Back to topIn the Product data box, click on the Persons tab. Here, we will set up the types of people who might use the room (Adult, Young Adult, and Child) and set prices for each.
- Set the Min Persons and Max Persons to the total number of persons allowed in the room for a single booking. In this case, we have set the minimum number of persons to 1 as at least 1 person must be using the room. The room can hold 5 people, so the maximum number of persons is 5.
- Do not check Count persons as bookings – this ensures that we enforce a maximum number of people at 5, but it’s all part of one total booking for the one room.
- Check Enable person types – this option will allow the creation of different types of people, i.e. Adult, Young Adult, and Child.
- Click the Add Person Type button to add a new person type. Give the new person type the name “Adult” with a base cost of $85. As an option, you can set the Minimum to 1, which would mean that each room booking must include at least one Adult.
- Click the Add Person Type button again to add a second person type. Give the new person type the name “Young Adult” with a base cost of $25 and set the minimum in this case to 0, as adding Young Adults to the room is optional.
- Click the Add Person Type button again to add a third person type. Give the new person type the name “Child” with a base cost of $0 and set the minimum in this case to 0, as adding Children to the room is optional.
With these person types in place, customers booking the room will be charged depending on the age of the members of their group.
Setting up Deposits
↑ Back to topTaking a deposit is an optional feature and requires the use of WooCommerce Deposits. You can learn more about setting up the Deposits on the WooCommerce Deposits Setup and Configuration Page.
To set up deposits for your room booking product, in the Product Data box on the product’s editing page, click on the Deposits tab. Here, we will set up the required deposit amount and type.
- Under Enable Deposits, select “Yes – deposits are required.”
- WooCommerce Deposits allows you to take a deposit as a percentage, a fixed amount or a payment plan. For our example, we do not need a payment plan since we will collect the balance when our customer checks in to the room. We are going to choose percentage, but we could easily chose a fixed amount, it just depends on preference. So for this case, set Deposit Type to “Percentage.”
- Set Deposit Amount to “25” for a 25% deposit amount.
Now your customers will be required to make a 25% deposit at checkout to place their booking.
Publishing the Product
↑ Back to topAs with all WooCommerce Products, you can optionally add a Product Image, Product Categories, and Product Tags for the Museum Tickets product.
Then, publish the product using the blue Publish button in the top right corner.
Questions and Support
↑ Back to topSomething missing from this documentation? Do you still have questions and need assistance?
- Have a question about a specific extension or theme you’d like to purchase? Click here.
- Already purchased and need some assistance? Get in touch with a Happiness Engineer via the WooCommerce.com Support page and choose this extension name from the “I need help with” dropdown.