Hey there,
I have been trying to connect a multi-state box with a dropdown menu so visitors are able to select their region to shop. I have no coding experience and tried a few code examples I found here on the forum, and not have been successfull.
Would anyone be able to provide me a step by step guide for the following?
So essentially, on the first page that shows up, people should get prompted to choose their region before they are able to see the content of the website. This would ideally be single buttons for each region.
When on the actual website though, I would like to have a dropdown menu in the top left corner to give visitors the chance to change between regions while browsing on the website.
Is that something that is doable for a beginner or should I hire a professional ?
Thank you so much for your help in advance. I look forward hearing from you!
- First question would be → how did you setup your database?
A database and it’S structure is the most important thing on your website, since everything what will later happen on your website, will be running through your database.
So in your case, you maybe would have already 2-DATABASES …
a) one for all your REGIONS only
b) a second one which will hold all the other data.
people should get prompted to choose their region before they are able to see the content of the website
- Depending on how many regions you will have later as choice for your USERS/MEMBERS, it would’t make sense to add single buttons onto your page, to handle all the regions.
A better aproach would be for example a DROPDOWN-LIST, which would show all the possible selection, in a Dropdown (loaded directly from one of the already mentioned databases).
people should get prompted to choose their region before they are able to see the content of the website
- Before you can differ between a logged in MEMBER or just a ordinary user/VISITOR, you first would have to add → Wix-Members-App (Registration-Login-System).
Once you have installed Wix-Members, you will get the possibility to differ between logged-in-members and not-logged-in ones.
So at this point you would have to generate a code-function, which would recognize if a user is already a logged-in-member or not.
If user is loged-in —> continue…
If not logged-in —> prompt a message …
- You would have to place your “region-dropdown-menu” in the HEAD-SECTION of your site (on MASTERPAGE) —> this will give the user the possibility to make the region choice on every page of your website.
- Is that something that is doable for a beginner or should I hire a professional ?
Surely this is also doable for a beginner, if you want to invest about a 1-year of learning code-techniques first and also studiying the VELO-API-DOCs.
If you want to finish your website withing 1-3-weeks instead, then it would be better to HIRE A PRO-DEVELOPER.
- Oh, and there was still the MSB (Multi-State-Box).
How to work with MSBs ???
https://www.wix.com/velo/reference/$w/multistatebox