susan88 Posted July 21, 2010 Share Posted July 21, 2010 Does anyone know of a script that will examine and modify phone numbers to use numeric only? I have migrate mbv4 to whmcs using built in import script, the phone number is not uniform like +AA-BBB-CCCCCCC, +AA-BBBCCCCCCC, +AA.BBBCCCCCCC, BBB-CCCCCCC, etc 0 Quote Link to comment Share on other sites More sharing options...
b.ahmed Posted July 22, 2010 Share Posted July 22, 2010 Don't know how to do this but you could edit the viewcart.tpl and add instruction at the bottom of phone number field. 0 Quote Link to comment Share on other sites More sharing options...
Kiwispy Posted August 29, 2010 Share Posted August 29, 2010 Same problem here. I need to have a phone number like this : +1.123456789 All my registration fail without this phone number format... 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 29, 2010 Share Posted August 29, 2010 If you want to make sure they're all uniform going into WHMCS, you could do it with jquery masked input plugin. <script src="http://jquery-joshbush.googlecode.com/files/jquery.maskedinput-1.2.2.js" type="text/javascript"></script> <script language="javascript"> jQuery(function($){ $("#phone").mask("(999) 999-9999"); }); Then just set the id tag on the text box to "phone" <input type="text" id="phone" name="phone" size="25" />[code] This is completely untested. More information on usage can be found here: http://digitalbush.com/projects/masked-input-plugin/ For already existing data in the database.. You might want to look at this: http://stackoverflow.com/questions/52315/t-sql-trim-nbsp-and-other-non-alphanumeric-characters 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.