If you want to add maxlength on the checkout street address field then you need to override on file in your theme
<vendername>/<theme_name>/Magento_Ui/web/templates/form/element/input.html
Make the above file & add the below code inside it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <input class="input-text" type="text" data-bind=" value: value, valueUpdate: 'keyup', hasFocus: focused, attr: { name: inputName, placeholder: placeholder, 'aria-describedby': getDescriptionId(), 'aria-required': required, 'aria-invalid': error() ? true : 'false', id: uid, disabled: disabled, maxlength: inputName.slice(0,6) === 'street' ? 35 : 'none' }" /> |
Note: We have tried this in Magento 2.3.7 version, If your version different then take copy this file from the vendor and add the last maxlength
If you are facing error as per the below, Then...
I've to add custom CSS for particular store on checkout...
If we use the quote collectTotal() method in our custom...
If you want to set a different look for a...
I have recently faced an issue during CSV import as...