On this page
What this issue is
Your checkout asks for a phone number, marks it as required, and only accepts one exact pattern. For example, it may demand 10 digits with no spaces, or a US-style number only. A customer who types +44 7700 900123 or (555) 010-9999 sees an error and cannot continue.
This is different from a field that rejects valid data in general. Here the cause is the combination of two choices: the phone is mandatory, and the format rule is narrow.
Why it costs you leads or sales
Many people do not want to give a phone number to buy something. When it is required and picky, some give up, and others type fake digits. Customers abroad are hit hardest, because country codes and local lengths differ.
The loss is quiet. The customer already chose a product and reached checkout, so the order is close. You will not see an error in your reports, only fewer completed orders.
- Product pageCustomer adds to cart
- Checkout detailsCustomer types +44 7700 900123
- Phone validationError: invalid format
- PaymentNever reached
- Order confirmationNo purchase
The strict phone rule blocks the step before payment.
Example: illustrative numbers showing how completion can differ when the phone is required with a strict format versus optional with any format.
How to check if your site has it
Go through your own checkout in a private browser window and try different numbers. Use a test product and stop before paying.
- Leave the field empty and see if you can continue
- A number with spaces: 07700 900 123
- A number with dashes or brackets: (555) 010-9999
- An international number: +44 7700 900123
- A number with a country code and no plus: 447700900123
- A short local number, as used in your target countries
- A number pasted from a phone contacts app
- Test on mobile as well as desktop
How to fix it
The best fix is to make the phone optional. If you truly need it, for example for courier delivery, accept any common format and clean it up after the order. Where the setting lives depends on your platform.
Open checkout settings
Go to Settings > Checkout. Under Customer contact or Shipping address phone number, choose Hidden or Optional instead of Required. Menu names can vary by plan and checkout version.
Check apps
If the error persists, an app or a customised checkout may add its own validation. Disable it in a test and re-check.
WooCommerce field setting
In the Customizer go to WooCommerce > Checkout and set Phone to Optional or Hidden. Newer block checkouts have the same option in the Checkout block settings.
Remove custom validation
Check your theme, a checkout field plugin, or code that uses the woocommerce_checkout_process hook for a phone pattern check, and loosen or remove it.
Loosen the input
Remove the required attribute and any narrow pattern. Use type tel with a permissive check, shown in the snippet below.
Validate on the server too
Make sure the server does not apply the old strict rule. Strip spaces and symbols there instead of rejecting.
Checkout settings
In Wix Stores go to Settings > Checkout and turn off the Require phone number option if it is on.
Checkout form
Go to Commerce > Checkout settings and set the phone field to Optional or Hidden if the option is available on your plan.
<input type="tel" name="phone" id="phone" autocomplete="tel" inputmode="tel" pattern="[0-9+()\-.\s]{6,20}">Explain why
Add a short hint such as 'Only used by the courier for delivery'.
Accept any common style
Allow digits, spaces, plus, dashes, dots and brackets. Check length loosely, not an exact count.
Clean it afterwards
Normalise the number after the order is placed, not at the field.
Write a helpful error
If you must reject a value, show an example of an accepted number.
Before
- Phone required
- Only 10 digits with no spaces accepted
- Error: invalid format
- International customers blocked
After
- Phone optional or clearly explained
- Spaces, plus and brackets accepted
- Helpful hint with an example
- Number cleaned after the order
How to confirm it's fixed
Repeat the number tests from the check section in a private window. Each style should pass to the payment step. Then leave the field empty if you made it optional and confirm you can still continue. Finally, place a test order, if your store has test mode, and check the phone is saved in the order.
How to prevent it happening again
- Ask whether you really need the phone before making it required
- Re-test checkout with several number styles after theme, app or plugin updates
- Test with numbers from every country you sell to
- Keep validation in one place, not in both theme and app
- Review checkout settings after any platform checkout upgrade
How FunnelGuard handles this
FunnelGuard detects this issue only partly. It runs your checkout journey on a schedule with a test phone number and checks that the step accepts it and the journey moves on. If your checkout starts rejecting that test number, you get one alert after a re-check from a second region, with a screenshot and a likely cause.
What it does not do: it uses a single test number, so it cannot know whether your real customers' formats, such as other countries, spaces or brackets, would be rejected. It also cannot tell whether making the phone optional would lift your orders.
Cover the rest by hand. Run the number list above after changes, and test the formats your customers actually use. Test traffic is marked and stops before payment unless your store's test mode is set up. A free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.
Questions people ask
Why does my checkout say my phone number is invalid?
The checkout probably expects one exact format, such as 10 digits with no spaces or a local country style. Numbers with a plus sign, spaces, brackets or a different country code then fail. Try plain digits, and ask the store to accept any common format.
Should I make the phone number required at checkout?
Only if you need it, for example for courier delivery or phone orders. Otherwise make it optional or hide it, because some customers will leave rather than share it. If you keep it, explain what it is used for.
How do I make the phone number optional in Shopify checkout?
Go to Settings > Checkout in your Shopify admin and set the phone number option to Optional or Hidden. The exact wording depends on your checkout version. If an error remains, check whether an app adds extra validation.
How do I make the phone field optional in WooCommerce?
In the Customizer go to WooCommerce > Checkout and set Phone to Optional or Hidden. If you use the block checkout, change it in the Checkout block settings. Also check plugins or code that apply their own phone pattern.
What is the best phone validation for international customers?
Allow digits, spaces, plus, dashes, dots and brackets, and check only a loose length such as 6 to 20 characters. Normalise the number after the order. Avoid rules that assume one country's length.
Can a phone format error cause cart abandonment?
Yes. The customer has already chosen a product, so an error at the contact step can make them leave. Fake numbers and lost orders are common results of strict rules.
Can FunnelGuard tell if my phone validation is too strict?
Partly. It checks your checkout with a test phone and alerts you if that number is rejected. It does not try all the formats your customers use, so test those by hand.