內容簡介
**總結:**
Ship Distance 是一個強大的外掛,允許您限制運送至店鋪位置特定距離內的地址。主要功能包括:
- 使用經緯度設置最大送貨距離
- 自訂超出送貨範圍地址的錯誤訊息
- 安全加密敏感配置資料
- 完全國際化和可隨時翻譯
- 相容於 WooCommerce HPOS 和遠程記錄
### 問題與答案:
1. 如何設定最大允許的送貨距離?
- 輸入您的店鋪的緯度和經度
- 提供一個 Google 地圖 API 金鑰
- 設定允許的最大送貨距離
2. 當客戶進行結帳時,這個外掛會執行哪些動作?
- 計算店鋪和送貨地址之間的距離
- 如果距離超出指定限制,則阻止結帳
- 顯示一個自訂的錯誤訊息
3. 這個外掛的要求是什麼?
- WordPress 5.8+
- WooCommerce 7.1+
- PHP 7.4+
- Google 地圖 API 金鑰
4. 這個外掛連接到哪個外部服務來計算店鋪和客戶送貨地址之間的距離?
- Google 地圖距離矩陣 API
5. 什麼時候會發送數據給 Google Maps 距離矩陣 API?
- 每當客戶在結帳時輸入一個送貨地址時
6. 如果有興趣將這個外掛翻譯成其他語言,該怎麼做?
- 請聯繫作者進行翻譯
7. 如何獲得支援、功能請求或錯誤報告?
- 請訪問 https://kaleemullah.in/contact 获取支援。
外掛標籤
開發者團隊
原文外掛簡介
Ship Distance is a powerful plugin that allows you to limit shipping to addresses within a specified distance from your store location. Key features include:
Set a maximum delivery distance using latitude and longitude
Customize error message for addresses outside delivery range
Secure encryption of sensitive configuration data
Fully internationalized and translation-ready
Compatible with WooCommerce HPOS and Remote Logging
How It Works
Enter your store’s latitude and longitude
Provide a Google Maps API key
Set the maximum allowable delivery distance
Customize the error message shown to customers
When a customer proceeds to checkout, the plugin:
– Calculates the distance between the store and shipping address
– Blocks checkout if the distance exceeds your specified limit
– Displays a customized error message
Requirements
WordPress 5.8+
WooCommerce 7.1+
PHP 7.4+
Google Maps API Key
External Services
This plugin connects to the Google Maps Distance Matrix API to calculate the distance between the store and the customer’s shipping address. This is necessary to determine if the customer’s location is within the allowable delivery distance set by the store owner.
Data Sent:
Store’s latitude and longitude (provided by the store owner in the plugin settings).
Customer’s shipping address (entered by the customer during checkout).
When Data is Sent:
Data is sent to the Google Maps Distance Matrix API whenever a customer enters a shipping address at checkout.
Service Provider:
Service: Google Maps Distance Matrix API
Terms of Service: https://cloud.google.com/maps-platform/terms/
Privacy Policy: https://policies.google.com/privacy
This disclosure ensures compliance with privacy and legal guidelines and allows users to understand the nature of the data exchange with Google Maps services.
Translations
The plugin is translation-ready. If you’re interested in translating the plugin, please contact the author.
Support
For support, feature requests, or bug reports, please visit:
