Eeva-Maria Posted March 13, 2017 Share Posted March 13, 2017 I'm new with Prestashop and need your help with this. Our payment provider needs to have customers to fill in telephone in format: +[country code][phone number]. How to make sure that our shop will only approve numbers in this format? Now it is accepting numbers but doesn't require this format. Link to comment Share on other sites More sharing options...
Gabriel Perez Posted March 13, 2017 Share Posted March 13, 2017 You dont need to force your customers to do that. Each country you configure already has the phone prefix, so you can obtain it from there. Link to comment Share on other sites More sharing options...
Eeva-Maria Posted March 13, 2017 Author Share Posted March 13, 2017 Thanks Gabriel, I'm not just totally sure what you mean - how can I obtain it there? Maybe I wasn't able to describe the problem correctly. At least now when I insert the phone number without + to my address, our payment provider doesn't approve the payment. Link to comment Share on other sites More sharing options...
Gabriel Perez Posted March 13, 2017 Share Posted March 13, 2017 Sorry, i didn't read correctly. In the country, which already figure on the customer's address, there is a field with the phone prefix. What i mean by saying that you can obtain in from there, y mean programmatically, that is, modifying the code. But, if youre not a programmer, nor a person familiar with programming, perhaps this is not so easy to you. In that case, will be easy to you to modify the code to make prestashop only allow the format you want in the phone number. Link to comment Share on other sites More sharing options...
202ecommerce Posted September 20, 2017 Share Posted September 20, 2017 Hello, we can advise you our new module: Phone Number: international phone format, export csv It allows you to check the phone number format before your customers add a new address. Do not hesitate to contact us for any additional questions Best regards, 202 Addons Team 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