Unable to set fulfilment method to delivery (stuck in the collection (takeaway) state)
To Reproduce
Steps to reproduce the behavior:
Start an order in a restaurant that supports both delivery and collection (put some item in the cart) (see screenshot: "Specialty coffee bar")
Set fulfilment method to collection (takeaway)
Go to a restaurant that supports only delivery (see screenshot: "Burger Bar")
Begin a new order there (put some item in the cart)
See that collection (takeaway) is Not available at the moment and it's impossible to switch to delivery
(The reverse also does not work; if initially an order is started in a restaurant that supports only delivery (see screenshot: "Burger Bar") and then switched to a restaurant that supports both delivery and collection it's not possible to select collection)
Expected behavior
It should be possible to select a correct fulfilment method. Ideally, it should be already pre-selected
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
As I understand when switching restaurants we keep takeaway in the Order object, but while rendering the page we don't include cart[takeaway] in the form, because the restaurant does not support it. Which makes it impossible to disable this property from the frontend.
A possible solution is always sent /restaurant/{id}/cart/address request while editing an address, and disable takeaway there
Describe the bug
Unable to set fulfilment method to
delivery
(stuck in thecollection
(takeaway) state)To Reproduce Steps to reproduce the behavior:
delivery
andcollection
(put some item in the cart) (see screenshot: "Specialty coffee bar")collection
(takeaway)delivery
(see screenshot: "Burger Bar")collection
(takeaway) isNot available at the moment
and it's impossible to switch todelivery
(The reverse also does not work; if initially an order is started in a restaurant that supports only
delivery
(see screenshot: "Burger Bar") and then switched to a restaurant that supports bothdelivery
andcollection
it's not possible to selectcollection
)Expected behavior
It should be possible to select a correct fulfilment method. Ideally, it should be already pre-selected
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
As I understand when switching restaurants we keep
takeaway
in the Order object, but while rendering the page we don't includecart[takeaway]
in the form, because the restaurant does not support it. Which makes it impossible to disable this property from the frontend.A possible solution is always sent
/restaurant/{id}/cart/address
request while editing an address, and disable takeaway there