If your store allows for customer accounts, then it is also possible to add the PDF download link to the customer account page of your theme.

NOTE: This is an advanced tutorial that requires editing your theme files slightly. Knowledge of HTML and Liquid is required. Consider hiring a Shopify Expert if you aren't comfortable doing the steps in the tutorial.

Step 1

Copy your unique link code provided on the last step of the in-app setup instructions. It will look similar to this:

<p><a target='_blank' href='https://yost-tromp6906.myshopify.com/apps/download-pdf/49df5d467efaadfbe466/{{ id | times: 6916 }}/{{ order_number | default: number }}.pdf'>Click here to download your PDF receipt</a></p>

Important: Do not copy the above code, you must use the code provided to you in the app.

Step 2

Modify the code from Step 1 above by removing the <p> tag at the start and the </p> tag at the end.

Add order. infront of the id  variable and the order_number  variable.

The final code should look similar to this:

<a target='_blank' href='https://yost-tromp6906.myshopify.com/apps/download-pdf/49df5d467efaadfbe466/{{ order.id | times: 6916 }}/{{ order.order_number | default: number }}.pdf'>Click here to download your PDF receipt</a>


Step 3

Navigate the the themes page in your Shopify admin: https://shopify.com/admin/themes

Step 4

Click on the "Actions" dropdown and select "Edit code"

Step 5

In the list of templates on the left, click on the file name "customers/account.liquid"

Step 6

Add the 2 lines of code, as shown in the following screenshot:

Note: Depending on your theme, the file may look slightly different. The important part is to add the table header line (th) and the new table cell with the link code (td).

Step 7

Click Save and preview your changes by navigating to the /account page of your website. It will look similar to this:

Did this answer your question?