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.'); 

1 Answer 1

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.'); 
1
  • Thanx..it worked for me. :) Commented Jan 8, 2020 at 6:51

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.