.json file and import it into another template, in the same store or in another store that uses Foliant. This is handy for agencies and for stores with more than one Shopify shop.
Before you start
Export and import are part of the visual editor and only work for visual templates. See Visual editor plan availability.Export a template’s blocks
- Open the visual template in the editor.
- In the top bar, click View blocks as JSON. The Editor state (JSON) view shows the blocks and document styles as data.
- Click Export.
.foliant.json (for example packing-slip-eu.foliant.json). It holds the template’s name, its document type, and its blocks and document styles.
Import blocks into a template
- Open the template you want to change (a visual template), then click View blocks as JSON.
- Click Import.
- Choose a Template export (.json) file, or paste its text under Or paste the JSON.
- Click Import.
If the import fails
Good to know
- The export includes the blocks and document styles only. The template’s settings (who gets it, its language, paper size, watermark and deliveries) aren’t part of it.
- Click Back to visual to leave the JSON view.
- The JSON view is read-only: change the template in the visual editor or the code editor.