• Resolved blitton

    (@blitton)


    Hi,

    I’m using hCaptcha (free plan) on the WooCommerce checkout page of a website I’m building, and I noticed that when I load the checkout page after adding any product(s) to the cart, the page jumps all the way down to the hCaptcha, which is at the very bottom of the page.

    To test for plugin/theme conflicts, I disabled all plugins except for hCaptcha and WooCommerce and enabled the Twenty Twenty-One theme. After doing this, the page still jumps down the the hCaptcha.

    The website is running the latest versions of WordPress and all plugins and themes at the time of writing this.

    Is there a way to prevent this from happening?

    Thank you in advance,
    Ben

    • This topic was modified 10 months ago by blitton.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    Thank you for the report. It is a new issue that appeared recently. We will fix it in the next version of the plugin, which will be released at the beginning of February.

    So far, you can replace the content of files assets/js/hcaptcha-wc-checkout.js and assets/js/hcaptcha-wc-checkout.min.js with the following code.

    /* global jQuery */
    
    const wc = function( $ ) {
    	$( document.body ).on( 'checkout_error', window.hCaptchaBindEvents );
    	$( document.body ).on( 'updated_checkout', window.hCaptchaBindEvents );
    };
    
    window.hCaptchaWC = wc;
    
    jQuery( document ).ready( wc );
    
    
    • This reply was modified 10 months ago by kaggdesign.
    Thread Starter blitton

    (@blitton)

    Great, thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce checkout page jumps to hCaptcha on page load’ is closed to new replies.