How can I attach a terms of service PDF to order confirmation emails?

Hello,

Under my order confirmation email I’ve added the html code “{%- if shop.refund_policy.body != blank -%} {{ shop.refund_policy | attach_as_pdf: “Refunderingspolitik” }}” to attach our refund policy as a PDF. I would like to do the same with our servicebetingelser/terms of service - but I can’t seem to find the correct HTML, can anyone help me? :slightly_smiling_face: It’s a requirement in Denmark.

Kind Regards,

Emma

Hi Emma,

Have you tried shop.terms_of_service?

{{ shop.terms_of_service | attach_as_pdf: "Terms of Service" }}

Best regards,
Lukasz