How to Add the Days Component in Framer
This guide explains how to create a service with day-based availability in Bookla, connect it to Framer, and add the Days component to your Framer website so customers can select an available dates and make a booking.
Before You Begin
The service needs to be set up in your Bookla account before you can add the Days component to your Framer project.
Set Up Your Bookla Company
If you are new to Bookla, start by creating a company account.
- Open the Bookla Platform and select "Create Account".
- Register your account using your login details.
- Create a new company, or enter an invitation code if you have been invited to an existing company.
Configure Resources
Note
Resources represent the people, equipment, or other entities that provide a service. For example, they could be personal trainers at a fitness studio, rooms at a wellness center, or courts at a sports facility.
- Log in to your Bookla account.
- Navigate to the "Resources" section.
- Select "+ New Resource".
- Provide a name for the resource. You can also choose a different color if needed.
- Click "Create" to finish setting up the resource.
Service Setup
- Open the "Services" section in your Bookla account.
- Click "+ New Service" to start creating a service.
- Enter a name for the service and, if you want, choose a different color.
- Click "Next".
- Under the service type options, select "Days".
- Click "Next" to continue.
- Choose the appropriate Booking policy:
- Instant booking: The customer can book the service immediately without requiring payment.
- Needs confirmation: The booking must be manually confirmed before it is accepted.
- Needs prepayment: The customer must make a payment before the booking is confirmed.
- Enter the Check-in time and Check-out time for the service.
- Click "Create" to finish setting up the service.
Connect the Service to a Resource
- Select "Link with Resource".
- Choose the resources that will be available for this service.
- Click "Link Resources" to confirm your selection.
Configure Currency and Tax
- Open the "Pricing" section.
- Under Currency, click "Click to set".
- Select the currency you want to use for the service.
- Click "Save".
- Under Tax rate, click "Click to set".
- Enter the applicable tax rate for your country or state.
- Specify whether the tax should be included in the displayed price.
- Click "Save" to apply the changes.
Configure Price Rules
- Click "+ Add price rule".
- Set the pricing details:
- Price
- Compared price (optional)
- If necessary, add limits based on specific days, times, or resources.
- Click "Create" to save the price rule.
Configure Service Settings
- Navigate to the "Settings" section.
- Adjust the available service settings according to your requirements:
- Availability Period: Determines how far ahead customers can book the service.
- Check-in time: Default check-in time for day bookings.
- Check-out time: Default check-out time for day bookings.
You can also extend your company's functionality by adding plugins. To explore the available options, see the Bookla Plugins documentation.
Connect Bookla to Framer
- Open the Framer project where you want to add the booking flow.
- Select the "Plugins" option from the Framer toolbar.
- Find the "Bookla" plugin and click on it.
- Drag the Days component onto your page and place it where you want the booking flow to appear.
- Adjust the component to fit your page layout.
Configure the API Region and API Key
- Log in to your Bookla account.
- Check your Bookla account URL to determine whether you are using the EU or US region.
- Select the corresponding region in Framer.
- In Bookla, navigate to the "Developers" section.
- Click "Create API key".
- Enter a name for the API key.
- Enable the following permissions:
- Client Service
- Client Resource
- Guest Client
- Copy the generated API key and keep it somewhere secure. The key is only displayed once.
- Paste the API key into the "API Key" field in Framer.
Add the Company ID and Service ID
- Open the "Company" section in Bookla.
- Copy your Company ID.
- Paste it into the "Company ID" field in Framer.
- Navigate to the "Services" section.
- Open the service you created for the Days component.
- Copy the Service ID.
- Enter it into the "Service ID" field in Framer.
Test the Days Component
- Click the "Play" button in Framer to preview your page.
- Select the check-in date and check-out date.
- Click "Continue".
- Enter the required guest information.
- Click "Book Now" to complete the booking.
Conclusion
The Days component is now connected to your Bookla account and ready to accept bookings through your Framer website.
You can further customize your booking experience using Bookla plugins, service settings, and notification options.