Conversation
supportHi, this plugin causes a loading loop, if people want to check out with Klarna. This occurs with the newest version of WooCommerce, Klarna and your plugin. I had this problem a few weeks ago and rolled back the updates, but had to update now and investigate the problem.
add_filter('woocommerce_available_payment_gateways', function($gateways){ if(function_exists('WC') && isset(WC()->session) && is_object(WC()->session)){ WC()->session->set( 'stop_reload_do_ajax_again', null ); } return $gateways; }, PHP_INT_MAX); Add the above code in your theme functions.php file and then check
I, thanks a lot for your quick help. The code seems to work. But will a solution for that be implemented into the plugin, or is the code a long term solution?
Sorry there is no issue in the plugin so that code wont be part of the plugin, the issue is specific to the payment method used by you so you will have to use that code snippet
Hi, I had the same thing with Klarna Payments and I can confirm both the bug and the solution. I had the same infinite loop bug with Klarna but the above snippet solved the problem. I hope the Klarna guys solve this soon. Regards, Chris
add_filter('woocommerce_available_payment_gateways', function($gateways){ if(function_exists('WC') && isset(WC()->session) && is_object(WC()->session)){ WC()->session->set( 'stop_reload_do_ajax_again', null ); } return $gateways; }, PHP_INT_MAX); Add the above code in your theme functions.php file and then check
I, thanks a lot for your quick help. The code seems to work. But will a solution for that be implemented into the plugin, or is the code a long term solution?
Sorry there is no issue in the plugin so that code wont be part of the plugin, the issue is specific to the payment method used by you so you will have to use that code snippet
Hi, I had the same thing with Klarna Payments and I can confirm both the bug and the solution. I had the same infinite loop bug with Klarna but the above snippet solved the problem. I hope the Klarna guys solve this soon. Regards, Chris