Add a download link to Shopify’s emails

Before you start
- You need a template for the document.
- You’ll edit the email’s code in Shopify (Settings › Notifications in the Shopify admin), so you need permission to change your store’s notification settings.
Add the delivery
- Go to Delivery and select Add delivery.
- Choose the Template, then Link in a Shopify email.
- Under Which Shopify email, pick the email the link goes in. Each email says when Shopify sends it and whether it can be turned off. See Shopify emails you can add a link to.
- Select Add delivery. The delivery’s page opens with the install guide.
Paste the link into the email
The delivery’s page walks you through four steps.- Copy the link code. Select Copy code. The code is a short piece of HTML with your link text.
- Open the email template. Select Open email name (for example Open Order confirmation). This opens the email in the Shopify admin. You can also go there yourself: in Shopify go to Settings › Notifications › Customer notifications, open the email, then select Edit code.
- Paste the code. Paste it just below the order summary so it sits next to the totals. For some emails, Show where to paste shows an example.
- Save the template. Save the email in Shopify. Customers then find the link in it. For some emails, View example shows how the finished email looks.
Test your link
Place a test order (or trigger the email another way) and open the link in the email. After the first download through the link, the delivery shows as Live.Change the link
On the delivery’s page, under Link:
Save your changes with the save bar. Until you save, Foliant shows Save your changes to see the code to paste. After you change the link text, copy the code again and replace the old code in Shopify’s email.
Statuses
The Status card on the right also shows when you marked it installed. The Document card links to Edit template and Open a PDF for your latest order.
Good to know
- Shopify sends the email; the PDF is made when someone opens the link. If Shopify doesn’t send the email for an order, that customer doesn’t get the link either.
- Each template can be linked once per Shopify email. You can link several templates in the same email, each with its own delivery and code.
- In the Order refund email, the link opens the credit note for that refund.
- In the Draft order invoice email, the link opens the document for the draft order (for example a quote).
- Your own downloads from inside Foliant don’t count as a use of the link.
- Remove stops Foliant tracking the link. A link already pasted in Shopify’s email still downloads the PDF, so remove it from the email in Shopify too.