How to create a store locator with defined sales territories/service areas
Return specific stores based on the Postal or Zip code a user searches for

Tip: Sales territory search has only been tested in the USA, Canada, UK and Australia. It should however work with any postal code system.
You might also be interested in...

Tags and search filtering

Using CSS to style your store locator

Creating a custom search form widget

Customize your store locator search results

The problem

By default Blipstar returns the nearest stores to any given location based on simple distance to the center of the search location. However it's also possible to link stores to specific postal or zip codes. Typically this is useful when certain stores exclusively cover specific service areas or territories (a franchise perhaps).

For example Store A exclusively covers several areas including the zip code 90210, whilst Store B covers an adjacent zip code 90048. If a user searches for 90210 several results apart from Store A might be shown including Store B (located in zip 90048). If the owner of Store A has exclusive rights to zip 90210 this presents a problem, especially if were promised all "leads" from potential customers from that area.

The solution

The Sales territories search mode offers a simple solution to this issue. In the example above searching for 90210 would only return Store A. Likewise typing 90048 would only list Store B.

To set up sales territories...

  1. Create a column in your data file called Territories (if you downloaded the example spreadsheet it should already be there).
  2. For each store enter a comma-separated list of the postal codes it covers in the Territories column.
  3. Alternatively if you are editing online via the Add and Edit options, you'll find Territories field in the Advanced fields section.
  4. Some examples...
    • USA: 90210,90048,90049
    • Canada: L5P,L5R
    • UK: NG7,NG8,NG9
    • Australia: 2140,2148-2156,2176
  5. Tip: For numeric postal codes you can define a range rather than listing each one individually (e.g. 2148-2254).
  6. Each store can have up to 100 associated postal codes.
  7. Go to Deploy and choose Sales territories as the Search type.
  8. Fire up your store locator, enter a postal code and, all being well, you'll only see one result.

By default if a user enters a postal code that does not match any territory no results are displayed. If you want to change this behavior so it falls back to a standard nearest distance search you can do so in Settings > General, selecting Sales territories in the Search specific options section and turning this feature on.

Providing store locator solutions since 2006.   Share: Linkedin  |  Twitter  |  Google+  |  Facebook  |  Pinterest