Suspended cart receipt template

Ask about this Page
Copy for AI
View as Markdown

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 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.
View and edit this receipt in the InStore Center by creating a Receipt Template set that includes the Suspend_Cart_Receipt_Template template, then opening the template.

Template

Suspended cart receipt templatetext
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 numberSource and description of field
1Centers the following text.
2Inserts the logo image previously loaded into printer memory at position 32 32 (not rendered in SVG). Refer to printer documentation for logo injection.
3Inserts a blank line (line feed).
4Inserts the *** Suspended Transaction *** heading with emphasis.
5Inserts the location key from the cart's suspension data (cart.suspension.locationKey).
6Inserts a blank line (line feed).
7Left aligns the following text.
8Starts a two-column table. Left column labels, right column values. Inserts timestamp_formatted (server-formatted).
9Inserts the workstation key from the cart's suspension data (cart.suspension.workstationKey).
10Inserts the user's full name (cart.suspension.byUser.fullName). If the full name isn't set, inserts the username (cart.suspension.byUser.username).
11Prints the following line only when cart.suspension.reference is set.
12Inserts the suspension reference (cart.suspension.reference).
13Ends the cart.suspension.reference condition.
14Inserts cart.suspension.reason, the reason selected when suspending the cart. For more information about reasons, see Reference lists.
15Inserts the cart key (cart.key).
16Centers the following text.
17Inserts a barcode of the cart key. Scan this barcode to resume the cart.
18Left aligns the following text.
19-20Inserts blank lines (line feeds).
You don't need a cutfeed directive. ReceiptLine adds this automatically at the end of the template.