How To Attach PDF to Email When Submitting Order in Woocommerce

WooCommerce
3 September, 2024 22:30:51
tripros
Topics: 1
Messages: 2
Created a packing slip template in E2PDF that we'd like to be emailed to customers who submit orders in Woocommerce and to be attached to the order confirmation/thank you email sent by woocommerce. Can't seem to find any details here to do that with E2PDF. Can anyone advise? Thanks much!
3 September, 2024 22:33:08
tripros
Topics: 1
Messages: 2
Noticed that in E2PDF settings, there is an area for Checkout but the template we created is not available in the drop down, although it is available in every other option.
4 September, 2024 02:49:06
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

In the "E2Pdf" -> "Settings" -> "WooCommerce":

My Orders Actions, Order Details, Admin Order List Actions, Admin Order Details - can accept just E2Pdf Templates that are "Activated" and are connected to "WooCommerce" -> "Orders".

Cart, Checkout - can accept just E2Pdf Templates that are "Activated" and are connected to "WooCommerce" -> "Cart".

That functionality is designed to output the PDF download links in the selected sections.

--------------------

If you E2Pdf Template is connected to "WooCommerce" -> "Products" / "Variations" - it's possible to use [e2pdf-download id="1"] shortcode as the product File URL

--------------------

If you need to attach the PDF file as an attachment, it should use the [e2pdf-attachment id="1"] shortcode in the required WooCommerce mail body. Depending on the connection, there are a plenty number of options that can be configured to send PDFs:

Documentation with the available options can be found here: https://e2pdf.com/docs/extensions/woocommerce#e2pdf-attachment

Documentation for E2Pdf Template is connected to "WooCommerce" -> "Orders": https://e2pdf.com/docs/extensions/woocommerce#e2pdf-attachment-orders

Documentation for E2Pdf Template is connected to "WooCommerce" -> "Products / Variations": https://e2pdf.com/docs/extensions/woocommerce#e2pdf-attachment-products

* [e2pdf-download id="1"] / [e2pdf-attachment id="1"] - 1 is the ID of your E2Pdf Template.

If you still fail with setup, let us know please what is your E2Pdf Template connection and some screenshots of the shortcodes usage. You can mark the message as "private" so only support can see your message.
We would really appreciate your feedback at WordPress.org!