Skip to main content

Invoice Settings

Configure when invoices are generated, how they are numbered, which template renders the PDF, and how they are delivered. The tab is split into four sub-sections: General, Numbering, Templates, and Delivery.

Location: Settings > Invoices

General

FieldDescriptionDefault
auto_generate_enabledGenerate invoices automatically based on the trigger belowOn
generate_triggerEvent that creates the invoice: order_created, payment_complete, status_change, or manualorder_created
trigger_statusesStatuses that fire the invoice when the trigger is status_change (multi-select: pending, processing, on-hold, completed, cancelled, refunded, failed)completed, processing
pdf_rendererPreferred PDF engine: auto, gotenberg, chrome, or dompdfauto
gotenberg_urlURL of the Gotenberg service, for example http://gotenberg:3000, used when pdf_renderer is gotenbergempty

The General sub-tab also shows a renderer status card so admins can see which engine the system is currently selecting.

Numbering

FieldDescriptionDefault
number_prefixToken substituted for {PREFIX}INV
number_formatPattern that generates invoice numbers{PREFIX}-{YEAR}{MONTH}-{SEQ}
sequence_paddingMinimum digits in the sequence portion (3 to 7)5
sequence_resetWhen to reset the sequence: never, yearly, monthly, dailynever
number_startStarting sequence value (useful when migrating from another system)1

The Numbering panel includes an invoice stats banner (total count, current sequence, next sequence) and a live preview powered by the same renderer the storefront uses.

Format Placeholders

PlaceholderReplacement
{PREFIX}The number_prefix value
{YEAR} / {YYYY}Four-digit year
{YY}Two-digit year
{MONTH} / {MM}Two-digit month
{DAY} / {DD}Two-digit day
{WEEK} / {WW}ISO week number
{QUARTER} / {Q}Quarter, Q1 through Q4
{SEQ}Sequence padded to sequence_padding digits
{SEQ:N}Sequence padded to exactly N digits
{RANDOM:N}N random digits
{ORDER}Order number

Templates

FieldDescription
templateOne of premium, minimal, or detailed
TemplateDescription
premiumSwiss Spa design with elegant typography and full branding
minimalClean and simple, essentials only
detailedComprehensive layout including tax breakdown and terms

Each template can be previewed in a modal and edited inline. Customizations are stored alongside the template selection and survive component upgrades.

Business Information

These fields are surfaced in the templates and stored on invoice settings:

FieldDescription
company_nameLegal business name; falls back to store_name when blank
store_tax_idTax / VAT registration number
store_registrationBusiness registration number
terms_and_conditionsFree-form text rendered as the invoice footer

Delivery

FieldDescriptionDefault
auto_email_enabledEmail the invoice to the customer when it is generatedOn
include_in_order_confirmationAttach the invoice PDF to the order confirmation emailOff

Standard Invoice Layout

Generated invoices include:

  • Header: store logo, company name, address, invoice number, and invoice date
  • Customer block: billing address, plus shipping address when different
  • Line items: product name, SKU, quantity, unit price, line total
  • Totals: subtotal, discounts, shipping, tax breakdown, grand total
  • Footer: terms and conditions, "Computer-generated document" note, registration numbers