{{ name }}, and also under order, such as {{ order.name }}. Both work the same. The variables follow Shopify Order Printer’s, so most Order Printer templates work in Foliant as they are.
The Liquid variables tab in the code editor lists all of them, with search. This article covers the ones you’ll use most. Money values are in cents; see Money and currency in templates.
The order
Totals
Print totals with a money filter, for example{{ total_price | money }}.
current_subtotal_price, current_total_discounts, current_total_tax and current_total_price are also available.
Customer and addresses
Each address (
shipping_address, billing_address and customer.default_address) has name, first_name, last_name, company, address1, address2, street, city, province, province_code, zip, country, country_code, phone and city_province_zip. {% if shipping_address.member_of_eu %} checks whether the country is in the EU.
Your shop
Shipping, payments and fulfillments
Example
Good to know
- An empty value prints nothing. Use
{% if … != blank %}to leave out a label when there’s no value. - Templates for all the selected orders use
orders(loop with{% for order in orders %}),batchandpick_listinstead of a single order. See the Batch templates section of the Liquid variables tab. - For VAT invoices, see the VAT section of the reference:
tax_breakdown,buyer.vat_number,{% include 'vat_breakdown' %}and{% include 'legal_notes' %}. See Tax and legal.