Skip to content

QC-68: Customer checkout completion + order tracking workflow #127

@DarshanCode2005

Description

@DarshanCode2005

Summary

Customer checkout completion + order tracking workflow

Milestone: M2 Customer
Labels: frontend, customer

Learn

  • Post-purchase UX patterns
  • Cart clearing after successful order
  • Deep linking to order detail

Build

  • CheckoutForm success: primary CTA 'View order' → /customer/orders/[orderId]
  • Secondary CTA 'Continue browsing' → /customer/shops
  • Clear placed shop's cart lines after successful order (verify/create if missing)
  • Order detail page: clear back link to orders list + link to shop
  • CustomerOrdersList empty state already links to shops — ensure order cards are reachable from nav (QC-67)

Files

  • components/customer/CheckoutForm.tsx
  • app/(customer)/customer/orders/[orderId]/page.tsx
  • components/customer/CustomerOrdersList.tsx
  • store/cart.ts

Acceptance criteria

  • After COD or Stripe order, user reaches order detail in one click
  • Cart for that shop is empty after successful placement
  • Order detail links back to orders list and shop browse
  • No dead-end success screen (order ID only with no next step)

Depends on

Metadata

Metadata

Assignees

No one assigned

    Labels

    customerCustomer role featuresfrontendUI pages and components

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions