<?php

// Add this code!
add_action( 'wp_footer', function() {
?>
<script>
(function($) {
    $(document).on('click', '.woo-pagination a', function(e) {
        e.preventDefault();
        var matches = $(this).attr('href').match(//page/(d+)/);
        if (null !== matches) {
            FWP.paged = parseInt(matches[1]);
            FWP.soft_refresh = true;
            FWP.refresh();
        }
    });
})(jQuery);
</script>
<?php
}, 100 );