0

Currently Magento puts reCAPTCHA form inside of the Payment form (directly on top):

enter image description here

Can this reCAPTCHA form be moved down to "Place Order" button?

enter image description here

Where should I look to move things around on the checkout?

UPDATE:

I found:

Magento\ReCaptchaCheckout\Block\LayoutProcessor\Checkout\Onepage

Code responsible:

$key = 'place_order';
if ($this->isCaptchaEnabled->isCaptchaEnabledFor($key)) {
    $jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
    ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']['children']
    ['place-order-recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key);
} else {
    if (isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
        
    ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']['children']
        ['place-order-recaptcha'])) {
        unset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
            ['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']
            ['children']['place-order-recaptcha']);
    }
}

It seems to be putting the form on the Onepage. Going to keep digging.

There are some notes from Adobe team on how to customize checkout:

https://devdocs.magento.com/guides/v2.4/howdoi/checkout/checkout_customize.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.