View Categories

How to use Agile Store Locator Shortcodes?

The Store Locator has a lot of features that can be invoked through the shortcode attribute. Furthermore, the attributes can be used individually or by space separation. For example, to use two shortcodes, we will write as given below.

[ASL_STORELOCATOR gesture_handling="cooperative" zoomcontrol="false" zoom="4"]

List of the Attributes for the Filters #

AttributeDescriptionExample
ddl_searchAdd a search field within the filter dropdown such as categories dropdown[ASL_STORELOCATOR ddl_search="1"]
image_filterShow category icons in the categories dropdown[ASL_STORELOCATOR image_filter="1"]
default-addrThis will load the store locator by performing a search via query parameter.[ASL_STORELOCATOR default-addr="New York"]
search_name_limitTo change the number of items to appear in the database search[ASL_STORELOCATOR search_name_limit="5"]
search_2Enables a secondary search on custom fields in addition to the main search.[ASL_STORELOCATOR search_2="title"] or [ASL_STORELOCATOR search_2="city,state"]
search_2_containEnables partial matching (contain logic) in the secondary search fields.[ASL_STORELOCATOR search_2_contain="1"]
search_titleAdd the titles in the database address search[ASL_STORELOCATOR search_title="1"]
db_search_exclude_citiesExcludes cities from database address search.[ASL_STORELOCATOR db_search_exclude_cities="1"]
db_search_exclude_statesExcludes states from database address search.[ASL_STORELOCATOR db_search_exclude_states="1"]
db_search_exclude_postalExcludes postal codes from database address search.[ASL_STORELOCATOR db_search_exclude_postal="1"]
additional_searchAssociate more than one postal code to the store with database search[ASL_STORELOCATOR additional_search="1"]
distance_sliderEnable or disable the distance control in the store locator[ASL_STORELOCATOR distance_slider="1"]
show_categoriesShows or hides the categories dropdown filter.[ASL_STORELOCATOR show_categories="0"]
time_switchEnables a control to filter stores based on open hours (time filter).[ASL_STORELOCATOR time_switch="1"]
advance_filterEnables or disables advanced filtering options for the store locator.[ASL_STORELOCATOR advance_filter="1"]
user_centerApply search based on the default coordinates[ASL_STORELOCATOR user_center="1"]
filter_addressEnable text-matching on the Google Place API search result[ASL_STORELOCATOR filter_address="1"]
and_filterApplies AND logic when filtering data instead of OR logic.[ASL_STORELOCATOR and_filter="1"]
filter_ddlAdds extra dropdown filters (e.g., brand, special categories).[ASL_STORELOCATOR filter_ddl="brand,special"]
store_radiusUses a custom field to assign different search radius values per store.[ASL_STORELOCATOR store_radius="1"]
address_ddlAdds dropdown filters for addresses like countries, states, and cities.[ASL_STORELOCATOR address_ddl="1"]
stores_limitLimits the number of stores displayed on the map/list.[ASL_STORELOCATOR stores_limit="25"]
single_cat_selectForces category selection to allow only a single category instead of multiple selections.[ASL_STORELOCATOR single_cat_select="1"]
country_restrictRestricts address search to a specific country using a 2-letter country code (ISO Alpha-2).[ASL_STORELOCATOR country_restrict="us"] (ISO Alpha-2 code)
search_typeSets the type of search used: 0 = Google address search (default), 1 = search by store names, 2 = database address search.[ASL_STORELOCATOR search_type="2"] (0 = Google, 1 = store name, 2 = DB address)
categoryRestricts the store locator to display stores from one or more specific categories by ID. Use comma to separate multiple categories.[ASL_STORELOCATOR category="2,5,8"] (comma-separated category IDs)
fixed_radiusSets a fixed search radius (in miles or kilometers). Only stores within this radius will appear on the map and list.[ASL_STORELOCATOR fixed_radius="25"] (distance in km or miles)
select_categoryPre-selects a default category by its ID when the store locator loads. Accepts a single category ID.[ASL_STORELOCATOR select_category="3"]
select_brandPre-selects a default brand or product by its ID, applying the respective filter when the store locator loads.[ASL_STORELOCATOR select_brand="4"]
select_specialFilters stores to show only those marked with a specific special attribute by its ID.[ASL_STORELOCATOR select_special="1"]
storesDisplays only specific stores by their IDs. Provide a comma-separated list of store IDs to limit results.[ASL_STORELOCATOR stores="12,15,19"] (comma-separated store IDs)
state_restrictRestricts the search to only states where stores exist, so if a city name appears in multiple states, only those states with stores will show results.[ASL_STORELOCATOR state_restrict="1"]
stateFilters stores by state using the state’s code or exact name[ASL_STORELOCATOR state="NY"]
cityFilters stores by city name[ASL_STORELOCATOR city="Denver"]
postal_codeFilters stores by postal (ZIP) code[ASL_STORELOCATOR postal_code="80204"]
countryFilters stores by country name (e.g., “Australia”)[ASL_STORELOCATOR country="Australia"]
titleFilters stores by their title (exact match) – available since v4.8.31[ASL_STORELOCATOR title="My Store Title"]

