# Abandoned cart

URL: https://samva.dev/templates/abandoned-cart

Bring a shopper back to a cart they left, with the items as swatches, the subtotal, an optional offer and code, a few reassurances and one checkout action.

## Guidance

- Pass the items as a list of name, variant, quantity, price and swatch, and the reassurances as a list of title and detail. A cart of two items and one of seven render from the same source.
- The swatch is a tone name, not a color: one of slate, brass, ink, oxblood, moss, paper or walnut. Each is a swatch token in starter.css, so a store restyles them through its theme. The incentive is optional: omit it, as the default fixture does, and the email carries no offer; long-content includes a code with its last day.
- When the cart was left and when the offer ends arrive as words, because the template never reads the clock. It is written for Quillfield, a fictional stationery shop. There are no pictures to replace, since the swatch tiles are built in markup.

## Variables

| Variable | Meaning |
| --- | --- |
| assurances | Value for assurances. |
| cartUrl | Link for cart. |
| currency | Value for currency. |
| firstName | Value for first name. |
| helpUrl | Link for help. |
| homeUrl | Link for home. |
| incentive | Value for incentive. |
| items | Value for items. |
| preferencesUrl | Link for preferences. |
| savedWhen | Value for saved when. |
| subtotal | Value for subtotal. |
| unsubscribeUrl | Link for unsubscribe. |
