Custom My Account Area in Wix
Velo Code Solution
Developing a new area for my account with a custom registration process completely independent of Wix account with a custom form, custom sign in, custom pages, custom email notifications build above wix member database with encrypted passwords.
Setting up a Custom My Account on Wix
Login window can be placed on page, on lightbox and virtually anywhere on site.
It is possible to log every customer sign in into log dataset and set desired action on it if needed.
It is possible to show customer new products added since their last login with system comparing the time product has been added with time this customer last log in.
Custom email notifications.
Option to add 2FA/MFA with text message on every sign in.
Option to set timer to log user out.
If you want to add a my account area on Wix, please contact us.
Tools
Wix Velo API
Example Code
import { getCurrentMember } from 'backend/permissions';
import { getUser, getStud, getTeach } from 'backend/Users'
$w.onReady(function () {
init()
});
async function init() {
const member = await getCurrentMember()
let curUser = await getUser(member._id)
let curProp, fullName
if (curUser.role == "Student") {
let curStud = await getStud(member._id)
try {
fullName = curStud.fullName.split(" ")
} catch {
fullName = []
}
$w("#input1").value = fullName[0] || ""
$w("#input2").value = fullName[1] || ""
$w("#input3").value = curStud.title || ""
$w("#input4").value = curStud.phone || ""
$w("#input5").value = curStud.address || ""
curProp = curStud
} else if (curUser.role == "Teacher") {
let curTeach = await getTeach(member._id)
try {
fullName = curTeach.fullName.split(" ")
} catch {
fullName = []
}
$w("#input1").value = fullName[0] || ""
$w("#input2").value = fullName[1] || ""
$w("#input3").value = curTeach.title || ""
$w("#input4").value = curTeach.phone || ""
$w("#input5").value = curTeach.address || ""
curProp = curTeach
} else {
try {
fullName = curUser.fullName.split(" ")
} catch {
fullName = []
}
$w("#input1").value = fullName[0] || ""
$w("#input2").value = fullName[1] || ""
$w("#input3").value = curUser.title || ""
$w("#input4").value = curUser.phone || ""
$w("#input5").value = curUser.address || ""
curProp = curUser
}
}
WhatsApp Integration in Wix
Discover how integrating WhatsApp into your Wix website elevates customer interaction and support. Enhance user experience with seamless communication channels
Dropshipping in Wix
Master the art of integrating dropshipping into your Wix website using Velo with our comprehensive guide. Learn step-by-step how to seamlessly connect your site with top dropshipping providers, automate order processing, manage real-time inventory, and enhance your online store's functionality for a successful e-commerce business