
內容簡介
Phone Validator with Flags for WooCommerce 是一款專為 WooCommerce 設計的外掛,旨在提升結帳頁面的電話號碼輸入體驗,確保顧客提供有效的電話號碼,並支援國際化需求。
【主要功能】
• 顯示國家旗幟和撥號碼的下拉選單
• 實時驗證電話號碼格式
• 僅支持 WooCommerce 設定的銷售地區
• GDPR 安全,無需依賴外部 API
• 與高效能訂單儲存 (HPOS) 相容
外掛標籤
開發者團隊
② 後台搜尋「Phone Validator with Flags for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Phone Validator with Flags for WooCommerce enhances the billing phone field on the checkout page by:
Displaying a dropdown with country flags and dial codes.
Auto-detecting the default country based on your WooCommerce store location.
Validating the phone number format before order submission.
Respecting WooCommerce’s “Selling Locations” settings to limit the list of countries.
Supporting both Classic Checkout and Block Checkout (introduced in WooCommerce 8+).
Allowing full customization via a dedicated settings page under WooCommerce → Settings → Phone Validator.
Supporting the shipping phone field independently from the billing phone field.
Ideal for WooCommerce stores targeting international customers who want to ensure clean, valid phone numbers during checkout.
Have a question or need help? Contact the developer.
Features
Add country flags and dial codes to the checkout phone field.
Validate phone numbers in real-time before submission.
Full support for WooCommerce Block Checkout (Gutenberg).
Supports billing phone, shipping phone, and My Account phone fields independently.
Set preferred countries to appear at the top of the dropdown with a visual divider.
Choose between all countries or only WooCommerce Selling Locations.
Shipping phone field uses WooCommerce Shipping Locations automatically.
Inline error messages styled to match WooCommerce notices.
Respects WooCommerce field validation rules automatically.
Compatible with WordPress 7 and WooCommerce 10+.
GDPR-safe – no external APIs, fully self-hosted.
Compatible with High-Performance Order Storage (HPOS).
Lightweight and translation-ready.
Libraries Used
This plugin includes the following third-party open source library:
intl-tel-input v29.0.1 – JavaScript international phone input utility.
Source: https://github.com/jackocnr/intl-tel-input
License: MIT
