
內容簡介
Dialtidy 是一款專為 WooCommerce 設計的外掛,能讓顧客以熟悉的格式輸入電話號碼,並自動轉換為國際格式,確保通話、簡訊及快遞的準確性。
【主要功能】
• 提供國家選擇器,顯示國旗
• 自動預選帳單或運送地址的國家
• 支援多種電話號碼格式輸入
• 儲存為國際格式(E.164)
• 可自訂國家列表及阻擋特定國家
• 兼容高效能訂單儲存(HPOS)
外掛標籤
開發者團隊
② 後台搜尋「Dialtidy – International Phone Numbers for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
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.
