PHP 8.2 security fixes end 31 Dec 2026 PHP 8.2 fixes end 31 Dec 2026 30 days left Update for $349

Guide · 5 min read

How to add address autocomplete to WooCommerce checkout

Faster checkout and fewer failed deliveries: get a Google Maps API key, restrict it, fill fields in each country's format, and keep manual entry easy.

Updated 21 Nov 2026 · By the WPKoders development team

Typing an address on a phone is slow and error-prone, and every wrong address is a failed delivery, a reshipment and an unhappy customer. Address autocomplete suggests the full address as the shopper types and fills every field in the right format for their country. Here is how to set it up well, what it costs, and what to check.

Why it pays for itself

  • Faster checkout: a few taps instead of five fields, which matters most on phones.
  • Fewer failed deliveries: suggestions come from a real address database, so typos and missing apartment numbers drop.
  • Cleaner data: postcodes and states in the right format for shipping-rate and tax calculations.

Step 1: Get a Google Maps Platform API key

  1. Create a project in the Google Cloud console and enable billing.
  2. Enable the Places API (New) for that project.
  3. Create an API key and restrict it: to your website’s domain (HTTP referrers) and to the Places API only.
  4. Set a budget alert. Google includes a monthly free usage allowance; most small and mid-size stores stay within it, but an alert means no surprises.
WooCommerce address autocomplete: four checkout fields typed by hand versus one Google Maps suggestion
WooCommerce address autocomplete: four checkout fields typed by hand versus one Google Maps suggestion

Step 2: Turn it on for the right fields

Enable suggestions on the billing and shipping address fields. Limit suggestions to the countries you ship to: it makes them more accurate and keeps costs down. If you sell locally, bias results towards your region.

Step 3: Respect each country’s format

Addresses aren’t the same everywhere: house numbers come after the street in Germany, many UK addresses have no state, and Japanese addresses run from large to small. A good autocomplete fills WooCommerce’s fields according to the country selected, so your shipping labels print correctly.

Delivery address filled at checkout with city, state and ZIP Code
Delivery address filled at checkout with city, state and ZIP Code

Step 4: Keep manual entry easy

Some addresses aren’t in any database: new buildings, rural routes, PO boxes. Never block manual typing, keep every field editable after a suggestion fills it, and keep the “Apartment, suite” line visible.

Works with the block checkout

Many stores now use the WooCommerce checkout block. Check that your autocomplete supports it as well as the classic checkout shortcode, and that it works inside the “My account” address forms too.

Google address autocomplete suggestions under the checkout Address field
Google address autocomplete suggestions under the checkout Address field

What to test before you launch

  • Type a partial address for each country you ship to and pick a suggestion.
  • Check every field filled correctly, including postcode and state.
  • Test on a phone with the on-screen keyboard.
  • Enter an address manually without using a suggestion.
  • Check your Google Cloud usage after a day of real traffic.

Do it with Google Address Autocomplete

Address suggestions as shoppers type at checkout, in the right format for each country.

Buy now, $49 a year See the plugin