Emails with XML/PDF invoice and receipt attached on order completion
Goal
Manage the automatic emails POP adds to WooCommerce’s transactional emails, each with a different document attached.
What the plugin adds
POP registers 3 additional emails in WooCommerce’s email list (WooCommerce > Settings > Emails),
all triggered when the order moves to “Completed” status:
| Attachment | |
|---|---|
| Send Invoice XML on order completed | XML invoice |
| Send Invoice PDF on order completed | PDF invoice |
| Send Receipt PDF on order completed | PDF receipt |
Each one is a standalone WooCommerce email: you can enable/disable it and customize its subject/heading independently of the others, exactly like WooCommerce’s standard emails (new order, order completed, etc.).
Prerequisites
- WooCommerce with working transactional emails (SMTP configured if needed).
- The order must have a total different from zero: if you’ve enabled the option that blocks invoicing on zero-amount orders, these orders won’t generate a number or attachments.
Steps
- Go to
WooCommerce > Settings > Emails. - Find the three entries listed above among the available emails.
- Enable the ones you need and customize the subject/heading if necessary.
- Save.
Verify
Generate a test order and move it to “Completed”: you should receive (or see in the log/email queue) the enabled emails, each with its respective attachment.
Common errors
- The customer receives the wrong document or no attachment — check that the specific email is
enabled in
WooCommerce > Settings > Emailsand that the document (XML/PDF) was actually generated for that order. - You also want to attach a pro-forma invoice to the standard order-completed email (not these 3 dedicated emails) — that’s a separate option, see pro-forma-invoice-email.
- The emails don’t send at all — first check that WooCommerce can send emails in general (an SMTP delivery issue, not specific to POP).
Related configuration
For sending the pro-forma invoice/receipt via WooCommerce’s standard order-completed email, see pro-forma-invoice-email.