How To: Programmatically Add a Wix "Member Role" on Custom LogIn/SignUp Page, Without Having to Do It Manually to Each Sign Up?

I have 2 different ‘types of members’ (event listers/‘vendors’ and event seekers/regular wix user members that will be browsing events for day life and night life) on my site and would like to programmatically insert the vendor member role into wix-user database without having to manually admin each time for every new vendor member through my Wix Account, on an individual basis.

FLOW PROCESS :

When a visitor clicks ‘sign up’, they are directed to a page where they have 2 buttons to select either a vendor business account sign up or a regular user account. The regular user button redirects to the standard Wix logIn/sign up and the other selection to be a vendor will redirect to a custom logIn page where the vendor member role can be programatically assigned once they have entered all their info and click ‘signup.’ I already have the custom login/sign up page for vendors and I have it functioning to add them to wix-user database. I only need the ‘add member role’ function at this point.

Vendors have access to whole different custom profile and ‘vendor business tools’ section where they can post their events on the site, track their data, etc. Since the standard Wix logIn/signUp page cannot be customized, this is what I had to resort to. I only need this last missing part of the process to be able to programmatically assign their member role without having to do it manually in my Wix Dashboard/account to each and every member.

My Custom Sign Up?

** This site will soon be scaled nationwide and it would be a maintenance NIGHTMARE and very costly to manually admin this one function/process.

Please help with this. I cannot complete and launch my site without this. Thanks Wix Code Team! :slight_smile:

  • Nelson
1 Like

I’m also interested in something like this

I also need this function!

Make that one more of us, what is going on with this???

I need this function too

Us too

Has this really not been figured out yet?

Any update on this?

This is an old post that keeps getting bumped and is being closed.

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