Sign-up and Log-in for two different sets of users

Hi all!

I have 2 different types of users (buyers and sellers) and I want to have 2 different types of sign ups for them (“Sign up as buyer” or “Sign up as seller”). Users should directly be assigned the respective member role when signing up. Is this possible with WIX?
If not: Which website builder allows to do this?

Thanks a lot!

The question ist if you use your own created role-system, or the wix integrated one?

If you wanna create your own role-system, so i’m sure it is possible.
And also if you take the role-system of wix, i think it would be possible.

How i would solve this problem:

  1. I have 3 types of users:
    a) ADMIN (role-one)
    b) BUYER (role-two)
    c) SELLER (role-3)

  2. I create a Database where i collect all informations about the users and t heir roles and what ever.

My-Database:
USER | User-Role | User-ID | User-Email | and so on…


input | input | input | input |

  1. Then when a User logs in you ask for his DATA .
  2. Is that User already in my Database?

If yes, …

  1. Who is that logging in - User?
  2. What is the role of this User?
  3. What is his ID?
  4. What is his User-eMail?

else…
5) Why he is still not in my Database? Put him into my Database!

Thank you! I’ll give it a try…

Hello Julian,

did you find a solution for your problem?

You can read this previous post about the same thing and look at using Wix Router or simply using contact labels as an array in your code in Wix CRM or Wix Users and using them instead.
https://www.wix.com/corvid/forum/community-discussion/set-member-role-using-wix-code
https://www.wix.com/corvid/reference/wix-router.html
https://www.wix.com/corvid/reference/wix-crm.html#ContactInfo
https://www.wix.com/corvid/reference/wix-users-backend.html#UserInfo

You have to manually give the signed up member a specific role other than Admin, Member or Visitor. your best option here is to have your sign up set as manually approved, so that you can set the member role straight after you approve the new user.
https://support.wix.com/en/article/creating-member-roles-6943237
https://support.wix.com/en/article/managing-your-member-roles
https://support.wix.com/en/article/limiting-pages-on-your-site-to-specific-members-member-roles

Otherwise, you would have to set up a simple automation to send you a message or email etc reminding you to change the member role when the user signs up to your website.

When the site member logs in, you can simply check the current users role and direct them to the appropriate pages for that specific role.
https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users.User.html#getRoles

Also, note that getRoles uses a synchronous code and you can read more about here in this promises page.
https://support.wix.com/en/article/corvid-working-with-promises

Along with previous forum posts here.
https://www.wix.com/corvid/forum/community-discussion/getroles-function-is-not-working/p-1/dl-5e148145dd7d620017498340
https://www.wix.com/corvid/forum/community-discussion/bug-wix-users-role-vs-getroles
https://www.wix.com/corvid/forum/community-discussion/get-the-information-of-user-roles
https://www.wix.com/corvid/forum/community-discussion/checking-the-member-plan-status-then-show-or-hide-button
https://www.wix.com/corvid/forum/community-discussion/use-role-not-accessible-on-code
https://www.wix.com/corvid/forum/community-discussion/user-roles
https://www.wix.com/corvid/forum/community-discussion/urgent-send-a-user-to-location-based-on-member-role