{{ order }} object
This liquid object will output the order details of a submitted payment.
{{ this.order }}
Order Object Availability
Currently, this object’s structure, and where it can be accessed, varies depending on the type of payment being made. The following table indicates the locations that currently support the order
Object Liquid and further below describes the order
Object output for the supported locations, based on the various payment scenarios.
(by Payment Type)
Generic
(General)
Generic
(SecureZone)
SingleItem
(Event)
CheckOut
(Shop)
Manual
(Admin)
Checkout (form type: checkout)
Receipt page and Emails
The order
object output, after a checkout submission, in the ‘order-receipt’ system page and the checkout form’s Workflow Notification, Invoice, Autoresponder, and Supplier email/s (email template and email body).
{
"customerEmail": "joetest@test.com",
"paymentType": "CreditCard",
"state": "Paid",
"formId": 13,
"memberId": 47,
"caseId": 89,
"name": "Checkout 07 Feb 2021 07:55 AM",
"invoiceNumber": 29,
"invoiceCode": "",
"invoiceDate": "2/7/2021 7:55:55 AM",
"shippingAddress": {
"addressLine": "1 Street",
"city": "Streetville",
"state": "NSW",
"zipCode": "2000",
"country": "AUSTRALIA"
},
"amountPending": "0.0000",
"amountPaid": "10.0500",
"amountPaidHtml": "<span data-cms_cart_total=\"123\">$10.05</span>",
"amountPendingHtml": "<span data-cms_cart_total=\"123\">$0.00</span>",
"awbNumber": "",
"trackingUrl": "",
"id": "123",
"paymentIntentId": "XXXXXXXXXXXXXX",
"paymentIntentClientSecret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"formatSetting": {
"name": "AU",
"culture": "en-AU",
"decimalsQuantity": 2,
"currency": {
"code": "AUD",
"symbol": "$",
"digitalCode": "36",
"name": "Australian Dollar"
}
},
"domainCountry": {
"name": "AUSTRALIA",
"code": "AU"
},
"destinationCountry": {
"name": "AUSTRALIA",
"code": "AU"
},
"shippingOption": {
"id": "12252410371037462605",
"shippingOptionId": "7361027874612052004",
"name": "AustraliaPost - Parcel Post",
"price": 8.1364,
"taxPercent": 10.0000,
"taxRate": 0.1000,
"taxPrice": 0.81,
"totalPrice": 8.95,
"subTotalPrice": 8.14
},
"discount": {
"id": null,
"code": null,
"type": null,
"amount": 0.0
},
"giftVoucher": {
"id": null,
"code": null,
"amount": 0.0,
"balance": 0.0
},
"subTotalPrice": "1.0000",
"taxPercent": "10.0000",
"taxRate": "0.1000",
"taxPrice": "0.9100",
"discountPrice": "0",
"totalPrice": "10.0500",
"shippingPrice": "8.1364",
"shippingTaxRate": "0.1000",
"shippingTaxPrice": "0.81",
"shippingSubTotalPrice": "8.14",
"shippingTotalPrice": "8.95",
"giftVoucherPrice": "0",
"subTotalTaxPrice": "0.1000",
"discountedSubTotalTaxPrice": "0.1000",
"grandTotalPrice": "1.1000",
"totalPriceExcludingTax": "9.1400",
"totalPriceExcludingTaxAndGiftVoucherAmount": "9.1364",
"taxCode": "GST",
"totalPriceExcludingTaxHtml": "<span data-cms_cart_total_price_excluding_tax=\"123\">$9.14</span>",
"totalPriceExcludingTaxAndGiftVoucherAmountHtml": "<span data-cms_cart_total_price_excluding_tax_and_gift_voucher_amount=\"123\">$9.14</span>",
"grandTotalPriceHtml": "<span data-cms_cart_grand_total_price=\"123\">$1.10</span>",
"discountPriceHtml": "<span data-cms_cart_discount_price=\"123\">$0.00</span>",
"discountedSubTotalTaxPriceHtml": "<span data-cms_cart_discounted_sub_total_tax_price=\"123\">$0.10</span>",
"subTotalTaxPriceHtml": "<span data-cms_cart_subtotal_tax_price=\"123\">$0.10</span>",
"taxPriceHtml": "<span data-cms_cart_tax_price=\"123\">$0.91</span>",
"shippingTotalPriceHtml": "<span data-cms_cart_shipping_total_price=\"123\">$8.95</span>",
"shippingPriceHtml": "<span data-cms_cart_shipping_price=\"123\">$8.14</span>",
"shippingTaxPriceHtml": "<span data-cms_cart_shipping_tax_price=\"123\">$0.81</span>",
"shippingTaxPercentHtml": "<span data-cms_cart_shipping_tax_percent=\"123\">10.0000%</span>",
"taxPercentHtml": "<span data-cms_cart_tax_percent=\"123\">10.0000%</span>",
"giftVoucherPriceHtml": "<span data-cms_cart_gift_voucher_price=\"123\">$0.00</span>",
"totalPriceHtml": "<span data-cms_cart_total=\"123\">$10.05</span>",
"items": [{
"id": "15049017874163171386",
"ecommerceItemId": 2139,
"smallImage": null,
"name": "product1",
"type": "ModuleItem",
"moduleId": 0,
"SKUCode": "39207d4d-c9c0-4a9d-a435-f2c8f8778e68/Size/Large",
"quantity": 1,
"productFileLink": null,
"Url": "/shop/product1",
"taxCode": "GST",
"onSalse": false,
"price": 0.0000,
"taxPercent": 10.0000,
"unitPrice": 1.0000,
"taxPrice": 0.1000,
"unitTotalPrice": 1.10,
"totalPrice": 1.10,
"unitTaxPrice": 0.10000000,
"taxRate": 0.1000,
"totalPriceExcludingTax": 1.0000,
"unitRecommendedPrice": 0.0000,
"unitRecommendedTaxPrice": 0.0,
"unitRecommendedTotalPrice": 0.0,
"taxPercentHtml": "<span data-cms_cart_item_tax_percent=\"15049017874163171386\">10.0000%</span>",
"totalPriceExcludingTaxHtml": "<span data-cms_cart_item_total_without_tax=\"15049017874163171386\">$1.00</span>",
"unitTaxPriceHtml": "<span data-cms_cart_item_unit_tax=\"15049017874163171386\">$0.10</span>",
"unitTotalPriceHtml": "<span data-cms_cart_item_total_unit_price=\"15049017874163171386\">$1.10</span>",
"unitPriceHtmlTotal": "<span data-cms_cart_item_total_unit_price=\"15049017874163171386\">$1.10</span>",
"priceHtml": "<span data-cms_cart_item_price=\"15049017874163171386\">$0.00</span>",
"unitPriceHtml": "<span data-cms_cart_item_subtotal_price=\"15049017874163171386\">$1.00</span>",
"taxPriceHtml": "<span data-cms_cart_item_tax=\"15049017874163171386\">$0.10</span>",
"totalPriceHtml": "<span data-cms_cart_item_total_price=\"15049017874163171386\">$1.10</span>",
"quantityHtml": "<input type=\"number\" value=\"1\" data-cms_cart_item_quantity=\"15049017874163171386\">",
"removeHtml": "<a href=\"javascript:\" data-cms_cart_remove_order_line=\"15049017874163171386\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M19 6.41l17.59 5 12 10.59 6.41 17.59 19 13.41 12z\"></path><path d=\"M0 0h24v24h0z\" fill=\"none\"></path></svg></a>",
"taxCodeHtml": "<span data-cms_cart_tax_code_html=\"15049017874163171386\">GST</span>",
"unitRecommendedPriceHtml": "<span data-cms_cart_unit_recommended_price_html=\"15049017874163171386\">$0.00</span>",
"unitRecommendedTaxPriceHtml": "<span data-cms_cart_unit_recommended_tax_price_html=\"15049017874163171386\">$0.00</span>",
"unitRecommendedTotalPriceHtml": "<span data-cms_cart_unit_recommended_total_price_html=\"15049017874163171386\">$0.00</span>",
"attributes": [{
"id": "12550665647534637091",
"name": "Size",
"attributeType": "0",
"valueType": "FixedPrice",
"options": [{
"id": "749807479205920820",
"name": "Large",
"price": 1.0000,
"taxPercent": 10.0000,
"taxPrice": 10.00000000,
"image": "",
"totalPrice": 11.00000000
}],
"subTotalPrice": 1.0000,
"taxPercent": 10.0000,
"taxPrice": 10.00000000,
"price": 1.0000,
"totalPrice": 11.00000000
}
]
}],
"subTotalPriceHtml": "<span data-cms_cart_subtotal=\"123\">$1.00</span>",
"taxCodeHtml": "<span data-cms_cart_tax_code_html=\"123\">GST</span>"
}
Low Stock Email
The order
object, after a checkout submission, in the ‘Low Stock Notification’ system email (if any ordered products trigger the low stock threshold) (email template and email body).
{
"domain": "https://YOUR-DOMAIN.com/",
"products": [
{
"orderLineId": "15049017874163171333",
"quantity": 1,
"unitPrice": 10.0000,
"taxRate": 0.1000,
"taxPrice": 1.00000000,
"totalPrice": 11.00000000,
"price": 10.0000,
"type": 0,
"moduleId": 1859,
"sKUCode": "11223344",
"name": "T-Shirt",
"smallImage": null,
"instock": 3,
"attributes": [
{
"name": "Colour",
"options": [
{
"name": "Green"
}
]
}
]
}
],
"totalCount": 1
}
Form Payment (form type: generic)
Confirmation page and Emails
The order
object, after a generic payment collection form submission, in the Confirmation page and the forms Workflow Notification, Autoresponder, and Invoice email (email template and email body).
{
"customerEmail": "joetest@test.com",
"paymentType": "CreditCard",
"state": "Paid",
"formId": 22,
"memberId": 47,
"caseId": 102,
"name": "General Payment 08 Feb 2021 12:44 PM",
"invoiceNumber": 42,
"invoiceCode": "",
"invoiceDate": "2/8/2021 12:44:59 PM",
"shippingAddress": {
"addressLine": null,
"city": null,
"state": null,
"zipCode": null,
"country": null
},
"amountPending": "0.0",
"amountPaid": "5.5",
"amountPaidHtml": "$5.50",
"amountPendingHtml": "$0.00",
"awbNumber": "",
"trackingUrl": "",
"id": "159",
"paymentIntentId": "XXXXXXXXXXXXXXXXX",
"paymentIntentClientSecret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"formatSetting": {
"name": "AU",
"culture": "en-AU",
"decimalsQuantity": 2,
"currency": {
"code": "AUD",
"symbol": "$",
"digitalCode": "36",
"name": "Australian Dollar"
}
},
"domainCountry": {
"name": "AUSTRALIA",
"code": "AU"
},
"destinationCountry": {
"name": null,
"code": null
},
"shippingOption": {
"id": "12252410371037462628",
"shippingOptionId": null,
"name": null,
"price": 0.0,
"taxPercent": 0.0,
"taxRate": 0.0,
"taxPrice": 0.0,
"totalPrice": 0.0,
"subTotalPrice": 0.0
},
"discount": {
"id": null,
"code": null,
"type": null,
"amount": 0.0
},
"giftVoucher": {
"id": null,
"code": null,
"amount": 0.0,
"balance": 0.0
},
"subTotalPrice": "5.5",
"taxPercent": "0",
"taxRate": "0",
"taxPrice": "0",
"discountPrice": "0",
"totalPrice": "5.5",
"shippingPrice": "0",
"shippingTaxRate": "0",
"shippingTaxPrice": "0",
"shippingSubTotalPrice": "0",
"shippingTotalPrice": "0",
"giftVoucherPrice": "0",
"subTotalTaxPrice": "0.0",
"discountedSubTotalTaxPrice": "0.0",
"grandTotalPrice": "5.5",
"totalPriceExcludingTax": "5.5",
"totalPriceExcludingTaxAndGiftVoucherAmount": "5.5",
"taxCode": "",
"totalPriceExcludingTaxHtml": "$5.50",
"totalPriceExcludingTaxAndGiftVoucherAmountHtml": "$5.50",
"grandTotalPriceHtml": "$5.50",
"discountPriceHtml": "$0.00",
"discountedSubTotalTaxPriceHtml": "$0.00",
"subTotalTaxPriceHtml": "$0.00",
"taxPriceHtml": "$0.00",
"shippingTotalPriceHtml": "$0.00",
"shippingPriceHtml": "$0.00",
"shippingTaxPriceHtml": "$0.00",
"shippingTaxPercentHtml": "0%",
"taxPercentHtml": "0%",
"giftVoucherPriceHtml": "$0.00",
"totalPriceHtml": "$5.50",
"items": [{
"id": "15049017874163171404",
"ecommerceItemId": 0,
"smallImage": null,
"name": "General Payment",
"type": null,
"moduleId": 0,
"SKUCode": "General Payment",
"quantity": 1,
"productFileLink": null,
"Url": null,
"taxCode": null,
"onSalse": false,
"price": 5.5,
"taxPercent": 0.0,
"unitPrice": 5.5,
"taxPrice": 0.0,
"unitTotalPrice": 5.5,
"totalPrice": 5.5,
"unitTaxPrice": 0.0,
"taxRate": 0.0,
"totalPriceExcludingTax": 5.5,
"unitRecommendedPrice": 0.0,
"unitRecommendedTaxPrice": 0.0,
"unitRecommendedTotalPrice": 0.0,
"taxPercentHtml": "0%",
"totalPriceExcludingTaxHtml": "$5.50",
"unitTaxPriceHtml": "$0.00",
"unitTotalPriceHtml": "$5.50",
"unitPriceHtmlTotal": "$5.50",
"priceHtml": "$5.50",
"unitPriceHtml": "$5.50",
"taxPriceHtml": "$0.00",
"totalPriceHtml": "$5.50",
"quantityHtml": "<input type=\"number\" value=\"1\">",
"removeHtml": "",
"taxCodeHtml": "",
"unitRecommendedPriceHtml": "$0.00",
"unitRecommendedTaxPriceHtml": "$0.00",
"unitRecommendedTotalPriceHtml": "$0.00",
"attributes": []
}],
"subTotalPriceHtml": "$5.50",
"taxCodeHtml": ""
}
Secure Zone/Membership Payment (form type: generic)
Invoice Email
The order
object, after a paid Secure Zone payment form submission, in the ‘Invoice’ system email (email template and email body).
{
"customerEmail": "joetest@test.com",
"paymentType": "CreditCard",
"state": "Paid",
"formId": 19,
"memberId": 45,
"caseId": 98,
"name": "Secure Zone paid (subscription)",
"invoiceNumber": 38,
"invoiceCode": "",
"invoiceDate": "2/7/2021 7:12:27 PM",
"shippingAddress": {
"addressLine": null,
"city": null,
"state": null,
"zipCode": null,
"country": null
},
"amountPending": "0.0000",
"amountPaid": "12.0000",
"amountPaidHtml": "$12.00",
"amountPendingHtml": "$0.00",
"awbNumber": "",
"trackingUrl": "",
"id": "12877807959236673687",
"paymentIntentId": "XXXXXXXXXXXXXXXXX",
"paymentIntentClientSecret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"formatSetting": {
"name": "AU",
"culture": "en-AU",
"decimalsQuantity": 2,
"currency": {
"code": "AUD",
"symbol": "$",
"digitalCode": "36",
"name": "Australian Dollar"
}
},
"domainCountry": {
"name": "AUSTRALIA",
"code": "AU"
},
"destinationCountry": {
"name": null,
"code": null
},
"shippingOption": {
"id": "12252410371037462624",
"shippingOptionId": null,
"name": null,
"price": 0.0,
"taxPercent": 0.0,
"taxRate": 0.0,
"taxPrice": 0.0,
"totalPrice": 0.0,
"subTotalPrice": 0.0
},
"discount": {
"id": null,
"code": null,
"type": null,
"amount": 0.0
},
"giftVoucher": {
"id": null,
"code": null,
"amount": 0.0,
"balance": 0.0
},
"subTotalPrice": "12.0000",
"taxPercent": "0",
"taxRate": "0",
"taxPrice": "0",
"discountPrice": "0",
"totalPrice": "12.0000",
"shippingPrice": "0",
"shippingTaxRate": "0",
"shippingTaxPrice": "0",
"shippingSubTotalPrice": "0",
"shippingTotalPrice": "0",
"giftVoucherPrice": "0",
"subTotalTaxPrice": "0.0000",
"discountedSubTotalTaxPrice": "0.0000",
"grandTotalPrice": "12.0000",
"totalPriceExcludingTax": "12.0000",
"totalPriceExcludingTaxAndGiftVoucherAmount": "12.0000",
"taxCode": "",
"totalPriceExcludingTaxHtml": "$12.00",
"totalPriceExcludingTaxAndGiftVoucherAmountHtml": "$12.00",
"grandTotalPriceHtml": "$12.00",
"discountPriceHtml": "$0.00",
"discountedSubTotalTaxPriceHtml": "$0.00",
"subTotalTaxPriceHtml": "$0.00",
"taxPriceHtml": "$0.00",
"shippingTotalPriceHtml": "$0.00",
"shippingPriceHtml": "$0.00",
"shippingTaxPriceHtml": "$0.00",
"shippingTaxPercentHtml": "0%",
"taxPercentHtml": "0%",
"giftVoucherPriceHtml": "$0.00",
"totalPriceHtml": "$12.00",
"items": [{
"id": "15049017874163171396",
"ecommerceItemId": 2,
"smallImage": null,
"name": "Paid Zone",
"type": "SecureZoneSubscription",
"moduleId": 0,
"SKUCode": "Paid Zone",
"quantity": 1,
"productFileLink": null,
"Url": null,
"taxCode": null,
"onSalse": false,
"price": 12.0000,
"taxPercent": 0.0000,
"unitPrice": 12.0000,
"taxPrice": 0.0000,
"unitTotalPrice": 12.00,
"totalPrice": 12.00,
"unitTaxPrice": 0.00000000,
"taxRate": 0.0000,
"totalPriceExcludingTax": 12.0000,
"unitRecommendedPrice": 0.0000,
"unitRecommendedTaxPrice": 0.0,
"unitRecommendedTotalPrice": 0.0,
"taxPercentHtml": "0.0000%",
"totalPriceExcludingTaxHtml": "$12.00",
"unitTaxPriceHtml": "$0.00",
"unitTotalPriceHtml": "$12.00",
"unitPriceHtmlTotal": "$12.00",
"priceHtml": "$12.00",
"unitPriceHtml": "$12.00",
"taxPriceHtml": "$0.00",
"totalPriceHtml": "$12.00",
"quantityHtml": "<input type=\"number\" value=\"1\">",
"removeHtml": "",
"taxCodeHtml": "",
"unitRecommendedPriceHtml": "$0.00",
"unitRecommendedTaxPriceHtml": "$0.00",
"unitRecommendedTotalPriceHtml": "$0.00",
"attributes": []
}],
"subTotalPriceHtml": "$12.00",
"taxCodeHtml": ""
}
Event Payment (form type: singleItem)
Confirmation page and Emails
The order
object, after a Event payment collection form submission, in the Confirmation page and the forms Workflow Notification, Autoresponder, and Invoice email (email template and email body).
{
"customerEmail": "joetest@test.com",
"paymentType": "CreditCard",
"state": "Paid",
"formId": 15,
"memberId": 47,
"caseId": 25,
"name": "Event Registration 08 Feb 2021 01:40 PM",
"invoiceNumber": 43,
"invoiceCode": "",
"invoiceDate": "2/8/2021 1:40:40 PM",
"shippingAddress": {
"addressLine": null,
"city": null,
"state": null,
"zipCode": null,
"country": null
},
"amountPending": "0.00",
"amountPaid": "2.00",
"amountPaidHtml": "$2.00",
"amountPendingHtml": "$0.00",
"awbNumber": "",
"trackingUrl": "",
"id": "164",
"paymentIntentId": "XXXXXXXXXXXXXX",
"paymentIntentClientSecret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"formatSetting": {
"name": "AU",
"culture": "en-AU",
"decimalsQuantity": 2,
"currency": {
"code": "AUD",
"symbol": "$",
"digitalCode": "36",
"name": "Australian Dollar"
}
},
"domainCountry": {
"name": "AUSTRALIA",
"code": "AU"
},
"destinationCountry": {
"name": null,
"code": null
},
"shippingOption": {
"id": "12252410371037462629",
"shippingOptionId": null,
"name": null,
"price": 0.0,
"taxPercent": 0.0,
"taxRate": 0.0,
"taxPrice": 0.0,
"totalPrice": 0.0,
"subTotalPrice": 0.0
},
"discount": {
"id": null,
"code": null,
"type": null,
"amount": 0.0
},
"giftVoucher": {
"id": null,
"code": null,
"amount": 0.0,
"balance": 0.0
},
"subTotalPrice": "2.0000",
"taxPercent": "0",
"taxRate": "0",
"taxPrice": "0",
"discountPrice": "0",
"totalPrice": "2.00",
"shippingPrice": "0",
"shippingTaxRate": "0",
"shippingTaxPrice": "0",
"shippingSubTotalPrice": "0",
"shippingTotalPrice": "0",
"giftVoucherPrice": "0",
"subTotalTaxPrice": "0.0000",
"discountedSubTotalTaxPrice": "0.0000",
"grandTotalPrice": "2.0000",
"totalPriceExcludingTax": "2.00",
"totalPriceExcludingTaxAndGiftVoucherAmount": "2.0000",
"taxCode": "",
"totalPriceExcludingTaxHtml": "$2.00",
"totalPriceExcludingTaxAndGiftVoucherAmountHtml": "$2.00",
"grandTotalPriceHtml": "$2.00",
"discountPriceHtml": "$0.00",
"discountedSubTotalTaxPriceHtml": "$0.00",
"subTotalTaxPriceHtml": "$0.00",
"taxPriceHtml": "$0.00",
"shippingTotalPriceHtml": "$0.00",
"shippingPriceHtml": "$0.00",
"shippingTaxPriceHtml": "$0.00",
"shippingTaxPercentHtml": "0%",
"taxPercentHtml": "0%",
"giftVoucherPriceHtml": "$0.00",
"totalPriceHtml": "$2.00",
"items": [{
"id": "15049017874163171408",
"ecommerceItemId": 2133,
"smallImage": null,
"name": "Seat Test",
"type": "ModuleItem",
"moduleId": 0,
"SKUCode": "bfcc9976-4500-4bc5-9384-9ba76e8e6e33",
"quantity": 1,
"productFileLink": null,
"Url": "/_event-group/seat-test",
"taxCode": null,
"onSalse": false,
"price": 2.0000,
"taxPercent": 0.0,
"unitPrice": 2.0000,
"taxPrice": 0.0000,
"unitTotalPrice": 2.00,
"totalPrice": 2.00,
"unitTaxPrice": 0.0000,
"taxRate": 0.0,
"totalPriceExcludingTax": 2.0000,
"unitRecommendedPrice": 0.0,
"unitRecommendedTaxPrice": 0.0,
"unitRecommendedTotalPrice": 0.0,
"taxPercentHtml": "0%",
"totalPriceExcludingTaxHtml": "$2.00",
"unitTaxPriceHtml": "$0.00",
"unitTotalPriceHtml": "$2.00",
"unitPriceHtmlTotal": "$2.00",
"priceHtml": "$2.00",
"unitPriceHtml": "$2.00",
"taxPriceHtml": "$0.00",
"totalPriceHtml": "$2.00",
"quantityHtml": "<input type=\"number\" value=\"1\">",
"removeHtml": "",
"taxCodeHtml": "",
"unitRecommendedPriceHtml": "$0.00",
"unitRecommendedTaxPriceHtml": "$0.00",
"unitRecommendedTotalPriceHtml": "$0.00",
"attributes": []
}],
"subTotalPriceHtml": "$2.00",
"taxCodeHtml": ""
}
Accessing the Data
JSON Output
You can output the full JSON for your component data by referencing the root Liquid object {{this}}
in your module’s layouts, or directly on your page, if using the collectionVariable
parameter in your component tag.
For example:
{% component type: ... collectionVariable: "myData" %}
You can then render the JSON like so:
{{myData}}
For more details on using this approach, see Part 2 of the free ‘Learning Liquid Course’.
Rendering Property Values
As an example of rendering a piece of this data onto your Invoice email layout you could use the following Liquid:
{{ this.order.totalPriceHtml }}{{ this.order.formatSetting.currency.code }}
This would output the value $11.00AUD
to the layout based on the above example data.
Extending on this example, we can use this data in a conditional Liquid statement to display custom information to the customer:
{% if this.order.totalPrice > 100 %} <!-- Order over $100 -->
<h2>Congratulations!</h2>
<p>Your order qualifies for a complimentary $10 Gift Card which we'll send out with your purchase.</p>
{% else %} <!-- if the order is $100 or less -->
<h2>Thank you!</h2>
<p>We hope you like your new purchase.<br>
Remember, if you spend over $100 you'll receive a bonus $10 Gift Card!</p>
{% endif %}