-
Notifications
You must be signed in to change notification settings - Fork 11
Add Dynamic “Add to Cart” Button with Quantity Controls #110
Copy link
Copy link
Closed
Closed
Feature
Copy link
Labels
advancedComplex/advanced tasks or featuresComplex/advanced tasks or featuresfrontendTasks related to the frontend (React, Vite, TailwindCSS, UI components, pages)Tasks related to the frontend (React, Vite, TailwindCSS, UI components, pages)hacktoberfestSpecial issue for HacktoberfestSpecial issue for Hacktoberfesthacktoberfest-2025Special issue for Hacktoberfest 2025Special issue for Hacktoberfest 2025priority: highNeeds attention ASAPNeeds attention ASAPreactReact components & UI logicReact components & UI logic
Milestone
Metadata
Metadata
Assignees
Labels
advancedComplex/advanced tasks or featuresComplex/advanced tasks or featuresfrontendTasks related to the frontend (React, Vite, TailwindCSS, UI components, pages)Tasks related to the frontend (React, Vite, TailwindCSS, UI components, pages)hacktoberfestSpecial issue for HacktoberfestSpecial issue for Hacktoberfesthacktoberfest-2025Special issue for Hacktoberfest 2025Special issue for Hacktoberfest 2025priority: highNeeds attention ASAPNeeds attention ASAPreactReact components & UI logicReact components & UI logic
Type
Fields
Give feedbackNo fields configured for Feature.
Projects
StatusShow more project fields
Done
Priority: High
Difficulty: Intermediate
Type: Frontend (React + Tailwind)
Description:
Update the “Add to Cart” functionality to dynamically reflect product quantity and improve user experience.
When a user clicks “Add to Cart”, the product should automatically open the cart menu (linking to the existing cart feature task).
The button text should change dynamically to show quantity controls (
+/–) and update the cart state in real-time.Requirements:
Quantity: 1 [ + ] [ – ]+→ increase quantity in cart.–→ decrease quantity in cart.0, revert back to “Add to Cart”./collections/:name)AddToCartButton.tsx) and import it into all product cards.Assets:
Acceptance Criteria:
Notes: