Fluent Commerce Logo
Docs

Configure Location Switching and Default Location in Fluent Store

How-to Guide

Author:

Fluent Commerce

Changed on:

26 Feb 2026

Key Points

  • Location switching requires both manifest configuration and user context assignment.
  • The switcher is visible only to users with multiple assigned location contexts.
  • Devices can automatically open Fluent Store in a predefined location using a URL parameter.
  • URL-based configuration does not override role-based access permissions.
No alt text provided

Steps

Step arrow right iconEnable Location Switcher in the Manifest

The location switcher is controlled through the `fc.mystique.manifest.store` setting.Navigate to:Fluent OMS → Settings → `fc.mystique.manifest.store`Ensure the manifest includes a `context` section similar to the following:

Step arrow right iconAssign Location Contexts to User Roles

The switcher appears only if the user has access to multiple locations.You need to assign location contexts to the user role.
Verify Existing User Contexts
Use GraphQL to confirm the user has multiple location contexts assigned.
Add Location Context to a User
If required, update the user role configuration.

Step arrow right iconConfigure a Predefined Location Using URL Parameter

If each physical store uses dedicated devices, Fluent Store can automatically open in a predefined location when the application loads.To ensure a device always opens Fluent Store in the correct location, you can append the `user.location.ref` parameter to the application URL. This allows location-specific devices to be configured with a predefined default context.The parameter format is:`user.location.ref=<LOCATION_REF>`For example:`https://<store-app-url>?user.location.ref=5000299_SYD`When `user.location.ref` is provided:
  • The specified location is automatically applied when the application loads.
  • No manual interaction is required.
  • The predefined location is applied independently of the logged-in user.
  • Standard permission checks are still enforced.
Understand Context Resolution
When Fluent Store loads, the active location is determined in the following order:
  • `user.location.ref` provided in the URL
  • Previously selected location (from the user's previous session)
  • First accessible location from the user’s assigned location list
If no URL parameter is provided, the system applies the previously selected location, or the first assigned location if no prior selection exists.
Access Restriction and Fallback Behavior
If a user does not have permission to access the location specified via `user.location.ref`:
  • The system automatically switches the user to an authorized location.
The fallback location follows the standard context resolution logic described above.
Fluent Commerce

Fluent Commerce