Expected behavior:
The owner should have the faculty to select default options for delivery (ASAP or timeslot) that should be displayed to customer. Also if you modify:
https://github.com/tastyigniter/ti-ext-local/blob/6c3f997aefd83b2a99d6ec35f5293ae0ca2edb87/components/localbox/timeslot.blade.php#L21
in
@if (false)
you obtain the timeslot as default option.

Actual behavior:
With the previous modification once the opening time of the venue has passed, even if no time slot is selected, it is possible to proceed with the order. The order time will be given by the current time plus the preparation time. It would be preferable not to have any slot pre-selected by default, but to make it mandatory for the user to select it.

Reproduce steps:
After modification, visit the store page at a time when delivery is active (NOT before); at this point, without selecting a time slot, it will be possible to complete the order. An order will arrive at the restaurant with delivery time given by the current time plus the lead time.

Version:
v.3.0.4-beta.23.2

Additional Information:
immagine

What do you think @sampoyigi ? Can be useful to others too?

    The best should be to let owner disable ASAP and display only timeslots, so order will not have strange delivery time like xx:xx+leadtime.

    Also a plus would be that if pre-order is not allowed the date box is suppressed and you have only a drop-down menu with timeslot.

      that’s a good idea, the one thing I want to change is when the order is asap it states asap. Clients get really confused whether it’s a scheduled or asap order.

      We’ve been trying to figure this out for awhile and it’s been a big headache. It’s only showing “Schedule order” now, but allowing customers to place an order without selecting a timeslot. How can we add “Please choose a timeslot” error and make it required for placing an order?

        I have an extension that forces time slot selection before items can be added to the cart. If it’s useful I can make it available on GitHub.

          Will it work on 3.0.4-beta.20.1?

            ryanmitchell appreciated. Hope this is the final touch for this install 👍🏻 the store has had all sorts of unique requests, 24 hours minimum for delivery etc. Would save us big time!

              @ryanmitchell You know the codebase too well man. It is simple but you still have to know a bit the mechanician behind. I will learn 😉 laravel doc is good?

                4 months later

                Hi everybody !
                This is the extension I’ve been looking for for a while, thank you very much!
                On the other hand, when the customer clicks on a place, it indicates “closed” and there is no possibility to order.
                On some places, the time is displayed but I always have the “ASAP”, and that doesn’t force the customer to choose the time, too bad…🙁

                  It should always force the time to be selected as it happens on basket adittion. Check you are on the latest beta.

                    ryanmitchell It should always force the time to be selected as it happens on basket adittion. Check you are on the latest beta.

                    Yes I have the latest version, it’s ok to force the time during the basket, good! Thx. 🙂
                    On the other hand, I don’t understand why a customer who orders in one place, can’t order in another place, it displays “closed”, whereas in private browsing, it is “open”…