Using Smart Phone Field Without WooCommerce
Since version 1.2.0, Smart Phone Field works on any WordPress site, with or without WooCommerce.
What works without WooCommerce#
- The
[smart_ phone_ field]* shortcode, to add a phone field to any form. - The
[smart_ phone_ field _demo]* live demo. - Contact Form 7 and Fluent Forms support (beta).
- The PHP functions, JavaScript API and REST endpoint.
- The Location, Countries and Appearance settings.
What needs WooCommerce#
The checkout, My Account, admin order, readable numbers, WhatsApp button and Tools features. They switch on as soon as WooCommerce is active.
Where the settings are#
Without WooCommerce, Smart Phone Field is its own item in the admin menu, just after Appearance. With WooCommerce it sits under WooCommerce.
Location without WooCommerce#
The WooCommerce geolocation method uses your CDN or hosting headers instead. If your site isn’t behind a CDN, choose freeipapi.com or IP2Location.io under Location. When no country is found, the field starts on your site language’s country. For example, English (United States) gives the US flag.
Show a live demo#
Add [smart_ phone_ field_demo]* to any page. Visitors see a phone field plus the saved number, readable format, country, number type and whether it’s valid. Nothing typed into the demo is saved.
*Added spaces so shortcodes do not load