Skip to main content
All CollectionsWeb CheckoutManuals
How to Preselect the First Available Date
How to Preselect the First Available Date

Automatically select the earliest available date, guiding customers and simplifying bookings.

Lucia Burin Sestakova avatar
Written by Lucia Burin Sestakova
Updated over 2 weeks ago

The Preselect First Available Date feature automatically selects the earliest available date for customers. This provides helpful guidance, especially when tours are scheduled far in advance, and reduces the need for customers to manually search for the next available date. The calendar modal remains open for the customer to browse dates at their convenience.

When the feature is disabled, the calendar modal will still be displayed, but no date will be preselected, giving customers the option to select a date entirely on their own.


Update Data-Config

Add the below piece of code in the data-config attribute of your checkout script, see the Implementation Guide for more information.
​

"features": { 
"preselectFirstAvailableDateModalCalendar": true
}


Simply adding the feature in the data-config enables the feature on all products in the checkout. If you wish to limit this feature to specific products, you can do so by specifying the product ID in the data-config attribute.
​
You can add the preselectFirstAvailableDateModalCalendar feature to your data-config for script or button.
​

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

Did this answer your question?