Fluent Commerce Logo
Docs

Enable location switcher in Fluent Store

How-to Guide

Author:

Randy Chan

Changed on:

29 Apr 2024

Key Points

  • Location context switcher allows you to switch the location without having to log off and back in with the specific credentials. This is feasible as long as the user permissions are configured accordingly. 
  • The context switcher requires a few manifest modifications, which are detailed in the article below. 

Steps

Step-by-step guide

Step arrow right iconEnable switcher in fc.mystique.manifest.store manifest

Extend the `fc.mystique.manifest.store` manifest with the context section:No alt provided

Step arrow right iconAdd location context to the user role.

The new roles can be easily added to the user using the updateUser mutation.

Step arrow right iconResult

The context Switcher is visible to the user:No alt provided