Skip to main content
All CollectionsWeb CheckoutManuals
How to Use the Multi-Booking Feature
How to Use the Multi-Booking Feature

Multi-Booking allows you to have a fully managed shopping cart flow through our application.

Lucia Burin Sestakova avatar
Written by Lucia Burin Sestakova
Updated over a week ago

πŸ“’ NOTE

Before you continue, please familiarise yourself with the Implementation Guide as it describes the flow characteristics required for this feature to work.

How to Enable Multi-Booking

Add multi-booking: true to the data-config attribute, for example:
​

<script
src="https://cdn.checkout.ventrata.com/v3/production/ventrata-checkout.min.js"
type="module"
data-config='{"apiKey":"<YOUR_API_TOKEN>", "multibooking": true, "env": "live" }'>
</script>

This triggers the bottom bar, a component at the bottom of the page, which contains ongoing bookings within the created order.

πŸ“— TIP

Learn more about checkout features and what they do. New features will be added in future releases.

Bottom bar

This change also introduces a closable popup without automatic order cancellation. This behaviour allows your users to continue shopping without losing the bookings they have already made.
​

Multi-booking in the Checkout


How to Edit an Order if External Cart Functionality is Enabled

If you are using the Ventrata checkout in combination with your custom cart or checkout pages, you may want to trigger our checkout for the edit booking flow. It can be done using regular ventrata-checkout triggers, which should contain the specific orderID and bookingID to correctly trigger the edit flow.
​

πŸ“’ NOTE

This functionality REQUIRES the presence of multibooking in the data-config attribute in one of your elements.


πŸ“˜ EXAMPLE

<li 
ventrata-checkout
data-config='{"apiKey":"<YOUR_API_TOKEN>","bookingID":"6fb927e9-1502-4b3f-924c-17ed855f6a2f","orderID":"8e520579-4cb6-40af-a464-668fb32c61b1","multibooking": true}'
>
Booking to Edit
</li>

The same can be achieved also programmatically:

window.Ventrata({
"apiKey": "<YOUR_API_TOKEN>",
"bookingID": "6fb927e9-1502-4b3f-924c-17ed855f6a2f",
"orderID": "8e520579-4cb6-40af-a464-668fb32c61b1",
"multibooking": true,
})


How to Trigger Checkout with a Specific Page

If you want to open the application with a specific page, or element, for example, the shopping cart button and show a listing of the order summary to the customer (checkout page), provide the orderID and page to render. In this case, it would be page: "checkout".

πŸ“— TIP

To learn how to apply the configuration for the application, read the Checkout Implementation Guide.


πŸ“˜ Example using JavaScript directly:

window.Ventrata({ "orderID": "8e520579-4cb6-40af-a464-668fb32c61b1", "page": "checkout" })

πŸ“˜ Example using the embedded solution:
​

<li ventrata-checkout data-config='{"orderID":"8e520579-4cb6-40af-a464-668fb32c61b1", "page": "checkout"}' > Cart </li>

Important Notes

  1. Make sure that multibooking is present in the data-config attribute, or else your pages may not work correctly, for example, the bottom bar may not be visible to your users.
    ​


    πŸ“’ NOTE

    You can include multibooking in the initial script element when adding the ventrata-checkout.min.js to your page.
    ​


    πŸ“˜ EXAMPLE
    ​

    <script 
    src="https://cdn.checkout.ventrata.com/v3/production/ventrata-checkout.min.js"
    type="module"
    data-config='{"apiKey":"<YOUR_API_TOKEN>", "env": "live", "multibooking": true }'
    ></script>


  2. If your page contains a custom cart, you may be interested in using the hybrid cart form of our checkout solution.
    ​

Did this answer your question?