Map display options

Map Display

The Experience add-on for the WP Store Locator Plus allows you to select when and what you want the Map to display.

With the Experience add-on installed and activated , a pull down menu under the section  “At start-up” allows the below options to be set:

  • Show Map (default)
  • Hide map until search
  • Image until search

Appearance

Additional options for how your Map layout and appearance  looks is also available with the Experience Add-on

Q. I see a gray map or blank map and search does not work

JavaScript Problems

Issues with the JavaScript part of the plugin usually manifest themselves by showing the search form but either a blank map, a map that is all gray, or a map that appears but search does not work. To debug these issues use the Firebug add-on with Firefox as noted above.

The WordPress Store Locator Plus map rendering is managed by the slp.js JavaScript file.  It sets up the communication with the built-in WordPress AJAX handler, admin-ajax.   Your server must be setup to allow the built-in WordPress AJAX handler to execute.

The PHP JavaScript connector did not load

We have come across this error on several installations. The short answer to this problem is that something in the WordPress installation prevented the Store Locator Plus JavaScript component from loading. This means that the map system cannot communicate with Google. This prevents the map from appearing and search results from working properly on your locations page.

Here are some issues we’ve come across that cause this to happen:

    • PHP version is < 5.2, this generates an error message that you will not see in the browser. Any error message will prevent the JavaScript PHP file from loading.
    • PHP Error Reporting Enabled, if PHP error reporting is enabled and ANY PLUGIN has bugs, uses deprecated WordPress functions, or uses deprecated PHP functions they will generate an error message. This error message can be hidden in the browser if the error happens in something that is creating page header information. This will also break the page loading process and prevent the JavaScript PHP from loading.
    • Plugin Errors, any plugin that does not load properly and does ANYTHING with page header output will break and thus cause a domino effect prevent the Store Locator Plus PHP JavaScript component from loading.

In many cases the cause of the maps not loading is because our PHP JavaScript file could not load. We can often detect this and pop-up the “PHP JavaScript connector did not load” warning. However we cannot catch all errors.

One of the best tools for searching for errors in the HTML page headers is to use Firefox with the Firebug plugin. Turn on the console and check the responses tab for any errors. We have resolved many client installation and map problems with this plugin. More often than not we are finding errors in other plugins, themes, or server configuration settings on the servers. No, our plugin is not perfect and is not 100% bug free (we wish it were) but we are no longer finding bugs in our plugin as the primary culprit in broke installations.

The PHP JavaScript page header is a critical part of a working Store Locator Plus installation. Since it loads very late in the page creation process it is susceptible to failures from almost anything else you may be loading on the page or your WordPress site. The the map is not loading and you are receiving this message get some page debugging/tracking tools like Firebug and isolate any plugins that are generating coding/output errors.

The [slp_search_element] Shortcode

The [slp_search_element] shortcode is only processed within the Search Layout setting.   It is used to display user input elements on the search form.

Attributes

Attributes are the keywords that appear after the opening [slp_search_element and before the closing ].

Default attributes include:

button=<slug>

Output a form button.  <slug> should be an input supported by the base plugin or an add on such as:

submit

Output the Find Locations button.

 

dropdown_with_label=<slug>

Output a dropdown selector with a preceding label for the specified input.  <slug> should be an input supported by the base plugin or an add on such as:

radius

Output a dropdown of radius selections based on the Experience / Search / Radii Options setting.

hard_coded_value=<value>

Outputs the specified value.  Used by some add ons to add a specific [slp_search_element] output.

input_with_label=<slug>

Output a input selector with a preceding label for the specified input.  <slug> should be an input supported by the base plugin or an add on such as:

address

Output a the address/zip-code input box.

Tech Geek Stuff

Processed by the SLP_UI class via add_shortcode in create string_SearchForm() which calls crease_SearchElement().

Filter shortcode_slp_searchelement is used to manipulate attributes.  Many add ons use this to render specific output using attribute ‘hard_coded_value’ => ‘xyz’ to output a specific value.

Layout Shortcode Cheat Sheet

The Experience Add On allows you to custom tailor the look and feel of the Store Locator Plus plugin on your site.   To accomplish this the plugin uses a combination of HTML and special shortcodes.   These are set via the Experience tab of the plugin and is broken into 3 main areas.

