PDF Invoices
PDF Invoices stores one custom HTML template on the site. Create, edit, and built-in “Select” all write that same file. Saving the template does not rebuild PDFs that already exist.
| Button | When you see it | What it does |
|---|---|---|
| Create Template | No custom template on disk yet | Opens the editor and will create order.html. |
| Edit Template | A custom order.html already exists | Opens the editor for that file. |
| Select Built-in Template | Always | Copies a bundled design over order.html. This replaces your custom file. |
| Reset to Default | A custom template exists | Removes the custom file so the plugin default is used. |
| Download Sample PDF | Always | Builds a dummy PDF from the current template. Use this before regenerating real invoices. |
There is no “new template” library. The site uses a single override:
wp-content/uploads/pmpro-invoice-templates/order.html
Select Built-in Template is how you start from Corporate or another bundled design. It is not an extra saved copy. If you already edited the template, Select overwrites those edits.
Edit Template only appears after a custom file exists. If you only see Create Template, you are still on the plugin default.
New checkouts use the current template. Old PDFs stay as they were until you regenerate them.
| Tools button | Effect |
|---|---|
| Generate Missing Invoices | Builds PDFs only for orders that do not have one. |
| Regenerate All Invoices | Overwrites every stored PDF with the current template. Leave the tab open until it finishes. |
After you save template changes, download a sample PDF. If it looks right, use Generate Missing or Regenerate All.
You can edit order.html in the visual editor or as HTML. Placeholders such as {{invoice_code}} and user-field tokens are documented in Adding user fields and Customize layout with code.
Select replaces order.html. Your previous layout is gone unless you have a backup.
Fix: Use Edit Template for changes. Only use Select when you intend to start over from a bundled design.
Stored PDFs are files. The editor does not rewrite them.
Fix: Use Download Sample PDF, then Generate Missing or Regenerate All.