From ef1315b4b3e8571f1371f59fc091e4cad8833400 Mon Sep 17 00:00:00 2001 From: rostyslav-hymon Date: Fri, 21 May 2021 18:32:01 +0300 Subject: [PATCH] MC-42372: [MSI] Capcha is absent and "login" button displayed incorect --- .../Block/LayoutProcessor/Checkout/Onepage.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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']); } }