Skip to main content

For Patients

Review selected items, adjust quantities, and apply discounts before proceeding to checkout.
Before using real payment processing, you’ll need to set up Stripe integration in your Specode project settings. The cart will work for testing purposes, but actual payments require proper payment gateway configuration.

Core Features

Product Collection

  • Add/Remove Items: Simple product management - each item can be added once
  • Subscription Products: Focused on monthly subscription healthcare items
  • Cart Persistence: Save cart contents across browser sessions using localStorage
  • Maximum Items: Limited to 10 products per cart for subscription management

Pricing Display

  • Monthly Pricing: Shows subscription price per month for each product
  • Total Calculation: Automatic total calculation based on subscription prices
  • Quantities: Each product has fixed quantity of 1 (subscription model)

Stock Management

  • Basic Stock Checking: Validates if products are in stock or out of stock
  • Out-of-Stock Display: Visual indication when items become unavailable
  • Add Validation: Prevents adding out-of-stock items to cart

User Workflows

  • Patient Cart Management
1

Login

Patient logs in and accesses dashboard
2

Navigate to shop

Navigate to shop from dashboard
3

Browse items

Browse products and select to add to cart
4

Select items

Browse products and select to add to cart

Usual Component Interactions

The Cart bridges product selection and payment processing: Core Integration:
  • Product Catalog: Items flow from catalog into cart
  • Checkout Component: Cart contents passed to checkout for payment
  • Authentication: User login for saved carts and order history
Common Enhancements:
  • Insurance Verification: Check coverage for eligible items
  • Prescription Management: Validate prescriptions for regulated items
  • Notifications: Alert users about price changes or low stock
  • Patient Dashboard: Access saved carts and reorder past purchases
I