How to Add a Fixed Component in Framer
In this tutorial, you will learn how to set up a Fixed booking component in Framer using the Bookla plugin. You will create and configure your company, resources, services, pricing, and API connection in Bookla, then connect everything to Framer and test your booking flow.
Prerequisites
Before setting up Framer, make sure everything is configured correctly in the Bookla Platform.
Create a Company in Bookla
This step is essential because it links your Company ID to the Framer widget.
- Open Bookla Platform and click "Create Account".
- Create an account using your credentials, or log in if you already have one.
- Create a new company or use an invitation code to access an existing one.
Set Up Resources
- Go to your Bookla account.
- Open the "Resources" section.
- Click the "+ New Resource" button.
- Enter a title for the resource. If needed, you can also change the resource color.
- Click the "Create" button.
Adding Working Hours for a Resource
- Click the "Add working hours" button.
- Select all working days.
- Enter the working hours.
- Click "Create".
Service Setup
- Go to the "Services" section.
- Click the "+ New Service" button.
- Enter the service name. If needed, you can also change the service color.
- Click the "Next" button.
- Select the service type. For this tutorial, choose "Fixed".
- Click the "Next" button.
- Set the service duration.
- Choose the booking policy.
- Click "Create".
Linking a Service with a Resource
- Click the "Link with Resource" button.
- Select all resources that provide this service.
- Click the "Link Resources" button.
Adding the Currency and Setting Up the Tax Rate
- Go to the "Pricing" section.
- Click "Click to set" under Currency.
- Select your desired currency.
- Click the "Save" button.
- Click "Click to set" under Tax rate.
- Enter your country's or state's required tax rate.
- Choose whether the tax is included in the price.
- Click the "Save" button.
Setting Up Price Rules
- Click the "+ Add price rule" button.
- Configure the following parameters:
- Price
- Compared price (optional)
- Optionally, set restrictions for specific days, times, or resources.
- Click the "Create" button.
Service Settings
- Go to the "Settings" section.
- Here you can configure settings such as:
- Availability Period: How far in advance the service can be booked.
- Time Interval: The interval at which the service can be booked.
- Buffer Before: The minimum time required before a booking can be made.
- Buffer After: Additional time added after each booking.
Additionally, you can add plugins to your company. Learn more about the available plugins here.
Connecting Bookla to Framer
- Go to your Framer project.
- Click the "Plugins" button.
- Search for the "Bookla" plugin and click "Integrate".
- Choose the Fixed component and drag and drop it onto your page.
- Adjust the width of the component as needed.
Setting the API Region and Generating an API Key
- Open your Bookla account.
- Check whether your account URL uses the EU or US region.
- Select the same region in Framer.
- Go to the "Developers" section in Bookla.
- Click the "Create API key" button.
- Enter a name for your API key.
- Select the required permissions:
- Client Service
- Client Resource
- Guest Client
- Copy the API key. It is displayed only once.
- Paste it into Framer under "API Key".
Adding the Company ID and Service ID
- Go to the "Company" section in Bookla.
- Copy the Company ID.
- Paste it into Framer under "Company ID".
- Go to the "Services" section.
- Select your service.
- Copy the Service ID.
- Paste it into Framer under "Service ID".
Testing the Component
- Click the "Play" button.
- Select an available date and time.
- Click the "Continue" button.
- Enter the guest details.
- Click the "Book Now" button.
Conclusion
You have successfully connected the Bookla Fixed component to your Framer project. Your booking flow is now ready for testing and publishing. If you want to further customize the booking experience, you can explore additional Bookla plugins, booking settings, and notification options in the Bookla Platform.