Food Online Premium Tutorials
Set Time Picker Schedules and Prevent Orders on Sundays
Our aim is to use a set of schedules that open different time slots for delivery- and pickup orders from Mondays to Saturdays. On weekends, the open hours differ a bit from the rest of the week. Further, alcoholic beverages are not allowed for delivery orders.
The schedule above open time slots (Time Picker Schedule) for Mondays to Thursdays, 15:00 – 20:00. For Delivery orders, we have chosen to not include alcoholic beverages because they are not allowed for deliveries in this example.
We now add two schedules similar to the first ones, but with extended time slots until 22:00 on Fridays.
To finish the week we now set schedules for Saturdays with open slots from 12:00 until 22:00.
Thereby the time picker slots for the week are ready and we just skip to set a time picker schedule for Sundays when the restaurant will be closed.
Since we don’t want to receive any orders during nighttime and on Sundays, we decide to prevent any orders from being placed if the time isn’t to the Place Order Schedule above, Mondays to Saturdays, 09:00-21:00.