diff --git a/ReCaptchaStorePickup/Block/LayoutProcessor/Checkout/Onepage.php b/ReCaptchaStorePickup/Block/LayoutProcessor/Checkout/Onepage.php index c618d74f..339db3a7 100644 --- a/ReCaptchaStorePickup/Block/LayoutProcessor/Checkout/Onepage.php +++ b/ReCaptchaStorePickup/Block/LayoutProcessor/Checkout/Onepage.php @@ -48,13 +48,19 @@ public function process($jsLayout) $jsLayout['components']['checkout']['children']['steps']['children']['store-pickup']['children'] ['store-selector']['children']['customer-email']['children']['additional-login-form-fields']['children'] ['recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key); + $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children'] + ['shippingAddress']['children']['customer-email']['children'] + ['recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key); } else { if (isset($jsLayout['components']['checkout']['children']['steps']['children']['store-pickup']['children'] ['store-selector']['children']['customer-email']['children']['additional-login-form-fields']['children'] - ['recaptcha']['settings'])) { + ['recaptcha']) + ) { unset($jsLayout['components']['checkout']['children']['steps']['children']['store-pickup']['children'] - ['store-selector']['children']['customer-email']['children']['additional-login-form-fields']['children'] - ['recaptcha']['settings']); + ['store-selector']['children']['customer-email']['children']['additional-login-form-fields'] + ['children']['recaptcha']); + unset($jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children'] + ['shippingAddress']['children']['customer-email']['children']['recaptcha']); } }