Directory / plugin
Dialtidy – International Phone Numbers for WooCommerce
v1.3.2 · by wedoingood
Checks the phone numbers in your WooCommerce checkout and saves them in international format, with a country picker in the phone field.
About this plugin
Customers type their phone number the way they are used to, for example (201) 555-0123. Without a country code, you can’t tell where that number belongs, and calls, text messages and couriers fail.
Dialtidy adds a country picker with flags to the phone field. The country of the address is preselected, the customer can pick another one, and the order gets the number in international format: +12015550123.
Features
- Works in the block checkout, the classic checkout and the addresses in My account.
- The country of the billing or shipping address is preselected and changes with the address until the customer types a number or picks a country.
- Customers type the number as usual: spaces, dashes and parentheses, a leading 0, 00 or the country code with or without +, and digits from other scripts are all understood.
- Numbers are saved in international format (E.164), for example +12015550123, ready for couriers and text messages.
- On the order screen the number is shown with spaces, for example +1 201-555-0123, and can be called with one click.
- Each phone field has its own country list: all countries, the countries you sell or ship to, or your own selection. You can also block countries.
- Countries you choose, such as your customers’ most common ones, at the top of the list.
- When a number is not valid: stop the order, only warn, or don’t check.
- The same check runs when the order is placed, even if the check under the field didn’t run.
- An empty optional phone field is never blocked. Dialtidy follows the WooCommerce setting for the phone field.
- Orders paid with express payment buttons (digital wallets) are not stopped because of the phone, when the payment plugin marks them as express payments.
- Short, clear messages under the field, in your site’s language when a translation is available.
- The country list works with the keyboard and has labels for screen readers.
- Compatible with High-Performance Order Storage (HPOS).
Compatibility
- Dialtidy attaches to WooCommerce’s own phone fields. It is tested with the default WordPress themes, block and classic.
- Phone fields added by other plugins and forms are not changed.
- Orders you create in the admin are not changed.
External services
Dialtidy does not connect to any external service. The flags, the country list and the phone number rules are part of the plugin.
Credits
Dialtidy includes these open-source libraries:
- intl-tel-input 29.5.4 by Jack O’Connor, MIT License – the country picker with flags. Bundled as the minified build; the readable source is at https://github.com/jackocnr/intl-tel-input/tree/v29.5.4 and the unminified build is dist/js/intlTelInputWithUtils.js in the npm package [email protected].
- libphonenumber-for-php 8.13.55 by Joshua Gigg, Apache License 2.0 – the phone number rules, with the phone number data of version 9.0.41. Source: https://github.com/giggsey/libphonenumber-for-php. The namespace is changed and the data is written in the format of version 8.13, see vendor/libphonenumber/README.txt.