Hide/ Show Contact Info On Page (Subscribers & Non-Subscribers)

Greetings. I am working on a service provider website that allows anyone available to work to submit their data through an input form which is collected to a content manager and displayed on 2 separate pages. First page has minimal info submitted by user. Second page is displayed when any site visitor clicks on “See More” button they are taken to the second page which displays in detail data the user submitted.

During the registration process, users are prompted to give permission for employers to access their contact info for direct contact.

I would like to hide the contact info (email address & phone number) from publicly being displayed on the second page, and limit access to the email and phone number to subscribers only. The idea is that when a site visitor clicks on the Contact Me button located on the second page, either the email address and phone number displays if they are a paying member or the user is prompted pay for access through the plan page. The email and phone number will display just above the Contact Me button (where it is currently hidden).

I’ve gotten as far as being able to Hide the email and phone number through Dev Mode. But am uncertain how to display them only to members that have subscribed and have active subscription plans. I currently have two plans available. One plan expires after 1 week and the second plan auto renews monthly.

I have basically zero knowledge of coding, only from what I’ve seen and tried from videos I found online. So I would truly appreciate if anyone can help me with easy to follow steps to accomplish this task.

Thank you.

Normaly what you are asking for is a → CODING JOB <— and not a help anymore.

Well normaly i do not like to work for free (who else likes) ?

But as stupid as i am…

he idea is that when a site visitor clicks on the Contact Me button located on the second page, either the email address and phone number displays if they are a paying member or the user is prompted pay for access through the plan page. The email and phone number will display just above the Contact Me button (where it is currently hidden).

All you want is to show some further specific (additional-data), if a certain condition is —> TRUE, and hide something, if a condition is → false.

To let’s first generate a PROTOTYPE-CODE-EXAMPLE…

if (...) {...}
else {...}
if (member.paidPlans === ok) {
    "Access to show additional information is granted!"}
else {
    "Sorry, but you are not a paying member, access to secret informations denied!"}

So we have our first imagination of code.
What next?

We need to determine the current user, and we also need to know if the current user is laready a paying member having some paid-plans.

So let’s jump into the Wix-API-Docs and find what we need…

Start your CODING-LEARNING-ADVENTURE here…
https://www.wix.com/velo/reference/wix-paid-plans-backend

Yes, of course this is not the whole CODE. You will need to expand, modify and complete this code a lot.