How to include the order PDF in the order confirmation email

If you'd like to include a link to the order PDF (that's generated for the order) in the order confirmation email that's sent to the customer then you can do so by following the instructions below.

The variable order.pdf_url will return a unique URL for where the customer can access the order PDF for the order.

This variable can be included in your order confirmation email, which you can edit by following the instructions here.

This variable will return a URL so you may prefer to include code which makes this a text link or a button, following the guidance shown below.

For a simple text link:

<p>You can download a PDF for your order by <a href="{{ order.pdf_url }}">clicking here</a>.</p>

For a button:

<p>You can download a PDF for your order by clicking the button below.</p>
<p><a href="{{ order.pdf_url }}" style="color: #fff; background-color: #00beed; font-size: 15px; padding: 15px 25px; display: inline-block;">download the order pdf</a></p>