# CartCoupons

> Merchant-curated coupon summary and accessible coupon drawer for Cart V2 profiles.

Canonical URL: https://c22dfdd27662:3005/islands/cart/cart-coupons

Use `CartCoupons` inside `DrawerShell` to show available offers, applied
discounts, estimated savings, and optional manual code entry. Coupon content
comes from the active cart profile's `coupon_settings`.

The effective Cart V2 profile creates this module. Do not embed it in page
source.

## Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `title` | string | No | `"Coupons"` | Heading shown in the coupon summary and drawer |

## Profile module example

```json
{
  "title": "Offers for you"
}
```

## Cart Profile Configuration

Configure the offers through `coupon_settings` on the Cart V2 profile:

```json
{
  "coupon_settings": {
    "enabled": true,
    "allow_manual_entry": true,
    "coupons": [
      {
        "id": "welcome-10",
        "code": "WELCOME10",
        "title": "10% off your first order",
        "value": 10,
        "value_type": "percentage"
      }
    ]
  }
}
```

## Stylable Parts

| Part | Description |
|------|-------------|
| `root` | Outermost coupon container |
| `summary` | Button that opens the coupon drawer |
| `savings` | Applied savings badge |
| `coupon-view` | Coupon list and manual-entry view |
| `panel` | Accessible coupon drawer panel |

## Related Islands

- [DrawerShell](/islands/cart/drawer-shell)
- [CartRewardProgress](/islands/cart/cart-reward-progress)
- [CartSummary](/islands/cart/cart-summary)
- [CartCheckoutButton](/islands/cart/cart-checkout-button)
