Take coupon codes into account when calculating the referral totals in WooCommerce. #375