claudiosanches / woocommerce-payment-discounts

Adds discounts for specific payment methods in WooCommerce.
http://wordpress.org/extend/plugins/woocommerce-payment-discounts/
31 stars 10 forks source link

Calculate totals after remove a coupon #34

Closed thiagogsr closed 7 years ago

thiagogsr commented 7 years ago

Ref.: https://github.com/claudiosanches/woocommerce-payment-discounts/issues/31

After switch to a payment method without discount the coupon is removed but the cart total still the same.

In my opinion it should be a WC responsibility as a callback after remove a coupon like when a product or coupon is added, see here.

extrapixel commented 7 years ago

Can confirm. This bug rendered the plugin useless for the purpose (i guess) most people use it for: to make certain payment methods "more expensive". In fact, it makes all payment methods cheapest ;) Thanks for fixing @thiagogsr and I agree - should be handled by WC in the first place.