Email attachments
Attach the invoice PDF to WooCommerce's order emails, or send it in Vite Invoice's own email, and avoid sending it twice.
There are two ways to get the invoice to your customer by email. You can use either one, or both.
- WooCommerce emails: the PDF is attached to emails WooCommerce already sends, such as the Processing order email.
- Our own email: Vite Invoice sends a separate email with the PDF, written from the Invoice Email template.
Vite Invoice never sends WooCommerce's emails itself. Recipients, sending and SMTP stay in WooCommerce. Manage them under WooCommerce → Settings → Emails.
Attach invoices to WooCommerce emails
- Go to Vite Invoice → Emails and stay on the WooCommerce emails tab.
- Turn on Attach invoices to WooCommerce emails. This is the master switch. When it is off, no invoice is attached to any email.
- Under Attach the invoice to, choose the emails:
| When WooCommerce sends it | Sent to | On by default | |
|---|---|---|---|
| Processing order | Payment received, order being prepared | Customer | Yes |
| Completed order | Order shipped or fulfilled | Customer | Yes |
| Customer invoice / order details | Sent manually from the order screen | Customer | Yes |
| New order | Notification for your team | Store admin | No |
- Click Save Changes.
Make the invoice if it is not ready yet
WooCommerce sends its Processing and Completed emails a moment before Vite Invoice makes the invoice. With Make the invoice if it is not ready yet on, Vite Invoice makes the invoice right then, so those emails always carry the PDF. It is on by default.
Turn it off only if you sell by bank transfer or send proforma invoices first, where an unpaid order must not get an invoice. With it off, an email can go out without the invoice when the order has none yet. The page warns you, with a Turn it on link.
Statuses under Never make an invoice for these order statuses in the invoice settings are still skipped.
Send the invoice in our own email
- Go to Vite Invoice → Emails and open the Our own email tab.
- Turn on Email the invoice with our own template. It sends the Invoice Email template with the PDF attached.
- In Send the email when the order becomes, choose Processing, On hold or Completed.
- Click Save Changes.
Each order is emailed once per status. To change the wording, click Edit the invoice email template. See Email templates.
Warning: If both ways are on, the page shows "Both are on: the customer can receive the invoice twice." Most stores use just one.
Which one should I use?
- Use WooCommerce emails if you want one email per order step, with the invoice inside the normal order email.
- Use Our own email if you want a separate, clearly worded invoice email that you edit yourself.
The setup wizard's Attach invoice to order emails option turns on the WooCommerce emails method. See Setup wizard.
Troubleshooting
- No PDF in the email: check that the master switch is on, that the email is ticked under Attach the invoice to, and that Make the invoice if it is not ready yet is on.
- Some SMTP plugins send without the PDF: plugins that queue emails and send them later may lose the attachment. Try sending right away, or use our own email.
- Nothing is sent at all: check your WordPress mail setup. Use Send test email on the Email templates page to test it.
Note: On a ZATCA store, a Standard (B2B) invoice is held until ZATCA clears it, so it is not attached to emails before then. If our own email is on, the invoice email is sent once the invoice is cleared. See ZATCA Phase 2.