Question

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.');
Was it helpful?

Solution

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.');
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top