Members profile form should have more (possibly unlimited) field adding/option.
Only because of this so many designers are having to create custom membership area.
Then we run into the issue of the native wix members app (database) and the custom created database being two separate entities.
Custom membership codes have too many issues.
In addition and most importantly, the Sign in and sign up process needs to give us the ability to direct people to where we need them to.
Simple updates on these matter would solve a great deal of waste of time and frustration.
Please explain your issues.
All of this is possible with basic code. e.g. login redirects, etc
Thanks for getting back.
(A posting I just came across says the new custom membership sign up form enables adding more custom fields - which may solve my entire problem by switching to the native wix members app)
Regardless of the above;
Particular site I am working on is : www.wssmda.com
Trying to get new members to create profile and pay for membership and sign up/in.
This is the flow for a new membership process:
Create New Profile => Pay for membership => Sign up email/password.
Because the native wix membership profile offers **limited fields I created a custom Members database and a custom sign up process.
-
The custom sign up buttons (My Profile, Image, Login) do not work properly in different areas.
My Profile and Image buttons are hidden when no one is logged in but they need to show their default state. -
When the new member creates a new profile and pays for membership (through and ascend form so I can control their landing page - the native membership plan directs people to home page which results people not finalizing the profile Sign Up step.
-
I was able to create the flow and take the user to a custom sign up page but when the new member
signs up with email/password they are back on the New Profile creation page instead of home or My Profile page - where they get to update profile info. In addition the custom login button stays as “Log in” while “My profile” and “Image” buttons show the new member’s image and name.
I made the membership 0.10 so we can test the process on the live site without having to worry. The membership sign up process is blocked and hidden while I am working on the site since the site has to stay public. The access to the new member registration page on the live site is hidden through the word “dentistry” on the home page for testing purposes.
Here is my home page code for login in
import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
$w.onReady(() => {
if (wixUsers.currentUser.loggedIn) {
$w(“#login”).label = “Logout”;
$w(“#profileButton”).show();
$w(“#image”).show();
}
else {
$w(“#login”).label = “Login”;
$w(“#profileButton”).show();
$w(“#image”).show();
}
} );
export function loginButton_click(event,$w) {
// user is logged in
if (wixUsers.currentUser.loggedIn) {
// log the user out
wixLocation.to(/
);
wixUsers.logout()
.then( () => {
// update buttons accordingly
$w(“#login”).label = “Login”;
} );
}
// user is logged out
else {
let userId;
let userEmail;
// prompt the user to log in
wixUsers.promptLogin( {“mode”: “login”} )
.then( (user) => {
userId = user.id;
return user.getEmail();
} )
.then( (email) => {
// check if there is an item for the user in the collection
userEmail = email;
return wixData.query(“Members”)
.eq(“_id”, userId)
.find();
} )
.then( (results) => {
// if an item for the user is not found
if (results.items.length === 0) {
// create an item
const toInsert = {
“_id”: userId,
“email”: userEmail
};
// add the item to the collection
wixData.insert(“Members”, toInsert)
. catch ( (err) => {
console.log(err);
} );
}
// update buttons accordingly
$w(“#login”).label = “Logout”;
$w(“#profileButton”).show();
$w(“#image”).show();
wixLocation.to(/Member-Profile/page
);
} )
. catch ( (err) => {
console.log(err);
} );
}
}
import wixWindow from ‘wix-window’;
$w.onReady( () => {
if (wixWindow.rendering.renderCycle === 2) {
if (wixUsers.currentUser.loggedIn) {
$w(“#login”).label = “Logout”;
$w(“#profileButton”).show();
$w(“#image”).show();
}
else {
$w(“#login”).label = “Login”;
$w(“#profileButton”).show();
$w(“#image”).show();
$w(‘#dataset2’).refresh();
}
}
});
I saw your reply in my email but I get the “Looks like the page you are looking for can not be found” message.
@info52 Sorry about that. I have a site that almost exactly matches your criteria, but I found a major bug so I had to remove the link to it.
Should be able to share it soon