Home Forums WoodMart support forum Checkout field moving up after entering data

Checkout field moving up after entering data

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #493236

    dragan
    Participant

    Hi There,

    we have a strange situation now. After entering data in the checkout field the page jumps to the top. Each time and this is getting annoying for the customers.

    any idea why this is now happening or how to solve this part we did not notice this behaviour until recently. Attached is the video file what we mean by this.

    #493238

    dragan
    Participant

    here is the link of the video file seem i could not attach the file itself:

    https://drive.google.com/file/d/17QM1LLUhwcEw98vYP114ckRZ4bBUANmX/view?usp=sharing

    #493267

    dragan
    Participant

    i found the following snippet workaround to stop the autoscroll, however it does not work on the site.

    add_action(‘wp_footer’,’custom_js_function’);
    function custom_js_function(){
    ?>
    <script>
    jQuery( document ).ajaxComplete( function(event, xhr, settings) {
    if ( jQuery( ‘body’ ).hasClass( ‘woocommerce-checkout’ ) || jQuery( ‘body’ ).hasClass( ‘woocommerce-cart’ ) ) {
    jQuery( ‘html, body’ ).stop();
    }
    } );
    </script>
    <?php
    }

    #493268

    dragan
    Participant

    Correction. After some more testing the snippet works. Can this be a a feature in the release so you can turn it on and off.

    We tested it on 3 site and it solves the problems on and

    Dragan

    #493381

    Hello,

    You are Most Welcome.

    We are glad that you managed to solve the problem yourself. You are Great!!!

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Checkout field moving up after entering data’ is closed to new replies.