Skip to content

Wrong phone number clean at order import #4

@JulesLeynaud

Description

@JulesLeynaud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions