PrestaShop generates PDF invoices automatically, but almost no shop has them properly configured from the start. Numbers that skip or repeat when the year changes, invoices without the customer’s tax ID, a template with a pixelated logo, credit notes nobody can find and invoices generated before payment.
This article explains where each setting is, when PrestaShop creates the invoice, how to customise the template without losing the changes when updating and what to do with returns. It does not replace your accountant: what the rules require of your invoice is for them to confirm. Here is how to make PrestaShop comply with it.
Where it is configured
Almost everything is in Orders > Invoices:
| Option | What it does |
|---|---|
| Enable invoices | Whether PrestaShop generates an invoice or not |
| Prefix | Text in front of the number, for example one series per shop |
| Invoice number | The next number that will be used |
| Add the year to the number and reset each year | For yearly series |
| Legal text and footer | Company details, company registration, terms |
| Template | Which invoice template is used |
The company details shown on the invoice are taken from Shop Parameters > Contact > Stores. If the legal name or tax ID are not there, they will not appear.

When PrestaShop creates the invoice
PrestaShop creates the invoice when the order moves to a status that has the generate invoice option ticked, usually payment accepted. This is configured in Shop Parameters > Order Settings > Statuses.
This has consequences:
- If the “awaiting payment” status generates an invoice, you will have invoices for orders that were never paid.
- If a payment method does not move the order to the right status, the customer has no invoice even though they paid. We see it often with bank transfers and badly configured gateways. We explain it in payment methods in PrestaShop.
- If you change the status manually several times, the invoice is not duplicated, but it is worth checking that the number does not skip.
Numbering without gaps
Sequential numbering is the most common complaint. The causes of gaps or duplicates:
- Changing the next number manually in the settings.
- Several shops in multistore sharing numbering, or not, without anyone having decided it.
- Invoicing modules that generate their own number in addition to PrestaShop’s.
- Resetting each year without a prefix or the year in the number, which repeats numbers from previous years.
If you keep your accounts in external software or an ERP that also numbers invoices, decide who is in charge: either PrestaShop issues the legal invoice, or the ERP does and PrestaShop only sends the order. We explain it in connecting the website to the ERP.
Want to know whether this affects your shop?
Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.
Received. We reply within 24 working hours.
The customer’s tax details
In many countries, including Spain, a full invoice needs the customer’s tax ID when they are a business or self-employed. In PrestaShop:
- The tax ID is stored in the address, not in the customer account. If the field is not requested in the address form, it will not be on the invoice.
- Enable and make mandatory the company and identification number fields for the countries where you sell to businesses, from International > Locations > Countries, in each country’s address format.
- For customers in other EU countries with an intra-community VAT number, the VAT exemption needs specific configuration. We explain it for Spanish shops in VAT in PrestaShop (in Spanish).

The invoice template
The PDF templates are in the theme’s pdf folder. To change them without losing the changes:
- Copy the template into the theme folder and edit it there, not in PrestaShop’s own files. If you edit the original files, the changes are lost when updating.
- Logo: the one set for invoices in Shop Parameters > General > Logos (Design > Theme & Logo in recent versions). Upload it in good resolution, or it will come out pixelated.
- Test with real orders: with discounts, with several VAT rates, with shipping costs and with a customer from another country.
If the theme’s template cannot be touched without breaking the design, or you need formats PrestaShop does not include, there are invoicing modules. Before installing one, check that it respects the numbering and does not generate a second invoice.
Credit notes and returns
When you refund money, the original invoice is not deleted or modified: a credit note is issued, which PrestaShop calls a credit slip or credit note depending on the version. It is generated from the order when making a partial refund or a return, and it is numbered separately.
What often goes wrong:
- Refunds made in the payment gateway without recording them in PrestaShop, so there is no credit note.
- Credit notes without their own numbering or with a prefix your accountant does not recognise.
- Customers who do not receive the credit note because the email is not enabled.
We explain it in returns and refunds in PrestaShop.

Invoices in multistore and in several countries
If you have several shops in the same PrestaShop installation, each can have its own company details, its prefix and its numbering. It needs to be a conscious decision:
- One company with several shops: you usually want one series per shop, with a different prefix, so the numbers do not get mixed up.
- Several companies on one installation: each shop needs its own tax details on the invoice, its numbering and its legal text. Check that the template takes the details from the right shop.
If you sell to other countries, also check the invoice language. PrestaShop generates the PDF in the order’s language, so the translations of the template and legal text must be complete in every active language. We explain it in translating PrestaShop.
What breaks if you get it wrong
- Editing the original templates and losing everything at the next update.
- Invoices generated in statuses with no payment.
- Repeated numbers when resetting each year without the year in the number.
- Invoices without a tax ID because the field was not requested.
- Two systems numbering at the same time, PrestaShop and the ERP or a module.
The order of work
- Confirm with your accountant which details and series you need.
- Complete the company details and the address tax fields.
- Review which statuses generate an invoice.
- Adjust the numbering and prefix.
- Customise the template in the theme and test with real orders.
- Test a refund and its credit note.

When you cannot do this yourself
Filling in the details and the prefix is something you can do. Changing the template without it breaking at the next update, finding out why a gateway does not generate an invoice, sorting out numbering in multistore or connecting it to the ERP needs someone technical. It is part of the PrestaShop maintenance we do at Mikksa.
Want to know whether this affects your shop?
Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.
Received. We reply within 24 working hours.
In short
- Almost everything is in Orders > Invoices and in the shop details.
- The invoice is created when the order moves to a status marked for it.
- For the tax ID to appear, it has to be requested in the address.
- The template is changed by copying it into the theme, never in the original files.
- Returns get a credit note, not a deleted invoice.
Frequently asked questions
How do I change the invoice number in PrestaShop?
In Orders > Invoices, in the invoice number field. Changing it manually can cause gaps or duplicates, so it is best done only with your accountant’s agreement.
Why does the customer’s tax ID not appear on the invoice?
Because PrestaShop takes it from the address and the field is not being requested. It has to be enabled in the country’s address format and, if you sell to businesses, made mandatory.
How do I customise the PrestaShop invoice template?
By copying the PDF template into the theme folder and editing it there, so you do not lose the changes when updating. The logo is set in the shop’s logos.
What happens to the invoice when I refund an order?
The original invoice is not modified. A credit note is issued for the amount refunded, with its own numbering, from the order refund.