Skip to content

Commit

Permalink
Calculate totals after remove a coupon
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagogsr committed Apr 21, 2017
1 parent a14e0f6 commit 1a9a8a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class-wc-payment-discounts-apply-discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ protected function remove_payment_coupons( $cart, $skip = '' ) {
foreach ( $cart->get_applied_coupons() as $code ) {
if ( 'wcpd_' === substr( $code, 0, 5 ) && $code !== $skip ) {
$cart->remove_coupon( $code );
$cart->calculate_totals();
$removed = true;
}
}
Expand Down

0 comments on commit 1a9a8a6

Please sign in to comment.