Only offer Distance Rate Shipping below a maximum distance

Use this setup when you deliver only within a fixed service area and want Distance Rate Shipping to stop returning rates beyond a maximum distance.

Before you begin

↑ Back to top
  • Add Distance Rate Shipping to the shipping zone that covers the delivery area.
  • Configure the store origin and distance calculation settings for Distance Rate Shipping.
  • Use the same distance unit in the rule that you use for the delivery range.

Set a maximum distance

↑ Back to top
  1. Go to WooCommerce > Settings > Shipping > Shipping zones.
  2. Select the shipping zone that contains the Distance Rate Shipping method.
  3. Select Edit for the Distance Rate Shipping method.
  4. In Distance Rate Rules, add or edit a rule.
  5. Set Condition to Distance.
  6. Leave Min blank or set it to 0.
  7. Set Max to the largest distance you deliver to. For example, enter 50 to offer Distance Rate Shipping only within 50 miles or kilometers, depending on your unit setting.
  8. Set the rule’s cost fields for in-range delivery.
  9. Select Save changes.

The finished rule looks like this:

Expected result

↑ Back to top

When the calculated distance is within the rule’s maximum, Distance Rate Shipping can return the matching rate at checkout. When the calculated distance is beyond the maximum, that rule does not match. If no other shipping methods or Distance Rate rules match the package and address, checkout shows the store’s no-shipping-method message.

Test the rule

↑ Back to top
  • Test one customer address inside the maximum distance.
  • Test one customer address outside the maximum distance.
  • If you use other shipping methods in the same zone, confirm which method appears when Distance Rate Shipping does not return a rate.

Related Products

Enable customers to pay for products using a deposit or a payment plan.

Manage the RMA process, add warranties to products, and let customers request and manage returns/exchanges from their account.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.