FROM CACHE - en_header

Any way to attach file to shopify flow email?

Solved
nmasters
Excursionist
16 1 2

Hi,

 

We need to email the users the terms and condition as PDF so that the customer have a perment medie = it cannot be a link to a file, the file or text need to be sent to the user.. today we have the hole Terms and condition in the "Thanks for your order email" but it make the email REALLY long.. so hoping that maybe Shopify Flow can do this for us ?

We have been trying this code in the thanks for your order email, but it seems like it only works in Germany, so hoping making flow can do this:
https://help.shopify.com/da/manual/intro-to-shopify/initial-setup/sell-in-germany/germany-email-noti... 

 

 

 

{%- if shop.refund_policy.body != blank -%}

  {{ shop.terms_of_service | attach_as_pdf: "Handelsbetingelser" }}

  {{ shop.refund_policy | attach_as_pdf: "Standardfortrydelsesformular" }}

{%- endif -%}

 

 

 




 

 

Accepted Solution (1)

Accepted Solutions
nmasters
Excursionist
16 1 2

This is an accepted solution.

It only works "live" but it work.. this code attach the terms and condition to the Order Confirm email.. just add it in the end..

 

{%- IF SHOP.REFUND_POLICY.BODY != BLANK -%}
{{ shop.terms_of_service | attach_as_pdf: "Handelsbetingelser" }}
{{ shop.refund_policy | attach_as_pdf: "Standardfortrydelsesformular" }}
{%- endif -%}

View solution in original post

Replies 3 (3)
Zworthkey
Shopify Partner
5581 642 1512
nmasters
Excursionist
16 1 2

Thanks for this and had seen it, but it do not help as we need to attach the PDF in a email that we give the user - just now it cannot we a link.. but the legal guys we are speaking to is say if we can get the code to work this will do... but the code only seems to work in Germany and we cannot see anyway to automate sending the PDF to the customers ?

nmasters
Excursionist
16 1 2

This is an accepted solution.

It only works "live" but it work.. this code attach the terms and condition to the Order Confirm email.. just add it in the end..

 

{%- IF SHOP.REFUND_POLICY.BODY != BLANK -%}
{{ shop.terms_of_service | attach_as_pdf: "Handelsbetingelser" }}
{{ shop.refund_policy | attach_as_pdf: "Standardfortrydelsesformular" }}
{%- endif -%}