WooCommerce - Cart Problem

Hi,

i have a with the cart page. After validation of the form it scrolls up but the error message is not visible (check video).


I would be great if you could solve the problem.

Best
Tobias

Hi Tobias,

Thanks for reaching out.

Woocommerce do the scroll for focusing, but looks like it’s bug between scroll function and custom field (check out editor).

I added this to our issue tracker for further checking.

Thanks!

Hi,

thanks for your fast reply.
It would be great if you could help me.

Thanks
Tobias

Hi,

okay i tried another Checkout Field PlugIn - the same Problem occurs.
I disabled the Checkout Field Plugins - the problem still exists.

So i think it has nothing to do with the checkout field plugin.

What do you think.

Best
Tobias

Hi Tobias,

To temporarily fix this issue, please add this custom JS under Theme Options > JS:

jQuery( document.body ).on( 'checkout_error', function() {
    jQuery( 'html, body' ).animate({
		scrollTop: ( jQuery( 'form.checkout' ).offset().top - 120 )
	}, 1000 );
} );

Let us know how it goes!

Hi,

thanks that worked i modified it to top-250
Thanks for the fast help

Best
Tobi

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.