About
This is an example of how to remove spaces, dashes or country codes as part of phone numbers.
So if your customers enter any of these formats:
- +4511223344
- 11 22 33 44
- 11-22-33-44
or any of the above formats combined, they will then be formatted to:
- 11223344
Without spaces, dashes or country codes as most carrier integrations prefer them.
Example
Code
You can copy/ paste the code below however, each of the ' symbol will need to be entered manually in order to ensure the workflow will run correctly.
{{order.delivery_address.phone | remove: ' ' | remove: '+46' | remove: '-' }}