Skip to main content

Football-Soccer Field Booking Website

In this tutorial, you will learn how to:

  • Create and configure football field resources in Bookla.
  • Set up working hours for available resources.
  • Create flexible booking services.
  • Connect services with resources.
  • Configure pricing, taxes, and price rules.
  • Add the Bookla booking component to a Framer website.
  • Generate and connect the required API key and IDs.
  • Test the complete booking process.

This tutorial is ideal for:

  • Football clubs and sports centres that want to allow customers to book football fields online.
  • Businesses managing multiple sports fields or other bookable resources.
  • Users who want to create a simple booking website using Framer and Bookla.
  • Anyone who wants to learn how to connect Bookla booking components to a website.

First, we need to set up the Bookla resources (the entities that provide the service, in this case, the football fields) and services.

Resource setup​

  1. Go to your Bookla Platform account.
  2. Go to the "Resources" section.
  3. Click the "+ New Resource" button.
  4. Enter the resource title, for example, "Junior Field".
  5. If you want, you can also change the resource colour.
  6. Click the "Create" button.

Adding working hours​

  1. Click the "Add working hours" button.
  2. Select all working days.
  3. Enter the working hours.
  4. Click the "Create" button.

Service setup​

  1. Go to the "Services" section.
  2. Click the "+ New Service" button.
  3. Enter the service name and if you want, you can also change the service colour.
  4. Click the "Next" button.
  5. Select the service type. For this use case, it will be "Flexible".
  6. Click the "Next" button.
  7. Change the service duration.
  8. Choose the booking policy:
    • Instant booking: The client can instantly book the service without payment.
    • Needs confirmation: The booking requires your confirmation.
    • Needs prepayment: The client must prepay to confirm the booking.
  9. Click the "Create" button.

Linking service with resource​

  1. Click the "Link with Resource" button.
  2. Select the resource that provides this service.
  3. Click the "Link Resources" button.

Adding the currency and setting up the tax rate​

  1. Go to the "Pricing" section.
  2. Click "Click to set" under currency.
  3. Select your desired currency.
  4. Click the "Save" button.
  5. Click "Click to set" under Tax rate.
  6. Enter your country's or state's required tax rate.
  7. Choose whether the tax is included in the price or not.
  8. Click the "Save" button.

Setting up price rules​

  1. Click the "+ Add price rule" button.
  2. Configure these parameters:
    • Min duration
    • Max duration
    • Price
    • Compared price (optional)
  3. You can set limits for specific days, times, or resources.
  4. Click the "Create" button.

Connecting Bookla to Framer​

  1. Go to your Framer project.
  2. Click the "Plugins" button.
  3. Search for the "Bookla" plugin and click "Integrate".
  4. Choose the Flexible component and drag and drop it onto your page.
  5. Adjust the width of the component.

Setting the API region and generating an API key​

  1. Open your Bookla account.
  2. Check whether your URL region is EU or US.
  3. Select the same region in Framer.
  4. Go to the "Developers" section in Bookla.
  5. Click the "Create API key" button.
  6. Enter a name for your API key.
  7. Select the required permissions:
    • Client Service
    • Client Resource
    • Guest Client
  8. Copy the API key. It is shown only once.
  9. Paste it into Framer under "API key".

Adding the Company ID and Service ID​

  1. Go to the "Company" section in Bookla.
  2. Copy the Company ID.
  3. Paste it into Framer under "Company ID".
  4. Go to the "Services" section.
  5. Select your service.
  6. Copy the Service ID.
  7. Paste it into Framer under "Service ID".

Testing the component​

  1. Click the "Play" button.
  2. Select available dates and times.
  3. Click the "Continue" button.
  4. Enter guest details.
  5. Click the "Book Now" button.

Conclusion​

You have now successfully created a football field booking website using Bookla and Framer. Your customers can select an available time slot, enter their details, and complete a booking directly through your website.

By following these steps, you can adapt the same setup for other sports facilities, rental services, or any business that needs online resource-based bookings.

Get Involved​

We want these tutorials to address your real-world needs. If you have specific use cases or scenarios you'd like to see covered, please:

  1. Open an issue in our GitHub repository with the label "use case request".
  2. Provide a brief description of your business type and the specific challenge you're trying to solve with Bookla.

Your input will help us prioritize and develop the most relevant content for our developer community.

We appreciate your patience as we work on creating valuable, practical content to support your Bookla implementation journey. In the meantime, don't hesitate to explore our API documentation and reach out to our support team if you have any questions.