FoxrFoxr

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:

TabWhat it holds
LiquidThe HTML and CSS of the document, with Liquid tags
QueryOptional extra data from Shopify. A GraphQL query that runs for each order, with $id set to the order ID
SchemaThe settings shown in Customize mode, as a JSON array of sections

A small example

<h1 data-section="overview" data-edit="title">{{ config.overview.title }}</h1>
<p>Invoice no: {{ doc.number }} · {{ doc.date }}</p>
{% for line in lines %}
  <tr><td>{{ line.title }}</td><td>{{ line.hsn }}</td><td>{{ line.taxable_value | money }}</td></tr>
{% endfor %}

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 https URLs, and only Google Fonts load from outside.
  • Liquid can't read files and stops after 1.5 seconds.
  • Output is HTML-escaped. Use richtext settings 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.

On this page