Select Store Upon Page Load (Individual Store Permalink)

The plugin does not have an exact permalink for individual store similar to directory plugins, however you can use parameter below to view a particular store based on address

City or Nearest City

?boxsearch=city

Example: https://superstorefinder.net/superstorefinderwp/?boxsearch=Paris

or

Address or Nearest Address

?boxsearch=address

Example: https://superstorefinder.net/superstorefinderwp/?boxsearch=Eiffel Tower, Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France

This will open the store locator page with the address of the store pre-entered in the search field.

To select and highlight the store info box upon load, edit js/mega-superstorefinder.js

Search for below code:

jQuery('#productsServicesFilterOptions').append(radiosStrArray.join(''));

Add the following code above the line of code above.

jQuery(function() {
 setTimeout(function(){
   jQuery('#store0').trigger('click');
 },1000);
});
				

Save and upload the file, clear browser cache and refresh.

store-permalink

Upon clicking the link with the address parameter, the individual targeted store should be displaying upon page load as screenshot above.

2+

Users who have LIKED this post:

  • Melanie
  • Sofia Moss