Hello!
I’m making an APP for Events and I’d like to force the site to use the city selected by the user. There is a combo in all pages so the user can change the city anytime.
User has a field in User database with his prefered city (selected last in the combo), so i can always serve his preference;
I want to have a parameter “city” in the URL to help the navigation.
I made 3 rules
- When the combo city changes the value, changes the user preference and updates the url changing the parameter to selected city;
- When the city parameter doesnt match the selected parameter from the combo, update the combo and user preferencia, for the selected parameter (in case people manually change);
- When the parameter in URL doesnt match any of the availables city in options set, (or parameter doesnt exist), refresh the page to use user preference for the city;
(Something like that)
Any suggestions?
Thank you!