Is it possible to limit Members that are displayed in the Member Directory to paying Members only?

Question:
We would like to limit profiles that are visible in the Member Directory to only members with active Pricing Plan. Is this possible?

Product:
Wix Studio and Wix Editor along with Wix Member Directory.

What are you trying to achieve:
The idea is that only paying members can have a profile that available in the Member Directory, and only paying members can see the Member Directory - essentially making the entire Directory only accessible and useable by paying Members.

What have you already tried:
I’ve looked through all of the available settings that I can think of.

2 Likes

No, it is not possible with the native settings.

You will need to create a database to store the paying Members and then connect it to a repeater to build your own list.

you would need to build this and code it. so it is possible.
In the backend of your site you can add a function that verifies if a user has an active plan. This function will filter out members who do not have an active subscription.
In the Page Code of the custom Member Directory you can check if the current member has an active plan. If they don’t, they’ll be redirected to a page encouraging sign-up.

You would not need to add code on the Member List page. All you have to do is use the page settings to mark it for paid members only. The native paid plans prompts do the rest.

1 Like

I think I’m starting to understand what needs to be done.

What I’m unclear about is this.

We want every Member that joins the site to have a profile - which would mean every Member has an entry in the CMS data set that would need to be created.

How do we limit the CMS dataset entries to only show the entries that are associated with a Member with an active Pricing Plan? And remove them from being displayed when their Pricing Plan expires or they’re removed from the website entirely?

You would add a filter to display profiles that are mark paid or not. You don’t necessarily need to delete.

But for the other —— if you are going to be limiting their profile to 1 entry:

You create a form to create profile.
Then another form to edit profile.

If it is on the same page, you would connect each form to its individual dataset connector. One dataset connector will be set to “write only” and the other to “read and write” with a filter set to “owner is logged in”.

Then you could add a tiny bit of code to the page to count how many items are located in the “read and write” dataset connector. If there are zero results, show form #1, or else show form #2.

https://dev.wix.com/docs/velo/api-reference/wix-dataset/dataset/get-total-count