Hi,
any news ?
It seems that the problem is with all plugins that update the cart on checkout
Can you help me please?
best regard,
Nicola
Hi there,
Most probably it’s their fault, since you checked that breaks any cart update plugin and you should find an alternative
Nevertheless, please paste the link of the plugin so I can double check
Dear Stratos Vetsos,
any news for your check?
Kind regard,
Nicola
For some reason, the issue happens when we call
wc_add_notice( __( ‘The coupon has been removed from your cart.’, ‘gens-raf’ ), ‘error’ );
if we comment it out, an infinite loop is not happening.
WC()->cart->remove_coupon( $guest_coupon_code );
is working fine.
WC()->cart->remove_coupon( $guest_coupon_code );
wc_add_notice( __( ‘The coupon has been removed from your cart.’, ‘gens-raf’ ), ‘error’ );
this one brings infinite loop.
I thank Goran87 for his precious clarification.
I look forward to the double check of Stratos Vetsos
Thanks in advance,
Nicola
Hi @cigno76 and @goran87,
@goran87 I tested with the free version of your plugin and the removal of coupon works fine.
Also I didn’t found the code you referred in the previous post in the free version code.
So probably @cigno76 use your premium version and there is no way I can test this.
@goran87 please check the network response on xhr ?wc-ajax=update_order_review
and paste me the error
All good, I was having the wc_add_notice message outside of use/case which should fire it, and COD plugin was refreshing order status on each fire, so it went to infinite loop, strange that it was fine with other payment gateways, but all good now.