Use this sample template to generate gift receipts.
Generate a gift receipt when a customer intends to gift an item. A gift receipt provides proof of purchase that lets the recipient return the item without seeing prices.
You can generate a gift receipt in the InStore colleague app by selecting the Gift Receipt checkbox during checkout, or later the same day from the Reprint Receipt area.
To view or adapt the gift receipt template in the InStore Center, create a new Receipt Template set that includes the gift receipt template, then open it for editing.
Template
The numbered listing shows each line of the template followed by an explanation in line descriptions.
1. {{#giftable_items}}
2. {{#if gift_receipt}}
3. {align:center}
4. {logo ../logo}
5. {{../location.location_name}}
6. {{../location.address_line_1}}
7. {{../location.city}}{{../location.state}}{{../location.postal_code}}
8. {{../location.telephone_number}}
9. Date: {{date ../timestamp_formatted}}
10. {{linefeed}}
11. {aligntextcenter}*** Gift Receipt ***
12. {aligntextleft}
13. |Item: {{description}}
14. {{#if brand}}|Brand: {{brand}}{{/if}}
15. {{#if color}}|Color: {{color}}{{/if}}
16. {aligntextcenter}
17. Order: {{../order_number}}
18. {{barcode ../order_number}}
19. {width:*; align:center}
20. {{linefeed}}
21. {{aligntextcenter}}*** Gift Receipt ***
22. {{/if}}
23. {{/giftable_items}}
Line descriptions
Location and address data is pulled from fields on the Location Information page in the InStore Center.
Line | Description |
---|---|
1 | Starts a section iterating over giftable_items . |
2 | Checks whether the current item is marked for a gift receipt. If true, lines 3–21 render. |
3 | Centers the following text. |
4 | Inserts the injected logo stored in printer memory at coordinates 32 32 (not shown in SVG preview). Refer to printer documentation for logo support. |
5 | Inserts the location name (Location Name). |
6 | Inserts the first address line (Address Line 1). |
7 | Inserts city, state (or province/county), and postal code. |
8 | Inserts the telephone number. |
9 | Inserts "Date:" followed by the formatted date from timestamp_formatted . |
10 | Inserts a blank line. |
11 | Inserts the centered text "Gift Receipt" with level-three emphasis. |
12 | Left-aligns the text in subsequent table lines. |
13 | Adds a table row that displays a plain-text label "Item:" and the description , which is the name of the item. |
14 | Sets a condition that if the item has an attribute of brand , a row in the current table is created with the plain-text label "Brand" and the value of brand , then closes the condition. |
15 | Sets a condition that if the item has an attribute of color , a row in the current table is created with the plain-text label "Color" and the value of color , then closes the condition. |
16 | Centers subsequent text. |
17 | Inserts the label "Order:" followed by the order_number . |
18 | Renders a barcode representation of the order_number . |
19 | Sets width and centers alignment for the block. |
20 | Inserts a blank line. |
21 | Inserts the plain-text "Gift Receipt" with level-three emphasis and center-aligns it. |
22 | Ends the conditional started on line 2. |
23 | Ends the section started on line 1. |
You don't need a
cutfeed
directive. ReceiptLine automatically adds this at the end of the template.