ShipX Help Center
How can we help? 👋

How to set shipping rates based on distance

ShipX allows you to charge shipping rates based on the distance between your fulfillment location (shipping origin) and the customer’s delivery address.


Shipping Origin

The Shipping Origin is the location you’ve configured in Shopify as the point from which your orders are fulfilled.

  • Shopify automatically assigns this origin point to each order.
  • ShipX then calculates the distance from the origin to the customer’s delivery address at checkout to determine the correct shipping rate.

Make sure your fulfillment location in Shopify is accurate, as all distance-based calculations depend on this origin.


Google Maps API Key Integration

To calculate distance-based shipping rates, ShipX requires a valid Google Maps API key.

Notion image

This key allows ShipX to use Google’s mapping services to measure the exact distance between your store’s origin and the customer’s address during checkout.

Without a valid API key, distance-based rate calculations will not work.

Google Cloud provides a $200 monthly free credit, which typically covers up to 28,000 map loads per month — more than enough for most small and medium-sized Shopify stores.


How to set shipping rates based on distance

Here is how to set shipping rates based on distance

Step 1: Create distance-based scenarios

  1. Go to the “Rates” section in the ShipX app.
  1. Click View on Scenarios > Create scenario.
    1. Notion image
  1. Give your scenario a clear name (for example, Local Shipping).
    1. Notion image
  1. Click the “Add condition” button.
  1. Set the Condition: Cart > Distance > Lesser than or equals >10kms. Click the “Add” button.
    1. Notion image

This means the scenario will apply only to orders where the delivery distance is less than or equal to 10 kms.


Step 2: Add a shipping rate

  1. Under the Shipping rates section, select the zone where you want to set the rate.
  1. Click the “Add shipping rate” button.
    1. Notion image
  1. Enter a rate name, such as Local Shipping.

Step 3: Add Cart Distance criteria

  1. Scroll to the bottom and open the Criteria dropdown.
  1. Choose the Cart > Distance option.
    1. Notion image
  1. Click “Add tiered rate” and set tiered rates as follows:
    1. Notion image
      • 0 - 5 kms = $0 (Free shipping)
      • 5.01 - 10 kms = $10

      Once you add the tiers, click the “Add” button.


If you need further information or assistance, please contact our customer support.

Did this answer your question?
😞
😐
🤩