Jump to content

Phone number - exact quantity


Erik Nisler

Recommended Posts

Through PS Admin, Interface its not possible. Through code changes, Its possible.


For adding validation for 9 digits only, kindly add the below code in the end of file : themes/{your_theme}/templates/customer/_partials/address-form.tpl

<script>
$(window).load(function() {
    $('input[name="phone"]').attr("pattern", '^\s*(?:[0-9]{9})\s*$');
});
</script>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...