Invoices
The Invoices module gives every paid Core Commerce order the next invoice number, and every refunded one a credit note number. Customers open a printable invoice from their account and from their order emails, and numbers are never reused.
This module numbers orders from your store. To bill a client for custom work, use Client Invoices instead. Both share one invoice number series.
Turn on invoices
- Go to Core Forms > Modules and turn on Invoices. This also turns on Licensing and Storefront if it’s off.
- Open Core Commerce > Settings and scroll to Invoices.
- Fill in the numbering and business details below, then click Save invoice settings.
Invoice settings
| Setting | Default | What it does |
|---|---|---|
| Invoice prefix | INV-{year}- |
Text before the number, up to 24 characters. {year} and {month} are filled in when the number is issued. |
| Credit note prefix | CN-{year}- |
The same for credit notes. |
| Digits | 5 | How many digits the counter pads to, from 1 to 10. |
| Business name | The site title | Shown as who the invoice is from. |
| Address | Empty | Your business address. |
| Your VAT or tax ID | Empty | Printed as “Tax ID”. |
| Footer note | Empty | Payment terms, company registration or a thank-you line, printed under the totals. |
With the defaults, the first invoice is INV-2026-00001. The section shows the next number before you save.
The counter only goes up. It doesn’t restart each year, even with {year} in the prefix, and there’s no setting to change the next number. Credit notes have their own counter, and Client Invoices take numbers from the same invoice series.
When numbers are issued
- Invoice: when an order is paid and its total is above zero. That covers purchases, manual and automatic renewals, and license upgrades. Free orders get no invoice.
- Credit note: when a refund marks an invoiced order as refunded. Partial refunds don’t, so they get no credit note.
- Orders paid before you turned the module on keep no number.
What the invoice shows
- The invoice number, the date it was issued, the order number and the currency.
- From: your business name, address and tax ID.
- Billed to: the customer’s name, email, saved billing address from their account profile and VAT or tax ID.
- Each item with its product, plan and quantity. Renewals and upgrades are labeled as such.
- Subtotal, any discount with its coupon code, tax and Total paid.
- The reverse charge note for EU reverse charge orders, and “Refunded in full” with the credit note number for refunded orders.
- Your footer note.
The tax line uses the tax name from the Tax and VAT settings.
The invoice is a web page with a Print or save as PDF button. Core Forms doesn’t create PDF files on the server. The page is private: it opens only from a signed link or for a store manager, and search engines are told not to index it.
Where customers find it
- In their account: Purchase history, then the order, then View invoice. Refunded orders show View invoice and credit note. Paid orders without a number show Print receipt instead.
- In emails: every email about an invoiced order includes a “View your invoice” link. Use
{invoice_url}in your own wording.
Where you find it
Open an order under Core Commerce > Orders. The Totals and invoice section shows the subtotal, discount, tax, total and the invoice number, linked to the invoice. Unpaid and free orders show “None (free or unpaid order)”.
The Orders list has no invoice column. The REST API returns invoice_number and credit_note_number with each order.
Turn invoices off
Turning the module off stops new numbers, and invoice links don’t open until you turn it back on. Existing numbers stay on their orders. Turning it back on doesn’t number orders paid while it was off.
For developers
cf_commerce_invoice_url filters the invoice link for an order. Invoice pages use the cf_invoice and cf_invoice_key query variables.