Google Address Autocomplete for WooCommerce
A plugin that integrates Google address autocomplete with WooCommerce
by Nadir Seghir · github.com/senadir/google-autocomplete-for-woo
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/senadir/google-autocomplete-for-woo/archive/refs/heads/main.zipA dead-simple WordPress plugin that adds Google Places address autocomplete to WooCommerce checkout. Calls Google's API directly from the browser - no server-side proxy needed.
Features
- Just 2 files - one PHP, one JS
- Calls Google Places API directly from the frontend
- Works with WooCommerce's native address autocomplete system
- Supports both shortcode and block-based checkout
- Country restrictions support
- Zero dependencies beyond WooCommerce
Requirements
- WordPress 5.8+
- WooCommerce 10.3+
- PHP 7.4+
- Google Places API key
Installation
-
Get Google API Key
- Go to Google Cloud Console
- Create a project
- Enable Places API (New)
- Create an API key
- Restrict to your domain (recommended)
-
Install Plugin
cd wp-content/plugins git clone [your-repo] google-address-autocompleteOr upload via WordPress admin
-
Activate
- Go to Plugins in WordPress admin
- Activate "Google Address Autocomplete for WooCommerce"
Configuration
Step 1: Enable WooCommerce Address Autocomplete
- Go to WooCommerce → Settings → Advanced → Features
- Check "Address Autocomplete"
- Save changes
Step 2: Configure Google Settings
- Go to WooCommerce → Settings → General
- Scroll to "Google Address Autocomplete" section
- Check "Enable Google Autocomplete"
- Paste your Google API Key
- (Optional) Add country restrictions:
US,CA,GB - Save changes