If a customer leaves the cart page open for a long time, the date and time they selected may no longer be available when they check out. For example, the time slot may have started, or another customer may have booked the last space in it. To prevent this, you can let the cart widget re-check the customer's selection while they are on the cart page.
The widget will not move the customer to the next available slot. Instead, it clears the selection and asks the customer to select a new date and time.
Requirements
You must use the cart widget.
Enable the re-check setting
Go to Settings, then click Developers.
In the Advanced settings section, tick Re-check the selected date and time on the cart page.
Click Save.
The widget will now re-check the customer's selected date and time while they are on the cart page.
How the re-check works
The widget checks the customer's selection:
Every 10 minutes, or when the selected time slot is due to become unavailable, whichever comes first.
When the customer returns to the cart page from another tab or window.
When the customer clicks the checkout button.
The check uses the same rules as your date and time settings, including slot limits and blackout dates. The checkout button is locked while a check is running.
If the selected date or time is no longer available, the customer will see a popup with the text The date or time you selected is no longer available. Please select a new one. and a Select a new date button. When they click the button:
The selected date and time are cleared.
The slot that is no longer available is removed from the list.
The checkout button is locked until the customer selects a new date and time.
Customers whose selection is still available will not see the popup, and their selection will not change.
Change the popup wording
You can edit the popup text in the widget translations. Learn more in Changing the wording in the widget.
The popup uses these two texts:
Selected date/time no longer available (modal text)
Selected date/time no longer available (modal button)
Limitations
This setting only works on the cart page. It does not re-check the selection while the customer is on the checkout page. This is a Shopify limitation, and it can only be done on stores using Shopify Plus.
The re-check does not check product inventory at the selected location. It only checks dates and times.
Notes
The re-check works with local delivery and store pickup. It also works with shipping if the shipping time picker is enabled.
If the customer goes to checkout and then returns to the cart page with the browser's back button, the widget re-checks the selection.
If you change your date and time settings and the customer's selection is no longer available, the next check will clear it.
To turn the setting off, untick Re-check the selected date and time on the cart page and click Save. The widget will work as it did before.
