Automatically update cart when changing quantity (Woocommerce

There you go, add the code to your functions.php child theme:

function actualizar_carrito_automaticamente(){
    ?>
    <script type="text/javascript">
        (function($){
            $( document.body ).on( 'change input', 'input.qty', function(){
                $("[name='update_cart']").trigger("click");
            });
        })(jQuery);
    </script>
    <?php
}
add_action( 'wp_footer', 'actualizar_carrito_automaticamente' );



Enjoy

3 Likes