beardofedu / beardofedu/agentic-workflows-projects

[PROMO-009] Promotions: Coupon code entry at checkout

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
enhancement promotions sprint-3
Dominant language
CSS
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Overview
Add a coupon code input to the checkout flow. When a valid code is entered, the discount is applied to the cart in real time.

## Acceptance Criteria
- [ ] Coupon input field in the cart drawer and on the checkout page
- [ ] `POST /api/promotions/coupon/validate` — validates code and returns discount details
- [ ] Applied discount line shown in cart summary (e.g., "SAVE20 — 20% off: -$24.00")
- [ ] Only one coupon can be active at a time (clear button to remove)
- [ ] Expired, invalid, and already-used codes show specific error messages
- [ ] Coupon codes are case-insensitive
- [ ] Coupon application survives page refresh (stored in cart state)

## ⚠️ Status: Blocked
Blocked by both #11 (coupon codes are a discount rule type) and #3 (cart API needed for server-side coupon validation).

## Depends On
- #11 PROMO-007 — coupon codes are implemented as promotion rules
- #3 CART-003 — cart API applies the coupon server-side

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.