Plugin Author
Soft79
(@josk79)
In your theme add class “update_totals_on_change” to the container (div / ul) that holds the payment method radio buttons.
You can do this by overriding woocommerce/templates/checkout/payment.php (place it in YOUR_CHILD_THEME/woocommerce/checkout/).
For example replace:
<ul class="wc_payment_methods payment_methods methods">
by:
<ul class="wc_payment_methods payment_methods methods update_totals_on_change">
Hi, having the same problem here.
I added the code as you suggested but now when I go to the checkout page the “order review” area keeps loading in loop and I can’t choose the payment option.
My scenario is that I want to offer a 5% discount for bank deposit payment option, but when I choose this the coupon is applied and if I change my mind and choose other payment option, the coupon remains in the cart.
Can you please check how to solve this?
Thanks
Plugin Author
Soft79
(@josk79)
@Imzan. Please start your own thread because it’s a different issue. Please check if you have javascript errors or send an url to your page and instructions to reproduce so we can look what’s going on.
@josk79, thank you! That works.
Oh no! Just found that adding the class as you suggested conflicts with another plugin (https://wordpress.org/plugins/woocommerce-pagarme/)
Basically, when I add the class as you suggest the payment plugin no longer allows for choosing an installment plan.
Do you have another solution? Surely the script to check what method is selected should be able to run just using the default classes?: wc_payment_methods payment_methods methods
Plugin Author
Soft79
(@josk79)
Can you send me an url so I can see the issue?
Hello again
Any ideas? Issue is still present with latest versions of WooCommerce and your plugin.
Thanks
Plugin Author
Soft79
(@josk79)
Try this:
Undo the above template override and check this setting:
Settings > Extended coupon Features > Update order review on payment method change
Does that help?
Plugin Author
Soft79
(@josk79)
What version of our plugin do you use?