# Gift receipt template Use this sample template to generate gift receipts. You can generate gift receipts at the request of a customer who plans to gift the item to someone else. The purpose of a gift receipt is to provide a proof of purchase that allows the recipient of the gifted item to return it to the store. In the InStore POS, you can generate a gift receipt by selecting the **Gift Receipt** checkbox during checkout or later the same day by going to the **Reprint Receipt** area. You can view the gift receipt template in the InStore Center by creating a new [Receipt Template set](/instore/implement-instore/receipts/create-receipt-template.md) that includes the gift receipt template, then editing it. ## Template ``` 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 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. ## Related pages - [Area overview page with navigation](/instore.md) - [Previous page: Sales receipt template](/instore/implement-instore/receipts/sales-receipt.md) - [Next page: Nullified payment receipt template](/instore/implement-instore/receipts/nullified-payment-receipt.md) - [Search documentation and API specs](/search.md)