Magento 2.3.2 : how can i add notice below street field in shipping address on checkout page
-
28-03-2021 - |
Domanda
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
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.');
Soluzione
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.');
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange