Edit the code
Use the Liquid, Query, and Schema tabs to build your own layout.
Switch Editor mode to Code to write your own template. Use Code file to move between three tabs:
| Tab | What it holds |
|---|---|
| Liquid | The HTML and CSS of the document, with Liquid tags |
| Query | Optional extra data from Shopify. A GraphQL query that runs for each order, with $id set to the order ID |
| Schema | The settings shown in Customize mode, as a JSON array of sections |
A small example
data-section and data-edit make that element clickable in the preview. See Variables and filters for everything you can print.
Using the Query tab
The tab starts empty ("No extra order fields"). Click Start from example to begin. Only one read-only order(id: $id) query runs, and only fields covered by GST Pro's access scopes can be read. An alias such as note_attr: customAttributes { key value } becomes {{ order.note_attr }}.
Safety limits
- Templates render without scripts, forms, or plugins. Images must be
httpsURLs, and only Google Fonts load from outside. - Liquid can't read files and stops after 1.5 seconds.
- Output is HTML-escaped. Use
richtextsettings for formatted text.
Check your own template
GST Pro can't verify that custom code prints every field GST law requires. Have your CA check a printed sample.