Bookings Use Case: Cost based on Person Count

This bookings use case shows you how to use WooCommerce and WooCommerce Bookings to set up a bookable product with different prices based on the number of people in the booking.

Scenario

↑ Back to top

You have a bookable product for which you would like to set different prices based on the how many people are attending the booking. Additionally, you want to limit bookings to 10 people. The example product below will show you how to offer a discount when there’s more than one attendee, and how to set a max number of persons per booking.

In our example, if a single person books, the charge will be $145 for that person. But if two people book at once, the charge will be $230 ($115 each).

  • Price for one person is $145
  • Price for 2-10 people is $115 per person

Products Used

↑ Back to top

Setup & Configuration

↑ Back to top

To set this up we’ll take three steps:

  1. Create the bookable product.
  2. Configure the persons settings.
  3. Configure the costs.

Creating a Bookable Product

↑ Back to top

We’ll start by creating a new bookable product:

  1. In the sidebar of your WordPress Admin, click on Products.
  2. Click on the Add New button on the top.
  3. Give your product a name, for example: Per Person Costs.
  4. Under Product data select Bookable product.

Configuring the Persons Tab

↑ Back to top

On the persons tab we’ll set up the max number of people per booking, and for booking costs to be charged per-person:

  1. To the right side of the Product data box, you will then tick the checkbox for Has Persons.
  2. On the Persons tab of your Bookable product, define the minimum and maximum number of persons allowed. In this example, the minimum is 1 and max is 10.
  3. Then tick the checkbox for Multiply all costs by person count
The image illustrates enabling the Persons setting, setting a max of 10 people, and multiplying costs by the person count

Configuring Costs

↑ Back to top

In the costs tab we’ll set different prices depending on the number of persons in the booking:

  1. On the Costs tab, leave both the Base cost and Block cost as 0.
  2. Click Add Range button. This is to define the specific prices along with their progressive discounts.
  3. Select Person count in the Range Type drop down.
  4. Using our example, for the price of a single person, set the range as 1 to 1 and the block cost as +145.
  5. Using our example of 2-10 people, set the range as 2 to 10 and the block cost as +115.
  6. Save the product.
The image shows how this would be configured with a Person count range and the block costs.

Customer view

↑ Back to top

With the setup above, your customers will select a date and see a price of $145 for one person, $230 for two people, $345 for three, etc. In a basic theme this is what your product will look like for your customer:

Questions and Support

↑ Back to top

Something 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.
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.