Deprecated object properties

The object properties listed below are now considered deprecated and have been replaced. Although they are still seen in some older themes, we recommend that you use the suggested alternatives.

checkout object properties

The following checkout object properties are now deprecated:

checkout.unavailable_line_items

Returns the unavailable line items of the checkout. Deprecated because it's always empty.

checkout.fulfilled_line_items

Returns the fulfilled line items of the checkout. Deprecated because it's always empty.

checkout.unfulfilled_line_items

Returns the unfulfilled line items of the checkout. Deprecated because it's always equal to line_items.

checkout.fulfillment_status

Returns the fulfillment status of the checkout. Deprecated because it always returns 'unfulfilled'.

checkout.financial_status

Returns the financial status of the checkout. Deprecated because it always returns nil.

checkout.fulfilled_at

Returns the date of fulfillment of the checkout. Deprecated because it always returns nil.

checkout.discount

Returns the discount applied to the checkout but not saved. Deprecated because on the order status page, an unsaved discount cannot exist.

checkout.cancelled

Returns whether the checkout is cancelled. Deprecated because it always returns false.

line_item object properties

line_item.line_price

Returns the combined price of all the items in the line_item. This is equal to line_item.price times line_item.quantity.

line_item.price

Returns the price of the line item's variant.

order object properties

order.discounts

Returns an array of discounts for an order.

Input

{% for discount in order.discounts %}
  Code: {{ discount.code }}
  Savings: {{ discount.savings | money }}
{% endfor %}

Output

Code: SUMMER16
Savings: -$20.00

Ready to start selling with Shopify?

Try it free