內容簡介
Real Simple Autocomplete for WooCommerce 外掛可透過 Google Places 和 OpenStreetMap 自動填寫 WooCommerce 結帳頁面的街道、城市、州、省、郵遞區號及國家欄位,提升結帳效率與準確性。
【主要功能】
• 自動填寫地址欄位
• 防止結帳重計算衝突
• 支援國際地址組件處理
• 可選擇使用 OpenStreetMap 作為備援
• 提供可鍵盤導航的建議面板
• 缺失門牌號碼通知功能
外掛標籤
開發者團隊
② 後台搜尋「Real Simple Autocomplete for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Real Simple Autocomplete fills WooCommerce checkout street, city, state, postcode, and country fields using Google Places and OpenStreetMap for greater definition and coverage.
Refresh-safe checkout updates
A defining feature of RSAC is its checkout request guard. WooCommerce normally recalculates totals whenever address fields change. Autocomplete fills several dependent fields in quick succession, which can otherwise start overlapping recalculations using incomplete address data.
While the shopper types and selects an autocomplete result, RSAC temporarily suppresses same-origin WooCommerce checkout requests while continuing to allow Google Places and OSM traffic. After the complete address has been applied, RSAC releases the guard and allows one coherent checkout recalculation.
This helps prevent:
Recalculations using partially populated addresses.
Competing country, state, postcode, shipping, and tax updates.
Checkout totals being calculated from stale field values.
Classic checkout loading overlays becoming stuck after an intentionally blocked refresh.
Excessive Store API batch requests in Checkout Blocks while autocomplete is active.
The request guard supports both classic checkout and Checkout Blocks and remains replaceable through window.rsacCheckoutRequestGuard for advanced integrations.
Additional features
Legacy Google Places Autocomplete or opt-in Places API (New).
Accessible, keyboard-navigable suggestions panel for Places API (New).
International address-component handling and manually entered house-number preservation.
Matches Google region codes and names directly to WooCommerce states, with an optional cached OSM fallback for unresolved regions.
Missing house-number notification and administrator-scoped diagnostics.
External services
This plugin does not send analytics or tracking data to the plugin author. It uses the following external services to provide address autocomplete and optional state or province matching. Depending on applicable law, site owners may need to describe these services in their privacy notice or obtain appropriate consent.
Google Maps Platform and Places API
Google Maps Platform is required for the plugin’s address autocomplete functionality.
The site owner should restrict the Google API key to the site’s HTTP referrers and to the Maps JavaScript API plus the enabled Places API.
When an enabled checkout page loads, the shopper’s browser requests the Google Maps JavaScript API. This request includes the site owner’s Google API key, the configured language and region, and standard connection information such as the shopper’s IP address and browser request data. As the shopper types in an enabled address field, the entered address text is sent to Google Places to obtain suggestions. Selecting a suggestion sends its Place identifier to Google to retrieve address components such as street, city, state, postcode, and country.
Google provides this service under its own policies:
Google Maps Platform Terms of Service: https://cloud.google.com/maps-platform/terms/
Google Privacy Policy: https://policies.google.com/privacy
OpenStreetMap Nominatim
OpenStreetMap Nominatim is optional. When enabled, it is used only if Google’s state or province code and name cannot be matched directly to a WooCommerce state option.
In that fallback case, the latitude and longitude of the selected Google Place are sent to the public Nominatim reverse-geocoding service to obtain an ISO state or province code. With direct requests, the shopper’s browser also sends standard connection information such as its IP address and browser request data. With the optional WordPress proxy cache enabled, the request is sent by the website server and also includes the site locale and a User-Agent containing the site URL. The plugin then caches only the country-and-region state-code mapping for 24 hours; it does not cache the shopper’s complete address or Google Places responses.
OpenStreetMap Foundation provides this service under its own policies:
Nominatim Usage Policy: https://operations.osmfoundation.org/policies/nominatim/
OpenStreetMap Foundation Terms of Use: https://osmfoundation.org/wiki/Terms_of_Use
OpenStreetMap Foundation Privacy Policy: https://osmfoundation.org/wiki/Privacy_Policy
