|
| 1 | +--- |
| 2 | +description: Learn how to configure the abandoned cart notification. |
| 3 | +--- |
| 4 | + |
| 5 | +# Configuring Abandoned Cart Notification |
| 6 | + |
| 7 | +{% hint style="info" %} |
| 8 | +Available from Umbraco Commerce 16.1.0 |
| 9 | +{% endhint %} |
| 10 | + |
| 11 | +## Abandoned Cart Recurring Background Job |
| 12 | + |
| 13 | +The abandoned cart recurring background job automatically sends reminder emails to customers about items left in their shopping carts. To configure it, follow these steps: |
| 14 | +1. Go to **Store Settings** in your admin dashboard. |
| 15 | +2. Select the store you want to configure. |
| 16 | +3. Navigate to the **Cart Settings** section. |
| 17 | +4. Choose your **Abandoned Cart Email Template**. If the email template is not set, no notification will be sent; however, webhooks can still be triggered. |
| 18 | +5. Set the number of minutes that a cart must be inactive before it is considered abandoned. If the value is 0, the abandoned cart detection is disabled. |
| 19 | +6. Enter the landing page URL where customers will be redirected when they click the links in the abandoned cart email. |
| 20 | +7. Click the **Save** button to apply your changes. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +The advanced settings can be configured in the `appsettings.json` file: |
| 26 | + |
| 27 | +```json |
| 28 | +{ |
| 29 | + "Umbraco" : { |
| 30 | + "Commerce": { |
| 31 | + "AbandonedCartNotifier": { |
| 32 | + "Enable": true, // Optional. Set to false if you want to disable the recurring background job |
| 33 | + "FirstRunTime": "", // Optional |
| 34 | + "Period": "1.00:00:00", // Optional |
| 35 | + "NotificationBatchSize": 20, // Optional |
| 36 | + } |
| 37 | + } |
| 38 | + } |
| 39 | +} |
| 40 | +``` |
| 41 | + |
| 42 | +The `appsettings.json` section supports the following keys: |
| 43 | + |
| 44 | +| Key | Description | |
| 45 | +| -- | -- | |
| 46 | +| `Enable` | Enable this feature. |
| 47 | +| `FirstRunTime` | The time to first run the scheduled cleanup task, in crontab format. If empty, runs immediately on app startup. | |
| 48 | +| `Period` | How often to run the task, in timespan format. Defaults to every 24 hours. | |
| 49 | +| `NotificationBatchSize` | The number of abandoned carts processed each time the job is run. | |
| 50 | + |
| 51 | +## Abandoned Cart Webhook |
| 52 | +A new webhook called Cart Abandoned has been added. It is triggered when the Abandoned Cart Recurring Background Job detects any abandoned carts. The POST payload will look like this: |
| 53 | +```json |
| 54 | +{ |
| 55 | + "orderIds": [ |
| 56 | + "8b2cfad6-a0eb-4b87-ad86-019768ad1308", |
| 57 | + "95aa34bd-8a01-45a4-9492-019768ac6c61", |
| 58 | + "db9a2cc5-621a-40a3-9fab-019768a79d0a" |
| 59 | + ] |
| 60 | +} |
| 61 | +``` |
| 62 | + |
| 63 | +## Abandoned Cart Conversion Rates Widget |
| 64 | + |
| 65 | +The widget shows how many notified abandoned carts are recovered through completed purchases, reflecting your store’s abandoned cart conversion rate. |
| 66 | + |
| 67 | + |
0 commit comments