The gift_card.liquid template renders the gift card page, which displays the gift card issued to a customer upon purchase.

An example of the gift card template in Dawn


The 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:

You can also include a QR code or Apple wallet passes.

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:

QR code

You can include a QR code link to the store by adding JavaScript that generates a QR code. Add the following snippets in the <head> and <body> elements of the page, respectively:

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 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.

For example:

On this page