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>