# Abandoned Cart Notification

> Remind customers about items left in their cart.

Most carts are never checked out. An abandoned cart reminder brings those customers back — a notification a day or two later, pointing at the cart they left behind.

> **Note:** Abandoned Cart is a **Premium** campaign type, and it needs push working first — see [Enable Push Notification](https://help.twinr.dev/push/firebase-push-notification/enable-push-notification).

## Set it up

Open **Engage**, click **+ Create campaign**, and choose **Abandoned cart notification**.

Turn on **Abandoned cart reminders**. The settings stay hidden until you do.

![The Abandoned cart notification panel showing Cart detection with Selector and Script options](https://help.twinr.dev/assets/abandoned-cart-detection.png)

## Cart detection

This is how the app knows a cart has something in it. Two ways:

### Selector

Use this when your cart counter has a class or id. Enter it with the right prefix — `.` for a class, `#` for an id:

```
.cart-count
#CartCount
```

Find it by opening your site in a desktop browser, right-clicking the cart counter and choosing **Inspect**.

> **Note:** Put something in your cart first. Many themes hide the counter entirely when the cart is empty, so there is nothing to inspect.

### Script

Use this when your cart counter has no class or id to target. Your script must return `true` when the cart has items and `false` when it does not:

```javascript
if (document.querySelector('.Header__CartDot.is-visible')) {
    true
} else {
    false
}
```

## Message

![The Message, Schedule and Link when tapped fields](https://help.twinr.dev/assets/abandoned-cart-schedule.png)

| Field | What to enter |
| --- | --- |
| **Title**\* | The notification's heading — *You left something behind*. |
| **Message**\* | The line below it — *Your cart is waiting. Complete your order now.* |

The phone preview on the right shows how it will look, with an **iOS / Android** switch.

## Schedule

**Schedule** takes comma-separated days, and sends one reminder for each. `1,3,7` reminds a customer one day, three days and seven days after they abandon.

> **Warning:** Three reminders is plenty. A customer who ignored the first two has decided; a fourth and fifth are how you get your notifications switched off altogether.
> 
> Start with `1,3`. The first day catches genuine distraction — the usual reason a cart is left.

## Link when tapped

**Optional.** Leave it empty and the notification simply opens your app. Enter a URL and it opens that page instead.

Your cart page is the obvious choice: the customer taps the reminder and is looking at exactly what they left.

## Save

Click **Save as draft**. The footer tells you what is still missing until every required field is filled.

> **Warning:** Cart detection depends on your website's markup. A theme update that renames your cart counter stops reminders going out — silently, with no error. Check this after any theme change.

Source: https://help.twinr.dev/push/abandoned-cart-push-notification
