Hey @JADavey,
Thanks for your question. Right now, it’s not possible to add a PDF as an attachment, or have a download button that downloads an invoice. The best way to do this would be to host the PDFs on your site, and include a link to those files in the email.
Are you sending the links to the invoices in the event data for the event that triggers your flow? If so, you can set this up quite easily. If not, you’d need to create a custom event that triggers when somebody takes an action that generates an invoice, and have that event send the link to the invoice to Klaviyo. You could do this using the Create Event endpoint.
If you have any additional questions about this, let me know!
-Byrne
Hey Byrne, thank you for responding.
So at this stage we aren’t sending the invoices at all (through Klaviyo). The PDF file is being sent from WooCommerce. The invoices are created automatically through WooCommerce as soon as somebody places an order, I was more or less hoping I could have a button in my order confirmation flow that was dynamic and linked to the order placed by the customer.
I’m not a web developer though so I assume creating this is likely above my head, I’ll forward what you’ve said to our development team and get them to try and come up with something.
If there was anything else that I should tell them please let me know :)
Hi @JADavey !
Wanted to follow up on this - the only way to dynamically include a link to their invoice would be to include this link in the Placed Order event data that is sent from WooCommerce so you can input a dynamic variable into your button. I am not sure if they’re able to add this into the event data, or if you would need to create a custom Placed Order event, but it would be worth asking the WooCommerce team!