Skip to main content

Add a download link to Shopify’s emails

Choosing Link in a Shopify email on the Add delivery page Shopify emails your customers when they place an order, when you ship it, when you refund it, and at many other moments. You can put a link to any Foliant document in those emails. Shopify sends its usual email, and the customer opens the PDF from the link. No second email is sent, and it works on every plan.

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

  1. Go to Delivery and select Add delivery.
  2. Choose the Template, then Link in a Shopify email.
  3. 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.
  4. Select Add delivery. The delivery’s page opens with the install guide.
The delivery’s page walks you through four steps.
  1. Copy the link code. Select Copy code. The code is a short piece of HTML with your link text.
  2. 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.
  3. 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.
  4. 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.
Then select Done at the top of the page. Foliant shows Marked as installed and the delivery’s status changes to Installed. Rather not edit Shopify’s emails? Add the delivery as On the customer’s order pages instead: the link shows on the order status and thank you pages, with no code. See Show PDF links on the order status and thank you pages. Or select Contact support at the end of the guide, and we’ll help you add the 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. 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.