Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Adding Invoice PDF to WooCommerce Order Emails

Adding Invoice PDF to WooCommerce Order Emails

Last updated on October 29, 2024

WooCommerce PDF Invoices, Packing Slips and Credit Notes plugin allows attaching PDF invoices to the default WooCommerce order emails. In addition to that, you can print and download invoices from order emails, order listing page, and order details page. Follow the below steps to attach PDF invoices to order emails:

  1. Set up automatic invoice creation for multiple order statuses.
  2. Attach the generated invoice as a PDF to the order emails.
  3. Enable the printing option to allow printing directly from the email.
  4. Save the settings.

Step 1: Set up automatic invoice creation

Successfully create an invoice by following the steps below.

  1. Navigate to Invoice/Packing > Invoice > General from the WordPress dashboard.
  2. Move to the Automate invoice creation option under the General section.
  3. Select the statuses for automatically creating Invoices.
  4. The available order statuses are Pending payment, Processing, On hold, Completed, Cancelled, Refunded, Failed, and Draft.
Auto create invoices based on order statuses
Auto-create invoices based on order statuses

Step 2: Attach the generated invoice as PDF to the order emails

In this step, attach the generated invoices to the necessary emails. The invoice attachment will be sent to the admin or the customer based on the WooCommerce Emails Settings(WooCommerce > Settings > Emails). To attach invoice PDFs in order emails:

  1. Head to the Attach invoice pdf in WooCommerce Email option under the General section.
Attach invoice PDF in order email option
Attach invoice PDF in order email option
  1. From the dropdown, select email classes to attach invoice PDFs.
  2. Ensure that the selected email classes and the order statuses selected under the Automate invoice creation option match.
Ensuring email classes match with order statuses
Ensuring email classes match with order statuses
  1. If no order status is selected under the Automate invoice creation option, manually generate invoices to attach them to order emails.

Step 3: Enable the printing option

Finally, enable the print option so that customers can print invoices from the order email, the order listing page, and the order details page.

  1. Move to the Show print invoice button for customer option in the General section.
  2. Select the necessary pages from here.
Enabling print invoice button
Enabling print invoice button

To learn more about printing WooCommerce invoices from order emails, check out the following article: Print WooCommerce Invoice from Order Emails.

Step 4: Save the Settings

  1. Click on Update Settings to save the changes.

The images below show a new order email with an invoice PDF attachment and an order confirmation mail with an invoice PDF attachment. The image highlights the Print Invoice button too.

Additionally, store owners can send an order details email to a customer which includes the PDF invoice as an attachment. To send an order details email to a customer,

  1. Navigate to the Order edit page of an order.
  2. From the Order actions dropdown, select Send order details to customer.
Selecting the Send order details to customer option from the dropdown
Selecting the Send order details to customer option from the dropdown
  1. Click on Update.

The order details email sent to a customer will appear like this:

Order details email with the invoice PDF attachment
Order details email with the invoice PDF attachment