View Categories

Time Switch – Show Only Stores Open at the Current Time

The Time Switch feature allows visitors to quickly identify which stores are currently open based on their local time zone. When enabled, users can toggle between viewing all stores and viewing only the stores that are currently open.

This feature is especially useful for businesses with multiple locations operating across different time zones, helping customers find an available store without manually checking store hours.

Supported Templates #

Time Switch is supported in Templates 0, 1, 2, 4, and 5.

Enable Time Switch #

By default, the Time Switch feature is disabled.

You can enable it from:

  • ASL Settings
  • Shortcode Attribute

Shortcode Example #

[ASL_STORELOCATOR time_switch="1"]

Available Options #

ValueDescription
0Disable Time Switch
1Enable Time Switch

When enabled, a toggle switch appears on the store locator interface, allowing visitors to display only the stores that are currently open.

Display Only Open Stores on Initial Load #

Starting from Agile Store Locator version 5.2.6, a new shortcode attribute was introduced:

[ASL_STORELOCATOR show_opened="1"]

Available Options #

ValueDescription
0Display all stores (open and closed) on page load (default)
1Display only currently open stores on page load

Example #

[ASL_STORELOCATOR time_switch="1" show_opened="1"]

The above shortcode will:

  • Show only currently open stores when the page first loads
  • Enable the Time Switch toggle

Configure Store Opening Hours #

The Time Switch feature relies on each store’s configured opening hours. If opening hours are not configured, Agile Store Locator cannot determine whether a store is open or closed.

For detailed instructions on configuring store hours, please refer to the Open Hours documentation:

Open Hours Documentation:

The Open Hours system supports:

  • Today’s Hours
  • 7-Day Opening Hours
  • Group Hours for the Entire Week

Benefits of Using Time Switch #

  • Helps customers quickly find stores that are currently open
  • Improves user experience for multi-location businesses
  • Supports stores operating across different time zones
  • Reduces customer frustration from visiting closed locations
  • Integrates seamlessly with Agile Store Locator’s Open Hours system