Deprecated object properties

The following Liquid object properties are considered deprecated, and have been replaced. They are still used in some themes, but it's recommended that you use the alternatives that are listed below.

checkout object properties

The following checkout object properties are now deprecated:

checkout.unavailable_line_items

See alternative: checkout.order

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

checkout.fulfilled_line_items

See alternative: checkout.order

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

checkout.unfulfilled_line_items

See alternative: checkout.order

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

checkout.fulfillment_status

See alternative: checkout.order

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

checkout.financial_status

See alternative: checkout.order

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

checkout.fulfilled_at

See alternative: checkout.order

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

checkout.discount

See alternative: checkout.order

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

checkout.discounts

Returns the discounts applied to the checkout. The amounts are in the customer's local (presentment) currency.

Input

{% for discount in checkout.discounts %}
* {{ discount.code }}: {{ discount.amount | money }}
{% endfor %}

Output

* secret-discount: $12.00

See alternative: checkout.cart_level_discount_applications

Deprecated because it does not include all discount types and all discount details.

checkout.cancelled

See alternative: checkout.order

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

line item object properties

line_item.discounts

Returns any discounts that scripts have applied to the line item.

This attribute only has a value if you are using the Script Editor app.

See alternative: line_item.discount_allocations

Deprecated because it does not include all discount types and all discount details.

line_item.line_price

Returns the combined price of all the items in the line item. This includes any discounts from Shopify Scripts that were applied on the line. This is equal to line_item.price multiplied by line_item.quantity.

See alternative: line_item.final_line_price

Deprecated because it does not include code discounts.

line_item.price

Returns the price of the line item including any discounts from Shopify Scripts that were applied on the line.

See alternative: line_item.final_price

Deprecated because it does not include code discounts.

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

See alternative: order.discount_applications

Deprecated because it does not contain all discount types and all discount details.

shop object properties

shop.locale

Returns the language locale that the store is currently displayed in. For example, en, fr, or pt-BR.

See alternative: request.locale

Deprecated because this value is contextual to the request and not a property of the shop resource.

Ready to start selling with Shopify?

Try it free