Skip to main content

What templates are

The Templates page A template is the layout Foliant uses to turn an order into a document: a receipt or invoice, a packing slip, a returns form, a quote, a credit note, a pick list and so on. Every document Foliant makes comes from a template. The same template is used when you print from the Orders page, when you export PDFs, and when customers download a PDF through PDF delivery. You manage your templates on the Templates page in Foliant.

The templates you start with

Once you choose your plan, you get a set of ready-made templates in your store’s language: You can rename, edit, reorder or delete any of them, and add as many of your own as your plan allows.

Two kinds of template

Each template renders in one of two ways. You choose this in the template’s settings under Renders.
  • One document per order: invoices, packing slips and returns forms. Each selected order gets its own document.
  • One document for all selected orders: manifests, reports and pick lists. One document lists all the orders you selected. Whether you can use this depends on your plan. See Order summaries and pick lists.

Document types

A template’s Document type tells Foliant what the document is:
  • Invoice, Credit note and Quote get sequential numbers when document numbering is turned on in Settings › Documents & printing.
  • Other (not numbered) is for everything else, such as packing slips, returns forms and pick lists.
See Template settings for details.

How a template looks

You change what a template looks like in the template editor. Depending on your plan and how the template was made, you edit it:
  • with the Visual editor, by arranging and styling ready-made blocks, with no code needed,
  • with Code, using HTML, CSS and Liquid,
  • or, for a template made from a design, in the design editor.
The editor is covered in Template editor. Designs are covered in Designs.

Where templates are used

  • Printing: on the Orders page, the templates you pre-selected are ticked for you. See Choose where a template is pre-selected.
  • Exports: PDF exports are made from your templates. See Exports.
  • Delivery: customers can download a template’s PDF from order pages and emails. See PDF delivery.
A template can also be used instead of another template for some orders, for example a separate invoice for wholesale customers. See Use a template for some orders only.