Membership plugin - two portals on one site?
4 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 10, 2017 (RSS)
By zip222 - May 5, 2017
Is it possible to run two independent membership areas on one site using the membership plugin? I am looking to setup an area for vendors, and another area for customers. ideally, the logins wouldn't be mixed together in one table, but it would be workable if that wasn't possible.
By Toledoh - May 7, 2017
Hey Zip222.
I can't answer your question - but I'm interested to know why you want 2 databases. Could it be more efficient to have a single database with a "type" field being vender / customer? I've found that if I split them, I always end up having double the work at a later stage.
Tim (toledoh.com.au)
By Damon - May 10, 2017
Hi,
To keep things simple and easy to manage, I suggest going with both vendors and customers in the same member table, using Website Membership, with a Type dropdown field of Customer or Vendor as Tim suggested.
On the frontend, you can control who gets into which membership area but the type for that user. There are a number of ways to do this.
You can have separate login pages for both vendor and customers. When the user logins in, there would be code to check if they are the right user type of user, they not, they could be redirected to the correct user area.
Or you can have one user login and automatically redirected them to the member area based on their user type.
In the backend, when we are using Website Membership for more than one user type, we sometimes use the Show/Hide Dependant Fields add on to only show the fields for that user type:
http://www.interactivetools.com/add-ons/showhide-dependant-fields/
This works well if you have lots of fields, some shared, some just for customers and some just for vendors. You can use the Show/Hide Dependant Fields add on to only show the fields needed when creating/editing user details after you select their user Type.
Does this help? Let me know if you have questions about the steps or any requirements needed.
Thanks!
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/