Any way to attach file to shopify flow email?

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-notification

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

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

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

{%- endif -%}
1 Like

@nmasters
Welcome to Shopify Community,
Kindly check out this link:
https://community.shopify.com/c/shopify-discussions/emailing-customer-with-attachment/td-p/556415#:~:text=Re%3A%20Emailing%20customer%20with%20attachment&text=You%20may%20also%20upload%20the,Click%20Upload%20files.

thank you

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 ?

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 -%}