How to Add Autocomplete for Address Fields in WordPress




Users have asked us how to add autocomplete for address fields in their WordPress forms. Autocomplete allows your visitors to quickly select an address form suggestions generated in realtime as they type. In this video we’ll show you how to add autocomplete for address fields in WordPress using the Google Places API.

Text version of this tutorial:

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook:

Follow us on Twitter:

Join our circle on Google+:

Checkout our website for more WordPress Tutorials

Summary of this tutorial:

For this tutorial we will be using the plugin: Address Autocomplete Using Google Place API.

With the plugin activated you will go to Settings, Google Autocomplete to configure the plugin’s settings.

It will ask for your Google Places API Key, the key allows your website to connect with Google Maps and retrieve autocomplete suggestions from their database.

You will want to visit Google’s Developer console website and create a new project, the developer console website can be found here:

Provide a name fir your project, we would recommend one that lets you identify what it is for.

You should automatically be redirected to your new project which lists the popular Google APIs you can use in your project.

Select the Google Places API key and press the enable link near the top of the page.

Click the create credentials for you to be able to use the API, as well as the What credentials do I need button, and you should see the API key you need to copy over to your WordPress plugin.

For your project you will also need to go to your library and also enable the Google Maps Javascript API and press the enable link in there as well.

You can add the autocomplete to any field in a form plugin by viewing the page the form is on and right clicking to inspect element the object.

Copy the name, ID, or CSS values for the field and paste it into the settings page.

If you would like to select multiple fields just add a comma for adding the new ID/name.


Fuente – Source

How to Add Autocomplete for Address Fields in WordPress

Necesitas ayuda con wp? Entonces WPVideo es tu sitio.
Encuentra lo que buscas entre cientos de miles de videos y experiencias personales de otros usuarios. Todos los que empezamos con wp deberíamos tener acceso a esta web, ojalá yo hubiera tenido algo así cuando empecé mi camino como webmaster 🙂
Pero ahora quiero y puedo poner esta web a vuestra disposición.
Disfrutadla 😉

Need help with wp? Then WPVideo is your site.
Find what you are looking for among hundreds of thousands of videos and personal experiences of other users. All of us who started with wp should have access to this website, I wish I had something like that when I started my journey as webmaster 🙂
But now I want and I can put this website at your disposal.
Enjoy it 😉

https://www.wpvideo.eu

Publicado en Bases de datos (Databases), Ecommerce, Plugins, Tutoriales (Tutorials) y etiquetado .

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *