How can I prevent users from selecting previously ordered dates?

Topic summary

Goal: Disable previously booked dates in a product order date picker by checking past orders and blocking those dates.

Key questions raised:

  • How to retrieve a list of previously ordered dates.
  • Whether the frontend can call an API without exposing a private API key (security concern).

Response/update:

  • Directly fetching and organizing this booking data from Shopify is not supported as a native capability.
  • Recommended approach is to use a third‑party appointment/booking app from the Shopify App Store.

Suggested solutions:

  • Easy Appointment Booking (example app).
  • Explore other appointment booking apps in the Shopify App Store category.

Outcome/status:

  • No native or secure frontend API solution provided in the thread.
  • Actionable next step is to install and configure a booking app to manage unavailable dates.

Notes:

  • An image showing the booking UI (date picker) was attached.
Summarized with AI on January 24. AI used: gpt-5.

Every time a user orders a product on my website. There is a date picker. I want the user to not be able to select previously selected dates. To solve this, is there a way to get data of previous orders and custom date picker?

  • How to get list ordered.
  • Can API from frontend to get data → no security, because will show API key on frontend
  • Others?

Hello,

you would not be able to fetch and order this data from Shopify. You would need to use an app for this. Something like

Easy Appointment Booking - Easy Appointment Booking: Take bookings on your Shopify site | Shopify App Store

Or there are other apps

Best Appointment Booking Apps For 2023 On Shopify App Store