There are four key cart validation checkpoints, including:
- Upon opening the cart drawer
- Upon modifying, updating, or adding a product to the cart
- Upon selecting the Checkout button
- Upon selecting the Place order button
Additional validation checkpoints:
- Upon selecting a new pickup time and date
- Upon selecting a new order type
- Upon loading a restaurant menu
Note: Keep in mind that all these interactions can happen anywhere the cart drawer is accessible, and the screens above are just for illustration purposes.
Restaurant status changed (Not Accepting Orders)
Possible Reasons:
- The restaurant is closed (does not accept orders outside working hours)
- Delivery or Catering delivery is closed (does not accept orders outside working hours)
- The store is temporarily unavailable
- No drivers are available (Delivery promise)
Cart UI:
In the restaurant info card:
- The relevant status tag is displayed based on the current status. (Closed • Schedule for later, or Delivery closed • Schedule for later).
- Pickup time is not shown when the restaurant is closed.
- The Checkout button remains enabled.
- A Closed • Schedule for later snack bar is shown.
Pickup time selection flow:
Upon selecting the Checkout button or snack bar, the user is asked to choose a pickup time and/or date based on restaurant availability.
Upon confirming the pickup time and date:
- The time is applied and shown in the restaurant info card.
- The Schedule for later snack bar is hidden.
- If initiated via the Checkout button, the user is automatically redirected to the checkout page.
- If the selected pickup time causes items to become unavailable:
- A confirmation dialog is shown.
- Upon confirming, the cart UI is updated to display unavailable items.
- If the entire cart becomes unavailable, the Checkout button gets disabled.
- The user is kept on the same page to review the cart before continuing to checkout.
On the checkout, all unavailable items are removed from display.
Pickup time is in the past
If an ASAP pickup time is selected, the absolute pickup time in the store details section of the cart should be updated to the most current one every time the cart is validated.
If a specific pickup time and date were previously selected but are now in the past and no longer available, when the user selects the Checkout button, they should see a message indicating the pickup time is no longer available. The system should then update it to the first available time slot before redirecting the user to the checkout page.
Prices have changed
Every time we validate the cart, we should show the most updated prices for cart items, including the updated calculation section.
From a UI perspective, nothing changes except the updated prices.
Unavailable cart products, offers, and rewards
Possible Reasons:
- Out of serving time
- Get disabled, deleted, or the menu got unpublished
- Expired or unavailable rewards/offers
Cart UI:
- Affected items are marked as not available.
- Product-based offers/rewards are marked as not available.
- Order-based offers/rewards are removed from the Rewards & Offers details component.
- Quantity controls for products are hidden in both the cart and product modal.
- Products in the cart can be opened but can’t be modified or updated.
- Products can only be deleted through the cart delete button.
- If the entire cart becomes unavailable, the Checkout button gets disabled.
- The user is kept on the same page to review the cart before continuing to checkout.
On the checkout, all unavailable items are removed from display.
Order type no longer available for active cart
If any of the pickup order types (Table Service, Dine-in, Takeout, Curbside or Drive Thru) become unavailable, the cart is automatically switch to the first available order type for the restaurant associated with the active cart.
If there is no order type to switch to, or if Delivery, Catering Delivery, or Catering Pickup becomes unavailable, show an error dialog and clear the cart.
The restaurant is no longer available for the active cart
Possible reasons:
- Delivery address is no longer within the delivery zone
- Restaurant is disabled or deleted
Comments
0 comments
Please sign in to leave a comment.