Version 4.7.9 of Store Locator Plus as well as the Experience, Premier, and Power add ons was released for WordPress today. The features and updates will roll out on the MySLP platform in the next 30-60 days after it passes full integration testing on the MySLP service.
The 4.7.9 update focuses on bringing the new Premier URL Control module functionality to the locator application. The URL Control module adds two new features to the Store Locator Plus application: passing in a location ID via a URL and passing in location limits via URL. These features can be enabled or disabled globally on a per-site basis.
Location ID via URL
With this feature enabled adding a ?location=<#> parameter to a URL will highlight that location. The location will be set as the center of the map and the marker will be clicked which will bring up the info bubble by default.
Limits via URL
With this feature enabled adding a ?limit=<#> parameter to a URL will set the initial map loading and search results limit on locations returned. Passing in ?location=<#>&limit=1 will highlight and only show that location on the map.
Premier members with an active subscription will be able to turn on the URL Control module which will load in the code necessary to add new Location ID and Limits via URL features.
Directory Builder Updates
The Power add on directory builder, invoked with the [slp_directory] shortcode on a page, has also had updates that work in conjunction with the new Premier URL Control module. You can now add a locator_data attribute to the shortcode to override the standard parameter passing when linking to a landing page. The default behavior is to link to the locator and filter results to match the given shortcode “by” attribute. For example [slp_directory by=”city” locator_page=”/map/”] would pass ?city=<city-name> to the map and show only locations in that city.
If you had one location in each city you could not pass [slp_directory by=”city” locator_page=”/map/” locator_data=”sl_id”] which would pass in the ?sl_id=<id> to the map. If the Location ID via URL feature is enabled this would allow people to see a list of cities and when clicking on a city bring up the map page highlighting that location on the map.
There have been a few minor patches as well as updates to the base Store Locator Plus plugin and Experience add on that ensures all the major components communication with each other properly on how to build the data queries properly when various parameters like location_id is passed in via a URL. Older legacy add ons will not have the necessary code updates and may conflict with the latest Power and Premier updates. Mixing-and-matching the Experience, Premier, or Power add ons with the legacy add ons is not recommended and is no longer supported.