Fix after tax coupon amounts

This commit is contained in:
Mike Jolley 2014-02-27 14:14:14 +00:00
parent 957e4a6d6e
commit 2e8c2e7396
1 changed files with 2 additions and 2 deletions

View File

@ -1754,8 +1754,8 @@ class WC_Cart {
if ( $coupon->is_valid() && ! $coupon->apply_before_tax() && $coupon->is_valid_for_product( $values['data'] ) ) {
$discount_amount = $coupon->get_discount_amount( $price, $values );
$this->discount_total += $discount_amount * $values['quantity'];
$this->increase_coupon_discount_amount( $code, $discount_amount * $values['quantity'] );
$this->discount_total += $discount_amount;
$this->increase_coupon_discount_amount( $code, $discount_amount );
$this->increase_coupon_applied_count( $code, $values['quantity'] );
}
}