Want to make checkout a little quicker for your customers? If you don’t need a phone number for every order, you can make the field optional with a simple WooCommerce snippet. This quick adjustment gives shoppers more flexibility and can help reduce friction at checkout.
In this guide, you’ll learn how to use a WooCommerce snippet to make checkout phone number optional, with just a small change to your site’s code.
Why WooCommerce Requires a Checkout Phone Number
Checkout fields often reflect a store’s day-to-day needs, not a rule every business must follow. Understanding why a phone number is requested—and what changes when you stop requiring it—can help you decide whether to make that adjustment.
When to make the phone field optional
A phone number can be useful, but it isn’t essential for every order. If your team can process and fulfill purchases using the customer’s email address and shipping details, requiring a phone number may add an unnecessary step.
Making the field optional may suit stores that sell digital products, offer email-based support, or ship through services that don’t need a recipient’s number. It can also be a better fit if customers are hesitant to share personal contact details. On the other hand, keep the field required if your fulfillment process depends on calling customers or providing their number to a carrier.
Before changing the requirement, consider whether a phone number is needed for:
- Delivery coordination, such as arranging a drop-off or resolving an address issue
- Time-sensitive customer support or order changes
- Services or payment extensions that expect a phone number
Once you’ve checked those dependencies, the decision is less about WooCommerce’s default setup and more about what your store genuinely needs from shoppers.
How optional phone numbers affect orders and customer communication
When the field is optional, customers who leave it blank can still place an order, while those who prefer to provide a number can continue to do so. The order will still include the customer’s other checkout information, and standard email notifications can continue to support order updates.
The main trade-off is that your team may have fewer ways to reach a customer quickly. If a delivery issue comes up, for example, you may need to contact them by email and wait for a response. That’s usually manageable, but it’s worth making sure your support process accounts for it.
Also review connected tools before applying a WooCommerce snippet to make the checkout phone number optional. Some shipping, invoicing, or SMS plugins may rely on the field, so test a checkout with the number filled in and one with it blank. This helps confirm that orders, notifications, and fulfillment still work as expected.
WooCommerce Make Checkout Phone Number Optional with a Snippet
Once you’ve confirmed your store can handle orders without a number, the change itself is small. The key is to adjust the field’s validation without removing the field shoppers may still want to use.
First, choose a safe place for the code so it remains manageable when your site’s theme changes. The options below cover a child theme and a code snippets plugin.
Add the code using a child theme or code snippets plugin
A child theme keeps your customization separate from the main theme, while a snippets plugin lets you manage small code changes from the WordPress dashboard. Either approach can work; avoid editing your parent theme’s files directly, since an update may overwrite your changes.
Add this PHP snippet to your child theme’s functions.php file or create a PHP snippet in your code snippets plugin:
addfilter( 'woocommercecheckoutfields', 'myshopoptionalbillingphone' );
function myshopoptionalbillingphone( $fields ) {
if ( isset( $fields['billing']['billingphone'] ) ) {
$fields['billing']['billing_phone']['required'] = false;
}
return $fields;
}If you use a plugin, set the snippet to run on the front end or everywhere, depending on its settings. When adding it to functions.php, don’t paste another PHP opening tag if the file already starts with one.
With the code in place, it helps to know exactly what it changes—and what it leaves alone. This makes testing easier and can help you spot conflicts with other checkout customizations.
What the snippet changes at checkout
The snippet tells WooCommerce that the billing phone field is not required. It does not remove the field, change its label, or prevent customers from entering a number, so shoppers can still provide one when they choose.
It targets the classic WooCommerce checkout fields. If your store uses the Checkout block or a plugin that customizes checkout validation, confirm that the change works with that setup; another extension may apply its own requirement. Test an order with the phone field blank, then another with a number entered.
That distinction is useful if your team still relies on phone details for some orders. You can keep the field visible and let customers decide whether to fill it in.
Keep phone numbers available without requiring them
Leaving the field in place preserves a convenient option for customers who want to share a contact number. It also means staff can still see a number on orders where one was provided, without blocking checkout for customers who leave it empty.
After testing, review the order details and any connected shipping, invoicing, or notification tools. Confirm that blank numbers don’t trigger errors, and that entered numbers continue to appear where your team expects them. If a plugin still marks the field as required, check its settings or ask its developer about compatibility with the WooCommerce snippet to make checkout phone numbers optional.
Test Your Checkout and Troubleshoot Common Issues
A checkout can look correct while still rejecting an order behind the scenes. A few focused tests will show whether the change works for shoppers and whether the rest of your order workflow is still running smoothly.
Start by checking how the field appears and behaves across different screens. These quick checks can catch display or validation issues before customers run into them.
Verify the field is optional on desktop and mobile
Open checkout in a desktop browser and on a phone, ideally in a private or incognito window. Confirm the phone field is still visible, can be left blank, and no required marker suggests shoppers must complete it.
Try submitting the form with the field empty. If checkout moves to the next step without a phone-number error, the WooCommerce make checkout phone number optional change is working in that view. Also test with a number entered to confirm the field still accepts customer details.
Next, check that a completed test order reaches the usual stages. Using your payment gateway’s test mode can help you verify the flow without placing a real charge.
Check that orders still process correctly
After placing test orders—with and without a phone number—look at the order in your WooCommerce dashboard. Confirm that the customer’s other details are saved and that the phone field is blank when omitted, rather than causing an error or preventing the order from being created.
Review the connected steps your store relies on, such as payment confirmation, order emails, shipping labels, and invoicing. Pay particular attention to any integration that expects a phone number; if it can’t handle a blank value, you may need to adjust its settings or keep the field required for that workflow.
If the field still appears mandatory or an order fails, isolate the source before changing more code. Themes and checkout extensions can customize fields or add their own validation rules.
Fix conflicts with themes, plugins, or custom checkout fields
First, check whether the issue occurs on the classic checkout or the Checkout block, and whether a checkout plugin controls the form. The snippet targets classic checkout fields, so a block-based setup or extension may need a different configuration.
Temporarily disable relevant checkout customizations on a staging site, then test again. If the problem disappears, re-enable extensions one at a time to identify the conflict. Also check for custom code that resets the phone field’s required setting, and clear any page or site cache after updates.
Once the cause is clear, update the responsible setting or ask the extension’s developer about compatibility. Repeat both blank-field and filled-field tests before applying the change to your live store.
Make Checkout Easier While Keeping Phone Details Available
Making the WooCommerce checkout phone number optional can remove an unnecessary hurdle for customers without taking away the option to share a number. The snippet adjusts the field’s requirement, while leaving it visible for shoppers and staff who find it useful.
Before applying the change, make sure your fulfillment and communication processes can handle orders without a phone number. Then test checkout on desktop and mobile, and confirm that orders and connected tools work as expected. If another plugin or checkout setup overrides the field, adjust that configuration before making the change live.
With a little testing, you can tailor checkout to your store’s needs and give customers a smoother way to place an order.