Home > Docs > Pdf Invoice Basic > Attaching PDF Invoices with WooCommerce Order Emails

Attaching PDF Invoices with WooCommerce Order Emails

Last updated on July 25, 2025

This article details adding a PDF invoice with WooCommerce customer order emails and configuring the print button in order emails. Attaching a PDF invoice with the order email is an exciting feature. It allows both the customer and the seller to have a legal record of the sale and the amount owed. The WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin allows one to attach a PDF invoice depending upon the pre-chosen order status. Selecting multiple order statuses triggers more than one email with a PDF attachment.

Pre-requisite

  1. Invoice enabled from the General Settings tab.
  2. Have the company and address information filled out before customizing the invoice.

Steps to attach automated emails with customer order emails

  1. Navigate to Invoice/Packing > Invoice > General from the WordPress dashboard.
  1. In the General tab, scroll down to the Automate invoice creation option.
  2. Select order statuses for automated invoice creation.
Automate invoice creation option
Automate invoice creation option
  1. Move to the Attach invoice PDF to selected WooCommerce emails option.
  2. Select email classes to attach the invoice PDF.
Attach invoice PDF to WooCommerce emails
Attach invoice PDF to WooCommerce emails
  1. Ensure that the selected email classes match the order statuses selected under the Automate invoice creation option.
Ensuring order statuses and email types match
Ensuring order statuses and email types match
  1. Click on Update Settings at the end of the page to update the new changes.

For example, if a store owner selects ‘Completed Order’ as the email class for PDF invoice attachment, and this email class matches the order status ‘Completed’, then when an order reaches the Completed status, an email with the PDF invoice attachment will be sent to the customer. The image below shows a sample email with the attached PDF invoice.

Sample WooCommerce customer order email with an invoice attached
Sample WooCommerce customer order email with an invoice attached

Configuring print button access for users

The default settings permit only logged-in users to print invoices from their order email. Store owners can configure the print button access, by following the below steps:

  1. Navigate to Invoice/Packing > General Settings > General from the WordPress dashboard.
  2. Under the Advanced options section, head to the Print button access for option.
  3. Select the preferred user type,
    • Logged in users – Allows only logged-in users to print invoice using the print button in order emails.
    • All users – Allows all users, including those who are not logged in, to print the invoice using the print button.
Navigating to Print button access for option
Navigating to the Print button access for option
Choosing All users from the Print button access for option
Choosing All users from the Print button access for option
  1. Click on Update Settings to save changes.

Use Case

  1. Store owner allows only Logged-in users’ to access the print button in order emails.. A guest user makes a purchase. The user will receive an order email with a Print Invoice button in it. When the user tries to print the invoice, they will be redirected to the ‘My Account’ page, where they can register as a new user. Once they have completed the registration, users can log in to their account and print the invoice from the order email.
Print button access for logged in users alone
Print button access for logged in users alone
  1. The store owner grants the print button access to All users’. A guest user makes a purchase. The user will receive an order email with a ‘Print Invoice’ button in it. The user can print the invoice document using the ‘Print Invoice’ button.
Print button access to all users
Print button access to all users