Customer download
Let customers download and print their own invoices from WooCommerce My Account, with ownership checked on every download.
Customers can download their invoices from their WooCommerce account. They only ever see their own orders.
Turn it on
- Go to Vite Invoice → Settings → Invoice.
- Turn on Let customers download invoices. It is on by default.
- Click Save Changes.
The setup wizard's Download invoice in My Account option sets the same switch.
What customers see
A logged-in customer finds the invoice in two places:
- My Account → Orders: the orders list gets an Invoice column with Download PDF and Print for each order that has an invoice.
- My Account → Orders → View order: below the order details, an invoice card shows the invoice number and date, with Download PDF and Print.
If the invoice is not ready yet, the customer sees "Your invoice is being prepared."
Print opens the PDF in the browser, so the customer can print it from there. Download PDF saves the file. The file is named after the invoice number, for example INV-00042.pdf.
Who can download
Every download is checked before the file is sent:
- The customer must be logged in. A visitor who isn't is sent to the login page first.
- The order must belong to that customer.
- The download link only works for the account it was made for.
If someone tries to open another customer's invoice, they see "You are not allowed to download this invoice."
Note: There are no public or guest links. Guest orders can't download from My Account. Attach the invoice to the order emails instead. See Email attachments.
Where the files are kept
PDFs are stored on your server in a protected folder inside wp-content/uploads. Every download goes through WordPress, which runs the checks above.
Warning: The folder is closed with an
.htaccessfile. Apache servers honour it; nginx and some other servers ignore it. If your host uses nginx, ask them to block direct access towp-content/uploads/vite-invoice/.
More documents in My Account
Pro: With Pro, the column is called Invoice & documents and also lists the documents you allow customers to see: packing slips, delivery notes and proforma invoices. Each document type has its own Show it in My Account switch. See More documents.