Hey Guys, is there any way to create access to the Membership Sign up via a direct link?
Hi citisonship,
Not directly. What you can do is check using our APIs if a user is logged in, and if not, prompt the signin dialog. You can set this code on any page or on a specific page you link too.
The code will look like
import wixUsers from 'wix-users';
$w.onReady(() => {
if (!wixUsers.currentUser.loggedIn)
wixUsers.promptLogin();
});
See the wix-users API reference
Thanks Yoav! You’re always so helpful! Let me explain what I am trying to do and see if there is a solution.
I am creating a subscription site that will have a form and paypal payment button to subscribe. Once they make payment it will redirect them to a member only page where they will sign up and gain access. The member sign up needs to be auto approved so that they gain access immediately. The problem is anyone could then sign up and gain access without paying. Hope this makes sense and maybe I am overlooking something but any ideas or help is appreciated:)
Hay Citisonship,
One way to do what you intend is to use a url parameter that you auto generate and include in the payment callback url. On the destination page, if this parameter is missing or invalid you just redirect to another page. If it is valid, you show the signup form as described above.