DucPhongMa / OODSystem-frontend

https://ood-system-frontend.vercel.app
2 stars 0 forks source link

Frontend - C16. Customer Interface Open/Close Implementation #248

Closed kliu57 closed 6 months ago

kliu57 commented 7 months ago

If the restaurant is open show the banner in the menu page which says pickup open etc If it is closed show a similar banner but says pickup closed (katie)

Also do NOT allow the customer to place the order if the restaurant is closed. When they click place order in the checkout page stop them and give them error message.

Katie - Make it so customers cannot add menu items to cart after restaurant is closed Yumei - Make sure the second customer click "SUBMIT ORDER" button, that the restaurant must be open.

kliu57 commented 6 months ago

I have finished my part.

Menu page will display the open or closed banner depending on restaurant status If restaurant is closed, when user clicks a food item, the button to add the item to the cart is disabled If restaurant is closed, the cart icon on top right is disabled. If restaurant closed after the user already opened the view cart popup, then when they click on "CHECK OUT" button then we run a check to see if restaurant is open, if it is closed, then show error message popup and refresh the page. After the page refresh the above mentioned buttons will be disabled.

kliu57 commented 6 months ago

Yumei has finished her part