Your invoice, your design, without touching a template file
The PrestaShop invoice is hard to change. Editing the core .tpl files is risky and gets overwritten on upgrades, and it gives you one design for every shop and every language.
CB Invoice Layout Builder replaces that with a visual editor in your back office under Orders → Invoice Layout Builder. Drag rows and blocks onto a true A4 page, type your texts and drop in dynamic order data such as {order.reference}, {invoice_address.formatted} or {product.feature.hs_code}. Then click Preview PDF to see the real invoice for any order, rendered with PrestaShop’s own PDF engine. When it looks right, switch it on and save.
A clean default invoice layout comes with the module, so you start from a working design and adapt it to your brand in minutes. Your live invoices stay the same until you switch the layout on.
Features
Drag & drop builder
- Rows with 1–4 columns (8 presets) and 16 blocks: text, heading, image/logo, invoice address, delivery address, shop details, label/value list, invoice info, product table, totals box, tax breakdown, payment details, page numbers, divider, spacer and page break
- Three zones: a header and footer that repeat on every page, and a body that flows across pages
- Configurable page margins and header/footer heights, with a warning when content does not fit its area
- Undo/redo, duplicate, keyboard shortcuts (Ctrl+S, Ctrl+Z/Y, Ctrl+D, Del), reset to default and JSON export/import
Dynamic data
- About 150 variables: invoice, order, customer, invoice and delivery addresses, shop, totals, taxes, employee, page numbers and product lines
- Product features as variables, such as HS code, country of origin or material, which is useful for customs and B2B invoices
- Your own custom variables: bank name, IBAN, BIC/SWIFT, VAT number, company registration number, delivery terms, payment link…
- Filters (
|upper,|lower,|ucfirst,|nl2br,|strip) and conditions ({if:…}…{/if},{ifnot:…}…{/if}). Lines with no data hide themselves - A live canvas showing real values from any recent invoice, or the raw variables
Product table
- Choose your own columns, titles and cell content
- Optional product images, plus shipping (with carrier logo), discount and gift-wrapping lines
- The column header repeats on every page
Real PDF preview
- Preview the unsaved layout as a PDF for any invoice, using the same engine PrestaShop uses for the real file
- Unicode fonts (FreeSans, DejaVu) for ā, ļ, ž, ł, Greek, Cyrillic and more
- Your own colours, fonts, base size, and date, number and price formats
Multistore & multilingual
- One layout for all shops, per shop group or per shop, with automatic fallback: shop → group → all shops
- Any shop can opt out and keep the PrestaShop default
- A “Which layout does each shop use?” overview
- Custom variables per shop, so each shop prints its own bank details and logo
- Every text can be translated per language. Invoices print in the order’s language, with prices and dates formatted for that language
Proforma invoices
- A Print proforma button on the order page, at any order status (for example, awaiting bank wire or cash on delivery)
- No invoice is created and no invoice number is used
- Use
{if:document.is_proforma}to print text only on proformas, such as “This is not a VAT invoice”
Safe and clean
- No core overrides: it works through PrestaShop’s native PDF hooks
- If no layout is active, or anything fails while building it, the standard PrestaShop invoice is printed
- Works everywhere invoices are generated: back office, customer account, order e-mails and bulk printing
- Fixes known TCPDF issues: footers now print on every page of multi-page invoices, and logos in headers and footers no longer print upside down
For developers
- Two hooks,
actionCbInvoiceLayoutVariablesandactionCbInvoiceLayoutVariableCatalog, let any module add its own variables (ERP numbers, customs duty, etc.) and list them in the builder
Why merchants use it
- A professional, on-brand invoice without touching code or template files
- Add the details your business and your countries need: VAT numbers, bank details, delivery terms, HS codes, country of origin
- One install for all your shops, each with its own data, language and logo
- Proformas for prepayment orders without using up invoice numbers
- Safe to try: build and preview with the layout switched off, then go live with one switch
Installation
- In your PrestaShop back office, go to Modules → Module Manager → Upload a module and select the zip file.
- Install with the shop selector set to All shops.
- Open Orders → Invoice Layout Builder.
- Pick a recent invoice, check the canvas and click Preview PDF.
- Fill in your custom values (VAT number, bank details…), adjust texts and colours, then switch Use for invoices on and save.
A full user guide is included in the module (README.md).
Requirements
- PrestaShop 9.0 or later (tested on 9.1.x)
- PHP 8.1 or later
- Write access to
/img/cbinvoicelayout/for uploaded images - No other dependencies
Good to know
- The module covers invoices and proforma invoices. Delivery slips, credit slips and order-return PDFs keep the PrestaShop templates.
- You are responsible for making sure your invoices meet the legal and tax rules of the countries you sell to. The module gives you full control over the layout; it does not give legal or tax advice.
- License: one live PrestaShop installation per license. A multistore installation counts as one, however many shops or domains it runs. Development, staging and test copies of that installation are included.










Reviews
There are no reviews yet.