|
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
plugin-magento2/Model/Import/Customer.php
Line 774 in 6a3c014
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 :
But a more precise clean of the phone number could be better.
Thanks