sajalbatra / foodzy

A platform for small food sellers by providing them with a digital space to showcase their menus.
https://foodzyy.vercel.app/
14 stars 25 forks source link

Feature Request: Add to Cart functionality for menu items #72

Open Piyush-Goenka opened 3 hours ago

Piyush-Goenka commented 3 hours ago

Description: We need to implement an "Add to Cart" functionality on the Foodzyy website. This feature will allow users to add menu items to their cart while browsing, and the cart will store the items selected by the user for checkout.

Expected Behavior: •⁠ ⁠Each menu item should display an "Add to Cart" button. •⁠ ⁠When a user clicks "Add to Cart," the item should be added to their cart. •⁠ ⁠A cart icon or widget should be visible on the page, showing the current number of items added. •⁠ ⁠Users should be able to view the cart contents with options to increase, decrease, or remove items before proceeding to checkout.

Implementation Details: •⁠ ⁠Frontend should handle the "Add to Cart" button for each menu item. •⁠ ⁠Cart state should be maintained using local storage, session storage, or backend APIs (if already available). •⁠ ⁠Update the cart icon to display the current count of items added to the cart. •⁠ ⁠A cart page should be created where users can view all added items and modify quantities or remove items. •⁠ ⁠Considerations for responsiveness and mobile views.

Technical Considerations: •⁠ ⁠JavaScript/React for handling UI interactions. •⁠ ⁠Backend (if required) for storing and updating cart data, potentially using REST API or similar approach. •⁠ ⁠Ensure that the cart persists during the user's session, even if they navigate away from the menu page.

Priority: Medium

Piyush-Goenka commented 3 hours ago

Hey @sajalbatra I would like to solve this issue. Please assign this issue to me.