How to Attach a PDF File to Customer Notification Emails đź“„
Jan Nemec, Co-Founder, UX & Front-end Engineer

Learn how to easily add a PDF attachment with terms and conditions to your Shopify customer notification email. This will ensure you are fully compliant with the regulation from the European Union.
Why is it necessary?
One of the current obligations of e-shop operators within the European Union is to supply customers with terms and conditions in text form. It is crucial that these terms and conditions are provided in an immutable format that is not subject to change by the e-shop over time. Therefore, it is no longer sufficient to simply provide a link that redirects the customer to an external site.
Sending documents in PDF format, ideally together with an instant order confirmation, has proven to be an efficient and practical solution to this obligation. This practice not only facilitates compliance with legal requirements, but also contributes to transparency and trust between the business and the customer.
Add a PDF file with Terms and Conditions to your customer notification email 👇🏻
- Make sure you have filled in the terms and conditions in Settings > Policies
- Go to Notification settings > Customer notifications > Order confirmation
- In the top right corner, select 'Edit code'. Alternatively, 'Localize' if you want to add it to a language version other than your default language
- Copy this code and paste it at the very end of the email template
{{ shop.terms_of_service | attach_as_pdf: "VšeobecnĂ© obchodnĂ podmĂnky" }}
- Save the changes made and perform a test order
đź’ˇ Pro tip:
To add additional PDF files with terms and conditions to the email, simply repeat the same process with the codes below.
{{ shop.refund_policy | attach_as_pdf: "Refund policy" }}
{{ shop.shipping_policy | attach_as_pdf: "Shipping policy" }}
{{ shop.contact_information | attach_as_pdf: "Contact information" }}