Letting recipients download their digital gift card as a PDF
You can give recipients a PDF of their gift card by adding a download button to the gift card recipient email. The button uses the Download URL tag, which links to a PDF of that recipient's own card.
Add the download button
- Click the gear icon at the top right of the dashboard to open Settings, then click Giftcards under Functionalities. This isn't the Settings item in the sidebar of Store → Giftcards. That one holds a programme's own settings, like its name and expiry, and no emails.
- Under Giftcard recipient emails, click View details on the email, then Edit email.
- On the Content step, add a Button block where the download should go, and give it a text such as "Download your gift card".
- Select the button and open the arrow in its Link field. Under Giftcard, choose Download URL. This fills in
{{giftcard.download_url}}. You can also click Download URL in the Tags panel on the left to copy the tag, and paste it into Link. - Click Publish to check the email for problems. Your changes are saved while you edit, so recipients get the new version as soon as it's saved.
If you have more than one recipient email, add the button to each one that should offer the PDF. Orders through the API, the contacts portal and the widget use the email marked Default, unless a different email is specified.
What's on the PDF
The PDF has a fixed layout that you can't edit. It shows:
- your logo
- the name of the gift card programme
- the card number and a QR code
- the amount
- the expiration date and time, if the card has one
The logo is the one part you control. It's the Logo (small) from Settings → Brand kit. Only admins see Brand kit. If you haven't uploaded one, the PDF has no logo.
What goes wrong
- The button does nothing, or opens the wrong page. The tag went into the button's text instead of its Link field. Put
{{giftcard.download_url}}in Link. - Recipients don't see the button. You added it to a different email than the one they got. See How to create gift card recipient emails.