Skip to content

🛒 Implement Shopping Cart Component #2

@Pupler

Description

@Pupler

Task Description

Create a persistent shopping cart that displays added medicines, calculates totals, and allows item management.

Requirements:

  1. Cart Component (Cart.tsx) with:
    • List of added medicines (name, price, quantity)
    • Total price calculation
    • Remove item functionality
    • Clear all button
  2. Cart State Management using React Context or Zustand
  3. Cart Icon in header with item count badge

Acceptance Criteria:

  • Cart displays all added medicines with correct quantities
  • Total price updates automatically
  • Items can be removed individually or all at once
  • Cart icon shows real-time item count

Technical Details:

  • File: src/components/Cart/Cart.tsx
  • State Management: React Context (src/context/CartContext.tsx)
  • Icons: Cart icon with counter badge

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions