I would like to access the WIX “custom login” window via a code.
Normally, to access a page, you access it via “Wixlocation.to()”.
How to open a window by code? (
I tried “Wix Frontend” but without result.
Thanks to all
Here is the code I use:
What have you already tried:
$w(‘#MonCompte’).onClick((event) => {
if (wixUsers.currentUser.loggedIn) {
wixLocation.to('/moncompte')
}else{
???????????? (Go to "Wix connexion")
}
Thank you for this quick and efficient feedback. Everything is OK and works perfectly. I also took the opportunity to update my various codes concerning the deprecated wix-users & wix-location APIs, and updated them to wix-members-frontend & wix-location-frontend as you asked me to do. Thanks a lot …