How do I go about setting the character length for input forms, preferably checkout, on magento 1.9. I'm aware that Magento has a MaxLength variable but am Unsure on how to implement it.

  • in which input fields to set length – Anas Mansuri Apr 27 '20 at 14:23
  • First and last name – totneschap Apr 27 '20 at 15:00

For Magento1 goto app/design/frontend/themename/default/template/customer/widget/name.phtml

find first name - to add 'maxlength="30"' 
find last name  - to add 'maxlength="30"'
  • 1
    Thank you, that sorted it. – totneschap Apr 29 '20 at 13:04

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.