Checkout field moving up after entering data
-
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.
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
}
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
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.
The topic ‘Checkout field moving up after entering data’ is closed to new replies.