Skip to Content

OrderDiscount

The order_discount object describes a discount applied to an order, such as a coupon or automatic discount.

{%- comment -%} List discounts on an order {%- endcomment -%} {% for discount in order.discounts %} <div>{{ discount.title }}: -{{ discount.total_amount | money_with_currency }}</div> {% endfor %}

title

Returns the title.

description

Returns the description.

discount_percent

Returns the discount percent.

type

Returns the discount type.

code

Returns the code for coupons.

total_amount

Returns the total discount amount.

total_savings

Returns the total savings.