Store switcher for conditional logic
-
Hello friends,
I’m in the process of creating a website for a pet boarding kennel. They have 2 location, each with different facilities and services (so not exactly different “stores”, but I thought this title would capture my vision best in fewest words).
The most obvious solution is to create a mega menu with separate parent pages for each location. However, I’m playing with the idea of displaying a “store” switcher in the header menu, that could add a variable to the urls, which I can then use to render sections conditionally for each location.
The upside of this would be that the user only has to choose the location once, instead of navigating through a large mega menu each time (users will most times only require information about one of either location). Ideally it would even remember their set location for a couple weeks or months. Of course, the switcher would need to “remember” the setting when the user navigates the website, and refresh if the other location is selected (in order to change the url).
Only two issues:
- I have no idea how to build something like this (is there a plugin? I couldn’t find one…)
- Is this even a good idea?
Implementing the conditional logic itself should be easy enough, as my theme, Avada, has this functionality built in.
I am curious about the thoughts of the community. Thanks in advance!
– Florence
- The topic ‘Store switcher for conditional logic’ is closed to new replies.