Order Discount
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
amount
Returns the discount amount.
code
Returns the discount code, if any.
id
Returns the unique id for this discount.
title
Returns the title or description of the discount.
Last updated on