Magento 1.9 – Remove Validation from City Field in Checkout

checkoutform-validationmagento-1.9validation

How can I remove the validation from city field which says, "Please use letters only (a-z or A-Z) in this field". I have checked the extension files but I can't find anything there.

Best Answer

Find below mentioned file If they are not already exist within your theme copy the following files from the base/default theme to your theme:

template/customer/address/edit.phtml
template/checkout/onepage/shipping.phtml
template/checkout/onepage/billing.phtml

In each of these files, look for the <input> that defines the city field and remove the required class from the label, remove the required-attribute class from the input and make sure to remove the *.

Related Topic