kimy Posted February 13, 2018 Share Posted February 13, 2018 Hi! My payment module adds the customers phone-number in a format with blank spaces in between, like: 0735 12 23 45. My other modules needs to have the number in this format: 0735122345 Can i somehow make changes in prestashops code in order to achieve this? I'm using Prestashop 1.7.2.4 I'm not sure but this line of code may do the trick, $string = preg_replace('/\s+/','',$string); Maybe you can help me from here? Link to comment Share on other sites More sharing options...
Carlo Delgado Posted February 27, 2018 Share Posted February 27, 2018 On 2/13/2018 at 9:34 AM, kimy said: Hi! My payment module adds the customers phone-number in a format with blank spaces in between, like: 0735 12 23 45. My other modules needs to have the number in this format: 0735122345 Can i somehow make changes in prestashops code in order to achieve this? I'm using Prestashop 1.7.2.4 I'm not sure but this line of code may do the trick, $string = preg_replace('/\s+/','',$string); Maybe you can help me from here? Hello, I have the same issue, did you found any solution? Link to comment Share on other sites More sharing options...
kimy Posted May 16, 2018 Author Share Posted May 16, 2018 No, I haven't found any solution, but it's probably an easy fix for a programmer. Link to comment Share on other sites More sharing options...
sting5 Posted September 28, 2021 Share Posted September 28, 2021 If anyone looks for an answer, here's the archived thread (code works): 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