Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong phone number clean at order import #4

Open
JulesLeynaud opened this issue Apr 7, 2022 · 0 comments
Open

Wrong phone number clean at order import #4

JulesLeynaud opened this issue Apr 7, 2022 · 0 comments

Comments

@JulesLeynaud
Copy link

return preg_replace('/[^0-9]*/', '', $phoneNumber);

Hello,
This regex remove the "+" of the country calling code of the phone during order import.
Exemple "+336123456789" is stored in magento as "336123456789" wich is a wrong phone number.

A quick fix could be :

return preg_replace('/[^0-9+]*/', '', $phoneNumber);

But a more precise clean of the phone number could be better.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant