Docs

How the Phone Field Works

2 min readUpdated October 19, 2026

Smart Phone Field adds a country flag dropdown to the billing and shipping phone fields. Your theme’s labels, required marks and layout stay as they are. The label changes from Phone to Phone number.

Step by step#

  1. The field picks a starting country. If the customer has already chosen a billing country, the flag matches it. If not, the plugin finds the visitor’s country from their location (see Location Detection). If that finds nothing, the field starts on your store’s country.
  2. The flag follows the address. When the customer changes the billing country, the flag and dial code change with it. They can also pick a different flag themselves.
  3. The customer types the number. The dial code is shown next to the flag, so they only type their local number.
  4. The number is checked. With Check phone numbers on, a message appears next to the field if the number isn’t right for the country, such as too short. See Real-time Format Validation.
  5. The number is saved in international format. On submit, the dial code is added and the number is saved as, for example, +12015550123. See How Phone Numbers Are Saved to Orders.

Where it appears#

  • Classic checkout and the Checkout block
  • My Account > Addresses (billing and shipping)
  • WooCommerce > Orders, when you create or edit an order
  • Anywhere you add the [smart_ phone_ field]* shortcode, and in supported form plugins

Fast loading#

The plugin only loads on the checkout and on account address-edit pages. Nothing runs on your homepage, product pages or cart. The phone-number rules load in the background after the page has finished loading, so they never slow down the first view of checkout.

*Added spaces so the shortcode does not load

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only