Gift receipt template

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.
Gift receipt template sourcetext
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.
LineDescription
1Starts a section iterating over giftable_items.
2Checks whether the current item is marked for a gift receipt. If true, lines 3–21 render.
3Centers the following text.
4Inserts the injected logo stored in printer memory at coordinates 32 32 (not shown in SVG preview). Refer to printer documentation for logo support.
5Inserts the location name (Location Name).
6Inserts the first address line (Address Line 1).
7Inserts city, state (or province/county), and postal code.
8Inserts the telephone number.
9Inserts "Date:" followed by the formatted date from timestamp_formatted.
10Inserts a blank line.
11Inserts the centered text "Gift Receipt" with level-three emphasis.
12Left-aligns the text in subsequent table lines.
13Adds a table row that displays a plain-text label "Item:" and the description, which is the name of the item.
14Sets 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.
15Sets 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.
16Centers subsequent text.
17Inserts the label "Order:" followed by the order_number.
18Renders a barcode representation of the order_number.
19Sets width and centers alignment for the block.
20Inserts a blank line.
21Inserts the plain-text "Gift Receipt" with level-three emphasis and center-aligns it.
22Ends the conditional started on line 2.
23Ends the section started on line 1.
You don't need a cutfeed directive. ReceiptLine automatically adds this at the end of the template.