Hi,
I need to add a pdf download button only visible to members.
If no login then i need a button call “Please login to download”.
Im using the following code to hide and show the relevant button. But i dont know how to redirect the users to login page. Please help.
$w.onReady(function () {
if (wixUsers.currentUser.loggedIn) {
$w('#button7').show();
}
else {
$w('#button7').hide();
}
if (wixUsers.currentUser.loggedIn) {
$w('#button13').hide();
}
else {
$w('#button13').show();
}
});
Cant find the login lightbox to link. it only links to sign up page every time