Get discount amount for a cart item.
public get_discount_amount ( float $discounting_amount, array | null $cart_item = null, boolean $single = false ) : float | ||
$discounting_amount | float | Amount the coupon is being applied to |
$cart_item | array | null | Cart item being discounted if applicable |
$single | boolean | True if discounting a single qty item, false if its the line |
리턴 | float | Amount this coupon has discounted |