order review checkout page reset woocomerce

Solutions on MaxInterview for order review checkout page reset woocomerce by the best coders in the world

showing results for - "order review checkout page reset woocomerce"
Adem
23 Aug 2016
1function refresh_checkout_on_payment_methods_change(){
2    ?>
3    <script type="text/javascript">
4        (function($){
5            $( 'form.checkout' ).on( 'change', 'input[name^="shipping_method"]', function() { 
6                $('body').trigger('update_checkout');
7            });
8        })(jQuery);
9    </script>
10    <?php
11}
12
13add_action( 'woocommerce_review_order_before_payment', 'refresh_checkout_on_payment_methods_change' );
14