Skip to main content

Import a template from Order Printer

The Import a template from Order Printer dialog If you’re moving from Shopify Order Printer or Order Printer Pro, you can bring your templates into Foliant. Paste a template’s code or drop its file, and Foliant converts the variables that differ. Before you save, it shows you what it changed, what it removed and anything that needs your attention, with a preview of the document. An import always creates a new template. It never overwrites one you already have.

Before you start

Copy the template’s code from the app you’re moving from, or save it as a file. The How to copy your templates link in the import window explains how.

Import a template

  1. Go to Templates and click Import a template. You can also click Import your templates at the bottom of Template setup.
  2. In Import a template from Order Printer, either:
    • paste the code into Template code, or
    • drop a .liquid, .html or .txt file onto Or drop a .liquid, .html or .txt file.
  3. In Imported from, leave Detect automatically, or choose Shopify Order Printer, Order Printer (legacy) or Order Printer Pro.
  4. In Document, choose Invoice, Credit note or Quote if the template is one of these, so it’s numbered. Otherwise leave Other document.
  5. Enter a Template name. If you leave it empty, the template is called “Imported template”. When you drop a file, its file name is used.
  6. Click Convert.

Review the conversion

Foliant shows a report next to Preview with a sample order.
  • The top line says which app the template came from, and either “Everything was converted.” or how many items need attention.
  • Changes are grouped under Needs attention, Changed, Removed and Layout, each with the line number in your template.
Common reasons you’ll see: If the template can’t print yet, the preview says “It doesn’t print yet: fix the items below after saving.” Click Back to change your template code or options and convert again.

Create the template

  1. Click Create template. Foliant shows “Template imported”.
  2. The new template’s settings page opens. Choose where it’s pre-selected and who gets it. See Template settings.
  3. Open Edit template to fix anything that needs attention. See Edit a template’s code.

Good to know

  • Templates can be up to 512 KB. A larger file shows “The template is larger than 512 KB.”
  • If the file isn’t a text template, Foliant says “That file isn’t a text template.”
  • If the conversion changes between your review and Create template, Foliant shows the new conversion and asks you to check it again.
  • The import is kept in the template’s version history as Imported. See Version history.
  • Like any new template, an imported template isn’t pre-selected anywhere until you choose.