# Suspended cart receipt template

**Use this sample template to create suspended cart receipts.**

A suspended cart receipt prints when a user suspends a cart and the [`Print_Receipt_for_Suspend_Cart`](/instore/customization/administration-parameters.md#print-parameters) parameter is set to `true`. The receipt includes a barcode of the cart key, which store associates can scan to resume the cart.

For information about how to set up Suspend Cart and Resume Cart, see [Suspend Cart and Resume Cart](/instore/customization/parameter-based-features.md#suspend-cart-and-resume-cart).

View and edit this receipt in the InStore Center by creating a [Receipt Template set](/instore/implement-instore/receipts/create-receipt-template.md) that includes the `Suspend_Cart_Receipt_Template` template, then opening the template.

## Template

```text title="Suspended cart receipt template"
1. `{align:center}`
2. `{{logo 32 32}}`
3.
4. `^^*** Suspended Transaction ***`
5. `{{cart.suspension.locationKey}}`
6.
7. `{align:left}`
8. `|Date: |{{timestamp_formatted}}`
9. `|Workstation: |{{cart.suspension.workstationKey}}`
10. `|Cashier: |{{#if cart.suspension.byUser.fullName}}{{cart.suspension.byUser.fullName}}{{else}}{{cart.suspension.byUser.username}}{{/if}}`
11. `{{#if cart.suspension.reference}}`
12. `|Reference: |{{cart.suspension.reference}}`
13. `{{/if}}`
14. `|Reason: |{{cart.suspension.reason}}`
15. `|Transaction #: |{{cart.key}}`
16. `{align:center}`
17. `{{barcode cart.key}}`
18. `{align:left}`
19.
20.
```

## Line number descriptions

| Line number | Source and description of field |
| --- | --- |
| 1 | Centers the following text. |
| 2 | Inserts the logo image previously loaded into printer memory at position `32 32` (not rendered in SVG). Refer to printer documentation for logo injection. |
| 3 | Inserts a blank line (line feed). |
| 4 | Inserts the `*** Suspended Transaction ***` heading with emphasis. |
| 5 | Inserts the location key from the cart's suspension data (`cart.suspension.locationKey`). |
| 6 | Inserts a blank line (line feed). |
| 7 | Left aligns the following text. |
| 8 | Starts a two-column table. Left column labels, right column values. Inserts `timestamp_formatted` (server-formatted). |
| 9 | Inserts the workstation key from the cart's suspension data (`cart.suspension.workstationKey`). |
| 10 | Inserts the user's full name (`cart.suspension.byUser.fullName`). If the full name isn't set, inserts the username (`cart.suspension.byUser.username`). |
| 11 | Prints the following line only when `cart.suspension.reference` is set. |
| 12 | Inserts the suspension reference (`cart.suspension.reference`). |
| 13 | Ends the `cart.suspension.reference` condition. |
| 14 | Inserts `cart.suspension.reason`, the reason selected when suspending the cart. For more information about reasons, see [Reference lists](/instore/use-the-instore-center/reference-lists.md#reference-list-entry-codes). |
| 15 | Inserts the cart key (`cart.key`). |
| 16 | Centers the following text. |
| 17 | Inserts a [barcode](/instore/implement-instore/receipts/receipt-helpers.md#barcode) of the cart key. Scan this barcode to resume the cart. |
| 18 | Left aligns the following text. |
| 19-20 | Inserts blank lines (line feeds). |

> You don't need a `cutfeed` directive. ReceiptLine adds this automatically at the end of the template.

## Related pages

- [Area overview page with navigation](/instore.md)
- [Previous page: Refund receipt template](/instore/implement-instore/receipts/refund-receipt.md)
- [Next page: Helpers for receipt templates](/instore/implement-instore/receipts/receipt-helpers.md)
- [Search documentation and API specs](/search.md)