Overview

Represents an automatic discount that was applied to an order or a cart.

Properties

auto_discount.name

Returns the name of the automatic discount.

auto_discount.code

Returns the automatic discount’s code.

auto_discount.combines

Returns true if this automatic discount is configured to combine with other automatic discounts, false if it is not.

auto_discount.amount

Returns the discount amount.

Use the currency filter to format the output.