Title: Ship Distance
Author: Kaleem Ullah
Published: <strong>2024 年 12 月 18 日</strong>
Last modified: 2024 年 12 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/ship-distance/assets/icon-128x128.png?rev=3209681)

# Ship Distance

 作者：[Kaleem Ullah](https://profiles.wordpress.org/kaleemullah05/)

[下载](https://downloads.wordpress.org/plugin/ship-distance.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/ship-distance/#description)
 * [评价](https://cn.wordpress.org/plugins/ship-distance/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ship-distance/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ship-distance/#developers)

 [支持](https://wordpress.org/support/plugin/ship-distance/)

## 描述

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

 1. Enter your store’s latitude and longitude
 2. Provide a Google Maps API key
 3. Set the maximum allowable delivery distance
 4. 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:

 1. Store’s latitude and longitude (provided by the store owner in the plugin settings).
 2. Customer’s shipping address (entered by the customer during checkout).

When Data is Sent:

 1. Data is sent to the Google Maps Distance Matrix API whenever a customer enters 
    a shipping address at checkout.

Service Provider:

 1. Service: Google Maps Distance Matrix API
 2. Terms of Service: https://cloud.google.com/maps-platform/terms/
 3. 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

## 屏幕截图

[⌊Plugin settings page⌉⌊Plugin settings page⌉[

Plugin settings page

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/ship-distance` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Navigate to Settings > Ship Distance
 4. Configure your store location, API key, and delivery distance
 5. Save settings

## 常见问题

### 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Ship Distance」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Kaleem Ullah ](https://profiles.wordpress.org/kaleemullah05/)

[帮助将「Ship Distance」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ship-distance)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ship-distance/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/ship-distance/)，或通过[RSS](https://plugins.trac.wordpress.org/log/ship-distance/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ship-distance/)。

## 更新日志

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/ship-distance/)
 * 标签
 * [delivery](https://cn.wordpress.org/plugins/tags/delivery/)[distance](https://cn.wordpress.org/plugins/tags/distance/)
   [Google Maps](https://cn.wordpress.org/plugins/tags/google-maps/)[shipping](https://cn.wordpress.org/plugins/tags/shipping/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/ship-distance/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ship-distance/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ship-distance/reviews/)

## 贡献者

 *   [ Kaleem Ullah ](https://profiles.wordpress.org/kaleemullah05/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ship-distance/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://kaleemullah.in)