Coupon

The coupon variable represents a discount code or coupon.

name

Coupon name.

code

Code (as used to redeem the coupon).

discount_amount

The discount. Either as a percentage or as money.

discount_type

The type of discount. Either money or percent.

Note

It’s advised to use the coupon_discount filter to format the discount.