Product Distance Sort & Filter

Compatible With: Community 1.3, 1.4,, 1.4.2, 1.5, 1.6, 1.6.1,, 1.7, 1.8, 1.8.1, 1.9, 1.9.1, 1.9.2, 1.9.3 Enterprise 1.10, 1.11, 1.11.1, 1.12, 1.13, 1.13.1, 1.14, 1.14.1, 1.14.2, 1.14.3,,,,,,,

Tech Specifications

Current Version:
Stable Build
11 December, 2018
Extensions, Content & Customizations, Mobile, Product Content, Site Search & Navigation
Supported Browsers:
Chrome Linux: 42, 43, 44 Mac: 39, 44 Windows: 39, 40, 42, 43, 44 Firefox Linux: 31, 38, 39, 40, 41 Mac: 31, 38, 39, 40, 41 Windows: 31, 38, 39, 40, 41 Opera Linux: 7, 7.1, 8, 9 Mac: 7, 7.1, 8, 9 Windows: 7, 7.1, 8, 9 Safari Linux: 7, 7.1, 8, 9 Mac: 7, 7.1, 8, 9 Windows: 7, 7.1, 8, 9 Edge Windows: 42 IE Windows: 10, 11, 8, 9


Sort and/or filter products by distance from the customer's location.

Other Extensions by MageModule, LLC


Back to top

Our Product Distance Sort & Filter extension allows customers to sort product lists on Category and Search Results pages by distance from their location and also filter by distance from their location. It’s simple: add address information or even very general location information like Mount Rushmore or New York City to some products. Using that information, either Google or Bing will automatically provide the latitude and longitude coordinates for the product’s location and it will be automatically saved to the product. On the frontend, the customer’s location will be automatically obtained from their IP address and the distance calculation will happen on the fly! Additionally, any products which have address or location information assigned to them will be plotted out on a Google Map for a helpful visual reference!

This extension will work with any theme or custom layered navigation module!


How Does It Work?

Product Distance Sort & Filter uses “geocoding”. Geocoding is the conversion of geographical information, such as an address, into latitude and longitude coordinates. When a customer comes onto the website, their IP address is used to automatically obtain their location coordinates. Then, a special mathematical formula is used to instantly calculate the distance from the starting point(the customer) to the endpoint(the product). That distance is then temporarily added to each product and used for sorting and/or filtering purposes.

Products can be sorted in either ascending or descending order by distance. When sorting by distance, any products that don’t have location data associated with them will be pushed to the end of the list. All of the other sort options (name, position, price, etc) will still work exactly as they always have. This just adds another great option to the list!



  • Sorts products by distance from the customer’s location
  • Adds a distance filter slider to the layered navigation block 
  • Works on Category pages and Search Results pages 
  • Works with custom themes and third-party layered navigation modules
  • Obtains customer’s location automatically from their IP address
  • Utilizes Google and Bing’s free geocoding APIs to obtain latitude and longitude coordinates for catalog products
  • Obtains product location using information as specific as a street address or information as general as a postal code or landmark name
  • Plots products onto an embedded Google map for visual representation
  • Allows user to change their location manually
  • Allows website administrator to choose whether to display distances in kilometers or miles
  • Allows website administrator to set distance as the default sort option
  • Allows website administrator to choose whether to display distance differently depending on product grid view or list view
  • Allows website administrator to choose whether or not to display Google map



Release Notes

Back to top


  • Compatible with CE: 1.3 1.4 1.4.2 1.5 1.6 1.6.1 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3
  • Compatible with EE: 1.10 1.11 1.11.1 1.12 1.13 1.13.1 1.14 1.14.1 1.14.2 1.14.3
  • Stability: Stable Build
  • Description:

    Fixed issue that would prevent an individual product from being geocoded when editing values in store scope unless the module was enabled globally


  • Compatible with CE: 1.3 1.4 1.4.2 1.5 1.6 1.6.1 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3
  • Stability: Stable Build
  • Description:

    Initial submission of extension


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

Q & A

Back to top


Back to top