Mô tả
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:
https://kaleemullah.in/contact
Cài đặt
- Upload the plugin files to the
/wp-content/plugins/ship-distance
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Navigate to Settings > Ship Distance
- Configure your store location, API key, and delivery distance
- Save settings
Hỏi đáp
-
Do I need a Google Maps API Key?
-
Yes, you must obtain a Google Maps API key and enter it in the plugin settings to calculate distances.
-
How do I find my store’s latitude and longitude?
-
You can use online tools like Google Maps or GPS coordinates to find your exact location’s latitude and longitude.
-
Can I customize the error message?
-
Yes! You can fully customize the error message shown when an address is outside the delivery range.
-
Is the plugin translation-ready?
-
Absolutely! All strings are internationalized and ready for translation.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Ship Distance” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Ship Distance” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0
- Initial release