How could I validate only integer numbers on input text Magento?
The file I need to change in text.phtml and I know all of the validation terms on prototype, so I just need to know how to insert this on the code.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Add a class called "validate-digits" to your input type text line in the form.bascially it will look like
<input type="text" class="(your_other_classes) validate-digits" />
for more validation classes you can refer Form Validation in Magento
Note : 'validate-digits' => 'Please use numbers only in this field. Please avoid spaces or other characters such as dots or commas.'