How to include the order PDF in the order confirmation email
If you would like to include a link to the order PDF (that was generated for the order) in the order confirmation email that is sent to the customer then follow these instructions.
The variable order.pdf_url will return the unique URL for where the customer can access the order PDF for their order.
You can include this variable in the order confirmation email by editing the contents of the automatic email.
This variable returns a URL, so you may prefer to include code which makes this a text link or a button.
For a simple text link paste this code in an appropriate location in the 'Email Content (HTML)' section when editing the email's contents:
<p>You can download a PDF for your order by <a href="{{ order.pdf_url }}">clicking here</a>.</p>
To display a button use this code:
<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>