The Overall Layout

This is set via the View / Layout setting.    It determines the overall layout for the plugin based on 3 primary components: The Search Form, The Map, and The Results.
Continue reading “Layout Shortcode Cheat Sheet”

Q. What is the difference between a shortcode and locator layout settings?

A.    A shortcode is a WordPress-specific code that lets you do nifty things with very little effort.  Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line.   In other words, a Shortcode = shortcut. Continue reading “Q. What is the difference between a shortcode and locator layout settings?”

Make a Dial Link Phone number (clickable)

A check box under SLP/Experience/Results/Appearance titled “Use Dial Link for Phone” when checked makes the phone number in your locations results clickable to auto dial.  This feature is available  exclusively with the  Experience Add-on (also with Premier)

Experience Add on find this feature under Experience results panel
Experience Add on find this feature under Experience results panel

 

 

 

 

Q. What is meant by Experience in the User Interface

A. The (User) Experience settings in Store Locator Plus determine how the front end, that part of the plugin your site visitors interact with, looks and behaves. The settings on the (User) Experience tab change how the plugin looks and acts across all of the locators you have on your site. Some of the attributes set here can be overridden via shortcode attributes with the Experience Add-on.

Store Locator Plus Base free plugin under Experience tab
Store Locator Plus Base free plugin under Experience tab
Experience tab Functions with Experience ADD-on
Experience tab Functions with Experience ADD-)N

Google Map Domains supported in SLP

Google Map Domains

The following countries are currently supported in the Store Locator Plus plugin.  These countries determine the default center starting point for location searches and determine which Google locations engine is used when searching for an address.   This influences, but does not restrict, which results are returned.   Regardless of what country you select as the default, any location in your location database can be returned by the search regardless of the country in which that location resides. This does not effect the zip codes necessarily. Some contries postal code system is unique and Goolge search engines may revert back to an international search engine as they are constantly updating.

  • United States
  • Algeria
  • American Samoa
  • Andorra
  • Angola
  • Antigua and Barbuda
  • Argentina
  • Australia
  • Austria
  • Bahamas
  • Bahrain
  • Bangladesh
  • Belgium
  • Belize
  • Benin
  • Bolivia
  • Botswana
  • Brazil
  • Bulgaria
  • Burundi
  • Canada
  • Chile
  • China
  • Congo
  • Czech Republic
  • Democratic Republic of Congo
  • Denmark
  • Djibouti
  • Ecuador
  • Estonia
  • Ethiopia
  • Finland
  • France
  • Gabon
  • Gambia
  • Germany
  • Ghana
  • Greece
  • Guatemala
  • Guyana
  • Hong Kong
  • Hungary
  • India
  • Indonesia
  • Israel
  • Italy
  • Japan
  • Kenya
  • Lesotho
  • Liechtenstein
  • Lithuania
  • Macedonia
  • Madagascar
  • Malawi
  • Malaysia
  • Mauritius
  • Mexico
  • Mozambique
  • Namibia
  • Netherlands
  • New Zealand
  • Nigeria
  • Norway
  • Paraguay
  • Peru
  • Philippines
  • Poland
  • Portugal
  • Republic of Ireland
  • Romania
  • Russia
  • Rwanda
  • Sao Tome and Principe
  • Senegal
  • Serbia
  • Seychelles
  • Sierra Leone
  • Singapore
  • South Africa
  • South Korea
  • Spain
  • Sri Lanka
  • Sweden
  • Switzerland
  • Taiwan
  • Tanzania
  • Thailand
  • Togo
  • Uganda
  • United Arab Emirates
  • United Kingdom
  • Uruguay
  • Venezuela
  • Zambia
  • Zimbabwe

Q. What is the purpose of ranking under category manager?

A. Category ranking is a feature when you are using the Power Add-on and the category manager. The rank is used to sort the categories which will affect the map marker that is used when a location has been assigned more than one category. Following the page ranking paradigm set by WordPress, the rank field is a simple numeric weighting for the categories. This extended data attribute for categories makes it easy to re-arrange the “weight” of categories for map marker selection without mangling category slugs. The lower the number, the higher the precedence for the map marker.