gift_card.liquid template renders the gift card page, which displays the gift card issued to a customer upon purchase.
gift_card template is located in the
templates directory of the theme:
This template can't be a JSON template.
You can include the following in your gift_card template or a section inside of the template:
The gift_card objectAnchor link to section titled "The gift_card object"
You can access the Liquid
gift_card object to display the gift card details.
When working with the
gift_card template, you should familiarize yourself with the following:
- Adding a QR code link to the store
- Including Apple Wallet passes to the template
- Displaying only the gift card details
<body> elements of the page, respectively:
Apple Wallet passesAnchor link to section titled "Apple Wallet passes"
You can include Apple Wallet passes by adding the following snippet to the
<body> element of the page:
Display only the gift card detailsAnchor link to section titled "Display only the gift card details"
If you don’t want to include theme elements, like the header and footer, you can choose to render the
gift_card.liquid template without no layout, or a custom layout, using the Liquid layout object.