0

In our case, we will always have two input fields for street address. I want to add notice below the 2nd input field of street. I have override layoutProcess file and just like given in below link, it is adding notice to every input field except street.

Magento 2 : how can i add notice below state/province field in shipping address in checkout page

enter image description here

I have tried following so far:

$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
            ['shippingAddress']['children']['shipping-address-fieldset']['children']['street[1]']
            ['notice'] = __('This is my custom notice.');


$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
            ['shippingAddress']['children']['shipping-address-fieldset']['children']['street']
            ['notice'] = __('This is my custom notice.');

$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
            ['shippingAddress']['children']['shipping-address-fieldset']['children']['street.1']
            ['notice'] = __('This is my custom notice.');
0

Try This :-

$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
            ['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][1]
            ['notice'] = __('This is my custom notice.');
  • Thanx..it worked for me. :) – Abdullah Riaz Jan 8 '20 at 6:51

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.