discount_application
Information about discounts.
To learn how to display discounts in the theme, see Discounts.
Properties
The type of discount applied to line items or shipping lines.
Note
The type of discount depends on the target_type field.
| Possible values | Description |
|---|---|
| all | Applies to all product lines or shipping costs. |
| entitled | Applies to specific product lines or shipping costs based on certain criteria. |
The item type the discount applies to.
| Possible values |
|---|
| line_item |
| shipping_line |
The name of the discount for display.
The total discount amount.
Tip
Use the money helper to format the amount.
The discount value.
How this value is interpreted depends on the value type field. The table below outlines the meaning of each value type:
| Value type | Value |
|---|---|
| fixed_amount | The discount amount. |
| percentage | The discount percentage. |
Tip
Use the money helper to format the amount.
The type of discount value.
| Possible values |
|---|
| fixed_amount |
| percentage |
Was this article helpful to you?