Add PDF to email "order confirmation"

emmajuhlin
New Member
3 0 0

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? It's a requirement in Denmark. 

Kind Regards,

Emma

0 Likes

Hi Emma,

Have you tried shop.terms_of_service?

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

 

Best regards,
Lukasz

I'm a software engineer. I make things happen automatically.
0 Likes