FluffyCat Posted January 12, 2015 Share Posted January 12, 2015 Hi I have had a few complaints from customers not being able to register because their phone number is not valid. I have not been able to reproduce it even using the same numbers so the suspicion is that its a browsers related problem? Is that possible, at least one user confirmed he was using Firefox but could not tell the version. Its not a frequent problem but it has happened enough times to be concerning. So, for me the actual check of the phone number format is not important and I would like to just remove it. Can anyone indicate which file I need to modify? I am using Prestashop 1.5.4.1. Thanks in advance. Link to comment Share on other sites More sharing options...
vekia Posted January 13, 2015 Share Posted January 13, 2015 classes/Validate.php public static function isPhoneNumber($number) { return preg_match('/^[+0-9. ()-]*$/', $number); } change it to: public static function isPhoneNumber($number) { return true; } Link to comment Share on other sites More sharing options...
FluffyCat Posted January 13, 2015 Author Share Posted January 13, 2015 Hi Vekia Thanks for the answer. I checked the function and I understand how to fix this in the php. However I was hoping to just remove this check from the theme. If I browse github in the 1.6 bootstrap theme I see this is used from the tpl here: https://github.com/PrestaShop/PrestaShop/blob/e48c6f4ddd65565dba9e59e4ff6bc792f138cbcc/themes/default-bootstrap/order-opc-new-account.tpl#L254 but in my 1.5.4.1 installation, I do not find this check in my tpl file. Do you know if its done only in php in 1.5.x or if its possible to remove it from the theme to not mess too much with the Classes? Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now