Skip to Content

OrderDiscount

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

Usage Example

{%- comment -%} List all discounts applied to an order {%- endcomment -%} <ul> {% for discount in order.discounts %} <li>{{ discount.title }}: -{{ discount.amount }}</li> {% endfor %} </ul>

Properties

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.