Usage: Embed Store Locator Shortcode

[vc_row el_id=”usage” personalization_rules=”%5B%7B%22country%22%3A%22AF%22%2C%22recurring_day%22%3A%220%22%2C%22start_date%22%3A%222017-08-21%22%2C%22start_time%22%3A%2200%3A00%22%2C%22end_date%22%3A%222017-08-21%22%2C%22end_time%22%3A%2223%3A55%22%2C%22device_type%22%3A%22computer%22%2C%22user_name%22%3A%224%22%2C%22user_cap%22%3A%22switch_themes%22%2C%22user_role%22%3A%22administrator%22%2C%22visits_minimum%22%3A%22100%22%2C%22visits_maximum%22%3A%22200%22%7D%5D”][vc_column][vc_column_text]

Store Locator Shortcode

To place the store locator just create a new page and insert the following shortcode:

[wordpress_store_locator]

New from Version 1.4.1: Shortcode attributes to create multiple maps with different categories. See here how to find the store category id.

Example 1:

  • Only show category ID 34 (T-Shirts)
  • no children
  • no “show all categories”
[wordpress_store_locator categories="34" show_children="no" show_all="no"]

Example 2:

  • Show Categories 32 (Clothes) and 35 (Music Stores)
  • Show no children
  • Show “all categories”
[wordpress_store_locator categories="32,35" show_children="no" show_all="yes"]

Search for Store Shortcode

If you want to have a search for store page like in our Demo, you can create a new page or use any other like your Home page for example. Then place the Following Shortcode:

[wordpress_store_locator_search url="https://demos.welaunch.io/wordpress-store-locator/demo/" style="1" show_filter="yes"]

Google API Key

For our plugin you will need a fully working Google API Key. A tutorial on how to get it, can be found here: https://connections-pro.com/documentation/create-google-maps-api-keys/
You need to make sure, that inside the Google Console the following options are activated:

Allow your domain to access the key
Enable: Google Places API Web Service
Enable: Google Maps JavaScript
Enable: Google Maps Geocoding[/vc_column_text][vc_separator css=”.vc_custom_1503299847900{margin-top: 30px !important;margin-bottom: 30px !important;}”][/vc_column][/vc_row]

42 thoughts on “Usage: Embed Store Locator Shortcode

  1. DAVID RAMIREZ says:

    This address appears by default when using the shortcode:

    Rostov Oblast, Russia, 346222

    How do I remove it?

  2. Diego says:

    We install the plugin, but it is giving error all the time of Geocoder failed due to: REQUEST_DENIED. What can it be?

  3. Gill Costello says:

    Hi,
    I’ve added the API. But when I add the shortcode [wordpress_store_locator] to a page it says Publishing Failed or Updating Failed. When I hit preview I can see the store locator. So close 🙂
    Can you please help?
    Thanks,
    Gill

  4. Max says:

    Hello,

    Ive used the shortcode: [wordpress_store_locator] to place the store locator on a normal page, however regardless of where on the page I place the shortcode, the locator keeps apearing at the top of the page. I need it to appear where Ive placed the shortcode.

    I’m using the Divi theme and placing the shortcode in a module specifically designed for code such as this. I’ve tried using Modal Code Position in the settings, but this doesnt work either.

    Any help would be appreciated!
    Thanks,

  5. Vincent says:

    Is it possible to have a shortcode to display a map that shows all stores by default? I want to show every pin on a map on one page, but not on another page.

  6. Justin says:

    I’ve added the API it shows that I have stores in the system, but as soon as I go to the page that holds the shortcode, it tells me “No stores found… Try Again.” What’s going wrong?

  7. adil says:

    Please disregard my second message, I got it to work, although on firefox the map is grayscaled and unclickable, it works on safari. Also I enabled “Use Output Buffering” to display the map where it should be.

  8. Adil says:

    A thousand sorry,
    I forgot one request.

    I have two filters “Current Products” and “Legacy Products”.
    I would like to display “Current Products” for this page http://kurzweildev.zaramedia.com/dealers_test_adil/
    I would like to display “Current Products” and “Legacy Products” for this page http://kurzweildev.zaramedia.com/authorized-repair-facilities-test-adil/

    I tried to use the “Edit Store Filter” for each of these filters. Ex I gave legacy filter the category “service centers aka authorized repair facilities”. It worked for the dealer page (only current products filter shows like I wanted), but not the authorized repair facilities. It keeps the current filter only when I want in addition “legacy products.

  9. Naveen says:

    Hi,
    I need to display Get Location pointer icon inside search box instead of “get my position” under the search box. How can I do that? Is that possible for to that with any simple customization?

  10. Lis says:

    Hello, since i used another theme in wordpress the map became much smaller in width and is to the right with the stores beside it in on the left and only in one row all the way down (50 stores) instead of in two rows of 25 underneath the map.
    How can I fix this?

  11. troy says:

    i have an issue on the category end. i have it set to geolocate but there are stores in the radius missing. ive tried adding every category id to the shortcode with no avail. can u help??

    • WeLaunch says:

      Please check if all stores have a valid lat / lng and categories are assigned. What you mean with “with no avail”?

      • Troy says:

        categories are assigned and lat / lng is set and valid. i mean ive tried everything and they don’t show also i thought it might be a category issue. so i tried to make an all category but quickly realized that if you try to attached parent categories to that main category you loos the option of child categories

  12. Matt says:

    Hi, is there anyway to include a basic search box on a different page in a widget or the like, that sends the user to the desired map page? ie. when they search a city or zipcode.

Leave a Reply

Your email address will not be published. Required fields are marked *