List of the Attributes for the Maps #

AttributesDescriptionExamples
advanced_markerEnables Google’s advanced marker features on the map.[ASL_STORELOCATOR advanced_marker="1"]
scroll_wheelEnables or disables zooming with the mouse scroll wheel on the Google Map.[ASL_STORELOCATOR scroll_wheel="default"] possible options (default, 0 , 1)
category_markerUses category-specific icons as map markers instead of default pins.[ASL_STORELOCATOR category_marker="1"]
radius_circleEnables or disables drawing a radius circle on the map.[ASL_STORELOCATOR radius_circle="0"]
marker_heightAdds vertical offset/extra space above the info box marker.[ASL_STORELOCATOR marker_height="40"]
category_boundAdjusts map bounds dynamically when a category is selected.[ASL_STORELOCATOR category_bound="1"]
marker_titleIt can be used to remove the marker label that appears on hover[ASL_STORELOCATOR marker_title="0"]
clusterEnables or disables marker clustering on the map to group nearby markers.[ASL_STORELOCATOR cluster="1"]
cluster_max_zoomTo limit the cluster appearance by the zoom level, the value must be within (5 to 22)[ASL_STORELOCATOR cluster_max_zoom="9"] (integer between 5 and 22)
cluster_grid_sizeThe size of the grid for the cluster, number can be reduced.[ASL_STORELOCATOR cluster_grid_size="90"] (positive integer; lower value = tighter clustering)
search_zoomSets the zoom level for map when displaying search results (integer between 9 and 21)[ASL_STORELOCATOR search_zoom="14"] (possible values: 9 to 21)
mobile_zoomSets the default zoom level on mobile devices (integer between 9 and 21).[ASL_STORELOCATOR mobile_zoom="12"] (possible values: 9 to 21)
mobile_search_zoomSets the zoom level for search results on mobile devices (integer between 9 and 21).[ASL_STORELOCATOR mobile_search_zoom="13"] (possible values: 9 to 21)
mobile_click_zoomSets the zoom level when a store is clicked on mobile devices (integer between 9 and 21).[ASL_STORELOCATOR mobile_click_zoom="15"] (possible values: 9 to 21)
do_bounceEnables or disables bounce animation for markers on interaction.[ASL_STORELOCATOR do_bounce="1"]
hover_centerCenters the map on the marker when the mouse hovers over it.[ASL_STORELOCATOR hover_center="1"]
zoom_liSets the zoom level when clicking a list item (integer between 9 and 21).[ASL_STORELOCATOR zoom_li="15"] (integer between 1 and 21)
direction_redirectRedirects direction links to Google Maps directions page instead of internal routing.[ASL_STORELOCATOR direction_redirect="1"]
coords_directionUses latitude/longitude coordinates for directions instead of address strings.[ASL_STORELOCATOR coords_direction="1"]
title_onlyDisplay only the store name or include the category name on marker hover.[ASL_STORELOCATOR title_only="1"]
mobile_load_boundLoads stores only within the current visible map area on mobile devices.[ASL_STORELOCATOR mobile_load_bound="1"]
mobile_stores_limitMaximum number of stores to show on mobile for performance.[ASL_STORELOCATOR mobile_stores_limit="20"]
map_typeDefines the map view type. Options: roadmap, satellite, hybrid, terrain.[ASL_STORELOCATOR map_type="roadmap"] (options: roadmap, satellite, hybrid, terrain)
zoomcontrolEnables or disables zoom control on the map.[ASL_STORELOCATOR zoomcontrol="true"] (values: “true” or “false”)
maptypecontrolToggles the visibility of map type selection buttons.[ASL_STORELOCATOR maptypecontrol="false"] (values: “true” or “false”)
scalecontrolDisplays a scale bar on the map.[ASL_STORELOCATOR scalecontrol="false"] (values: “true” or “false”)
rotatecontrolEnables rotation gestures on the map (e.g., compass).[ASL_STORELOCATOR rotatecontrol="false"] (values: “true” or “false”)
fullscreencontrolEnables fullscreen toggle button.[ASL_STORELOCATOR fullscreencontrol="true"] (values: “true” or “false”)
streetviewcontrolToggles access to Google Street View.[ASL_STORELOCATOR streetviewcontrol="false"] (values: “true” or “false”)
position_maptypeSets the position of map type controls. Positions: TOP_LEFT, TOP_RIGHT, etc.[ASL_STORELOCATOR position_maptype="1"] (integer — refer to Google Maps ControlPosition enum)
position_fullscreenSets the fullscreen button position on the map.[ASL_STORELOCATOR position_fullscreen="9"] (integer — e.g., 9 = RIGHT_CENTER)
position_zoomSets the zoom control position.[ASL_STORELOCATOR position_zoom="5"] (integer — e.g., 5 = LEFT_CENTER)
position_streetviewSets the Street View control position.[ASL_STORELOCATOR position_streetview="10"] (integer — e.g., 10 = BOTTOM_LEFT)
maxzoomMaximum allowed zoom level (e.g., 21 is fully zoomed in).[ASL_STORELOCATOR maxzoom="20"] (integer between 1 and 21)
minzoomMinimum allowed zoom level.[ASL_STORELOCATOR minzoom="5"] (integer between 1 and 21)
map_layoutSelects predefined layout template for the map and results.[ASL_STORELOCATOR map_layout="-1"] (possible values: -1 to 9)
kmlShow the loaded KML files to display custom overlays.[ASL_STORELOCATOR kml="1"]
direction_modeTravel mode for directions.[ASL_STORELOCATOR direction_mode="WALKING"] (options: DRIVING, WALKING, BICYCLING, TRANSIT, TWO_WHEELER)
default_latSets the default latitude coordinate for the map center. Must be a valid latitude value.[ASL_STORELOCATOR default_lat="40.7128"] (valid latitude)
default_lngSets the default longitude coordinate for the map center. Must be a valid longitude value.[ASL_STORELOCATOR default_lng="-74.0060"] (valid longitude)
api_keyAdds a Google Maps API Key directly in the shortcode. Not recommended; API key should be set in ASL Settings.[ASL_STORELOCATOR api_key="YOUR_API_KEY"] (not recommended; use ASL Settings)
reset_buttonEnables a reset button to restore the Google Map zoom and pan to the original default state set in ASL Settings.[ASL_STORELOCATOR reset_button="1"]
active_markerSpecifies the marker to be set as active (highlighted) when clicked. Leave empty to disable this feature.[ASL_STORELOCATOR active_marker="123"] (marker ID)
geo_markerEnables (1) or disables (0) the geo-marker icon shown on location search.[ASL_STORELOCATOR geo_marker="1"]
geo_marker_idSets a custom geo-marker icon by specifying the marker ID from the Manage Markers page.[ASL_STORELOCATOR geo_marker_id="7"] (marker ID from Manage Markers)
radius_colorSets the color of the radius circle using a hex color code.[ASL_STORELOCATOR radius_color="#00BFFF"] (hex color code, e.g., #FF0000, #00BFFF)

List of the Attributes for the Configuration #

AttributesDescriptionExamples
analyticsEnables analytics tracking for user interactions (e.g., searches, clicks).[ASL_STORELOCATOR analytics="1"]
enter_keyAllows users to trigger the search by pressing the Enter key.[ASL_STORELOCATOR enter_key="1"]
target_blankOpens store detail links in a new browser tab.[ASL_STORELOCATOR target_blank="1"]
slug_linkEither to show or hide the website link CTA[ASL_STORELOCATOR slug_link="0"]
link_typeDetermines whether the CTA button links to the store’s website or to its internal detail page using a slug.[ASL_STORELOCATOR link_type="1"] (0 = website, 1 = slug)
no_geocodeDisables address geocoding fallback when no store is found through text-based search.[ASL_STORELOCATOR no_geocode="1"]
no_regexTo fix the accordion layout, some languages that contains UTF-8 codes[ASL_STORELOCATOR no_regex="1"]
cacheEnables caching of store data to improve performance and reduce server load.[ASL_STORELOCATOR cache="1"]
cache_verDefines the cache version; updating the version forces cache refresh.[ASL_STORELOCATOR cache_ver="2"] (integer; change value to refresh cache)
load_allLoads all markers at once instead of loading only those within map bounds. Use 1 only for very large datasets (e.g., 5000+ markers).[ASL_STORELOCATOR load_all="1"]
gdprDisplays a GDPR compliance message before loading Google Maps.[ASL_STORELOCATOR gdpr="1"]
default_storeDisplays a default store by its ID when no search results are found due to filters. Replace xxx with the store ID.[ASL_STORELOCATOR default_store="123"] (store ID)
print_btnDisplays a print button for printing store details or directions.[ASL_STORELOCATOR print_btn="1"]

List of the Attributes for the Sorting #

AttributesDescriptionExamples
sort_by_boundSorts and prioritizes stores based on their visibility within the current map bounds.[ASL_STORELOCATOR sort_by_bound="1"]
sort_randomDisplays the store list in random order.[ASL_STORELOCATOR sort_random="1"]
sort_bySorts stores by a specific field (e.g., name, distance, city).[ASL_STORELOCATOR sort_by=""] (options: title, city, state, empty value for the distance)
search_dist_sortSorts the search results by distance after performing a search (overrides initial sorting). Use 1 to enable.[ASL_STORELOCATOR search_dist_sort="1"]
ignore_priority_with_distanceDisables priority-based sorting only when a search is performed.[ASL_STORELOCATOR ignore_priority_with_distance="1"]
cat_sortChanges the default alphabetical sorting of the categories dropdown to another attribute such as ordr (order ID).[ASL_STORELOCATOR cat_sort="ordr"]

List of the Attributes for the UI/UX #

AttributesDescriptionExamples
time_formatUses 24-hour format for store opening hours.[ASL_STORELOCATOR time_format="1"]
distance_unitSets the distance unit for search results: KM or Miles.[ASL_STORELOCATOR distance_unit="KM"] (options: KM, Miles)
info_x_offsetHorizontal offset for the info window in pixels.[ASL_STORELOCATOR info_x_offset="10"] (integer in pixels)
info_y_offsetVertical offset for the info window in pixels.[ASL_STORELOCATOR info_y_offset="-60"] (integer in pixels)
hide_logoHides the store logo in the results list or detail panel.[ASL_STORELOCATOR hide_logo="1"]
hide_hoursHides store opening hours from the list or details.[ASL_STORELOCATOR hide_hours="1"]
list_eventDefines the interaction event for list items (click, hover).[ASL_STORELOCATOR list_event="click"] (options: click, hover)
tabs_layoutDisplays the store list and filters in a tabbed interface.[ASL_STORELOCATOR tabs_layout="1"]
display_listToggles the visibility of the store list.[ASL_STORELOCATOR display_list="0"]
closed_labelShows a “Closed” label for currently closed stores.[ASL_STORELOCATOR closed_label="1"]
additional_infoDisplays extra store info (e.g., tags, notes) if available.[ASL_STORELOCATOR additional_info="1"]
templateSets the visual layout template[ASL_STORELOCATOR template="2"] (integer — template ID)
prompt_locationPrompts user to share their location on load[ASL_STORELOCATOR prompt_location="1"] (possible options 0,1,2,3)
disable_scrollDisables auto-scrolling to the map on mobile devices.[ASL_STORELOCATOR disable_scroll="1"]
disable_list_clickDisables interaction when a store list item is clicked.[ASL_STORELOCATOR disable_list_click="1"]
mouseoverEnables mouseover event for markers.[ASL_STORELOCATOR mouseover="1"]
mouseover_listDefines the interaction event for list items (click, hover).[ASL_STORELOCATOR mouseover_list="hover"] (options: click, hover)
full_widthEnables full-width layout, stretching the plugin to 100% width. Options: 0 (off), 1 (on).[ASL_STORELOCATOR full_width="1"] (0 = off, 1 = on)
infobox_widthSets the width of the infobox in pixels.[ASL_STORELOCATOR infobox_width="300"] (width in pixels)
ddl_max_heightSets the maximum height (in pixels) of the category dropdown control.[ASL_STORELOCATOR ddl_max_height="250"] (height in pixels)
layoutPossible options: 0, 1, 2, 3 – Layout 1 is accordion style, which displays stores in a Country > State > City hierarchy. Layout 3 is a category-based accordion.[ASL_STORELOCATOR layout="1"]
font_color_schemePossible options: 0, 1. Value 1 applies a dark font color scheme.[ASL_STORELOCATOR font_color_scheme="1"]
color_schemePossible options: 0 to 8. Changes the overall color theme of the locator.[ASL_STORELOCATOR color_scheme="1"]
infobox_layoutPossible options: 0, 1, 2 – Changes the Marker InfoWindow (infobox) layout style.[ASL_STORELOCATOR infobox_layout="0"]
zoom_btnShows or hides the zoom control button on the store detail panel.[ASL_STORELOCATOR zoom_btn="1"]
direction_btnEnables or disables the directions button in the store listing or detail view.[ASL_STORELOCATOR direction_btn="1"]
mdSets column widths for medium screens using Bootstrap grid. Format: list,map.[ASL_STORELOCATOR md="6,6"]
lgSets column widths for large screens using Bootstrap grid. Format: list,map.[ASL_STORELOCATOR lg="4,8"]