QUANTM7 Docs
QuillObjects

Order

The order object for confirmation pages, email templates, and customer account history.

The order object holds a completed purchase with its line items, totals, addresses, and payment details. It is available on the order confirmation page, in email notification templates, and inside the customer.orders array when a customer is logged in.

<h1>Order {{ order.name }}</h1>
<p>Placed on {{ order.created_at | date: '%d %B %Y' }}</p>

Core properties

PropertyTypeDescription
order.idnumberThe unique order ID
order.order_numbernumberThe order number (e.g. 1042)
order.namestringThe display name (e.g. #1042)
order.emailstringThe email address on the order
order.created_atstringWhen the order was placed
order.currencystringThree-letter currency code
order.notestringCustomer note left at checkout
order.tagsarrayTags assigned to this order
order.cancelledbooleanWhether the order has been cancelled
order.cancelled_atstringWhen it was cancelled (nil if not cancelled)
order.cancel_reasonstringThe reason given for cancellation

Financial properties

All prices are in the smallest currency unit. Use the money filter to display them.

PropertyTypeDescription
order.total_pricenumberThe final total including tax and shipping
order.subtotal_pricenumberTotal before tax and shipping
order.total_taxnumberTotal tax amount
order.total_discountsnumberTotal discount amount
order.total_shippingnumberShipping cost
order.gift_card_amountnumberAmount paid by gift card
order.refund_amountnumberAmount refunded, if any
order.financial_statusstringPayment status (see below)

Financial status values: pending, authorized, paid, partially_paid, refunded, partially_refunded, voided.

<p>Subtotal: {{ order.subtotal_price | money }}</p>
<p>Shipping: {{ order.total_shipping | money }}</p>
<p>Tax: {{ order.total_tax | money }}</p>
{% if order.gift_card_amount > 0 %}
  <p>Gift card: -{{ order.gift_card_amount | money }}</p>
{% endif %}
<p>Total: {{ order.total_price | money }}</p>

Fulfillment

PropertyTypeDescription
order.fulfillment_statusstringCurrent status: unfulfilled, partial, fulfilled, restocked
order.shipping_methodobjectThe chosen shipping method
order.shipping_method.namestringName of the shipping method
{% case order.fulfillment_status %}
  {% when 'fulfilled' %}
    <span class="badge badge--success">Shipped</span>
  {% when 'partial' %}
    <span class="badge badge--warning">Partially Shipped</span>
  {% else %}
    <span class="badge">Processing</span>
{% endcase %}

Line items

The order.line_items array contains every product in the order:

PropertyTypeDescription
item.product_idnumberThe product ID
item.variant_idnumberThe variant ID
item.titlestringProduct title
item.variant_titlestringVariant title (e.g. "Large / Black")
item.skustringSKU code
item.quantitynumberNumber of units ordered
item.pricenumberUnit price
item.line_pricenumberPrice times quantity
item.total_discountnumberDiscount on this line item
item.imagestringProduct image URL
item.urlstringLink to the product page
{% for item in order.line_items %}
  <div class="order-item">
    {% if item.image %}
      <img src="{{ item.image | img_url: '100x100' }}" alt="{{ item.title }}" />
    {% endif %}
    <div>
      <p>{{ item.title }}</p>
      {% if item.variant_title %}
        <p class="variant">{{ item.variant_title }}</p>
      {% endif %}
      <p>{{ item.quantity }} x {{ item.price | money }}</p>
    </div>
  </div>
{% endfor %}

Addresses

PropertyTypeDescription
order.shipping_addressaddressWhere the order is being shipped
order.billing_addressaddressThe billing address

Each address has the same fields as the Address object: first_name, last_name, name, company, address1, address2, city, province, zip, country, country_code, and phone.

<h3>Ship to</h3>
<p>
  {{ order.shipping_address.first_name }} {{ order.shipping_address.last_name }}<br />
  {{ order.shipping_address.address1 }}<br />
  {{ order.shipping_address.city }}, {{ order.shipping_address.zip }}<br />
  {{ order.shipping_address.country }}
</p>

Discounts

PropertyTypeDescription
order.discount_codesarrayDiscount codes applied to the order

Each discount code has code, amount, and type:

{% for discount in order.discount_codes %}
  <p>Discount: {{ discount.code }} ({{ discount.amount | money }} off)</p>
{% endfor %}

Tax lines

PropertyTypeDescription
order.tax_linesarrayTax breakdown by rate

Each tax line has title, price, rate, and rate_percentage:

{% for tax in order.tax_lines %}
  <p>{{ tax.title }} ({{ tax.rate_percentage }}%): {{ tax.price | money }}</p>
{% endfor %}

Transactions

PropertyTypeDescription
order.transactionsarrayPayment transactions on this order

Each transaction has id, amount, status, provider, kind, and created_at:

{% for txn in order.transactions %}
  <p>{{ txn.kind | capitalize }}: {{ txn.amount | money }} via {{ txn.provider }}</p>
{% endfor %}

Channel and region

PropertyTypeDescription
order.channelstringThe sales channel this order came from
order.regionstringThe region the customer ordered from

Customer

PropertyTypeDescription
order.customercustomerThe customer who placed the order
{% if order.customer %}
  <p>Order by {{ order.customer.name }} ({{ order.customer.email }})</p>
{% endif %}

On this page