Powered by Adobe Commerce 2.4.5-p1


Distance Based Shipping



Back to top

Distance based shipping allows you to create a custom shipping method in your store that applies shipping charges based on how far the customer is from the store’s warehouse. Admin can provide the warehouse location and define distance ranges and their respective shipping costs. The Google Geocoding service accurately calculates the distance between the warehouse and customer’s location and applies the relevant shipping cost.    

The default Magento 2 shipping methods are not optimized enough and demand for a method that charges shipping fee based on customer’s shipping destination. Our Magento 2 distance based shipping extension is the solution. It works on the principle: "Longer the distance, higher the shipping fee." This shipping method is more reasonable and works fairly for both customers and merchants. Because the shipping fee varies according to the distance, the extension prevents cart abandonments that occur due to high shipping costs even for relatively nearer customers. 


Key Features

  • Customize the name & title of the shipping method
  • Use Google Map API key to calculate distance
  • Add your warehouse location
  • Create distance ranges and respective shipping cost
  • Select distance unit
  • Display a custom error message
  • Apply charges on whole cart or per item
  • Charge a fixed or per unit amount
  • Apply distance based shipping for a specific duration
  • Apply to specific customers or customer groups
  • Set advanced conditions
  • Display on multiple pages


Custom Name & Title

Give a suitable name and title to the new shipping method. For example, you can name it ‘Distance Based’ and title it ‘Best Value’. Both the name and title will appear on frontend. 


Google Map API

You need to have access to the Google Geocoding service to calculate distance. Once you create an account and enable the service, you will be given an API key. Just enter the key in the extension configurations and you are all set. 


Warehouse Location

You can add your warehouse location which will serve as the origin address. This address will automatically generate the latitude and longitude of your exact location. Google Map will calculate the distance between this location and the location that the customer specifies. 


Distance Tiers 

Define different distance ranges and their respective shipping costs. The cost will be applied according to the distance tier a customer falls into. 


Distance Unit

Select which unit you want to calculate the distance in. You have the following two options. 

  • Kilometer and Feet
  • Mile and Meter


Custom Error Message

Draft an error message that you want to display if the distance based shipping is not applicable. You can choose not to display this method if it’s not applicable in which case the error message won’t display.


Other Parameters

Choose whether you would like to apply the shipping charges on the whole cart or per item. If you choose ‘Per Item’, the charges are multiplied by the number of items in the cart. 

You can also choose whether you would like to apply a fixed shipping charge or per unit charge. If you choose ‘Per Unit’, the charges are multiplied by the number of distance units.


Apply To Specific Customers Or Customer Groups

Apply distance based shipping to specific customers or customer groups. Only the customers/groups you select will have access to this shipping method. 


Set Conditions

This Magento 2 distance based shipping extension allows you to set conditions that will trigger a rule. For example, if you want a rule to be true for a specific country only, use the ‘Shipping Country’ attribute to specify the country. The rule will only work if a customer specifies that country as their shipping destination. If no condition is set, the rule will work in all scenarios. 


Distance Based Shipping On Multiple Pages

Customers can see distance based shipping fees on the following pages.

  • Cart page (in shipping methods)
  • Checkout page
  • My Account order view page
  • Magento generated emails & PDF’s


Demo Links

Front End | Back End   

Technical Specifications

Back to top

Seller profile


Seller contact


Current Version


Adobe Commerce platform compatibility

Open Source (CE): 2.4 (current), 2.3 (obsolete)

Commerce on prem (EE): 2.4 (current), 2.3 (obsolete)


Stable Build


20 September, 2022


Extensions, Shipping & Fulfillment, Cross Border Fulfillment, Order Management (OMS), Warehouse Management System (WMS)

Supported Browsers

Chrome, Firefox, Opera, Safari, Edge, IE

Quality Report

Back to top

Installation & Varnish Tests


Coding Standard


Plagiarism Check


Malware Check


Marketing Review


Manual Testing


All tests were conducted on the latest versions of Adobe Commerce that existed for the compatible release lines at the moment of the extension submission. Latest versions of all other software were used, as applicable.

Release Notes

Back to top


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    - Compatible with Magento 2.4.5


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    - Compatible with Magento 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4


  • Compatible with Open Source (CE) : 2.3 2.4
  • Compatible with Commerce on prem (EE) : 2.3 2.4
  • Stability: Stable Build
  • Description:

    - Stable Release.
    - Compatible With Magento 2.4.0, 2.4.1, 2.4.2, 2.4.3.


Back to top

The best place to start if you need help with a specific extension is to contact the developer. All Adobe Commerce developers have both a contact email and a support email listed.

Contact Vendor

Q & A

Back to top


Back to top