I have a members’ area on my website. For a particular purpose, I fetch member data using wix-members
on one of the pages of my website. I fetch the Name of the member and a custom field that I created which is called aboutMember. That function is working absolutely fine but there is an issue with member’s area now. I found out that the member’s profile already has something called “About” which I would like to use instead of my own custom field.
Now I have 2 choices:
- I need to somehow find a way to either display MY custom field data instead of About (the one pre-provided by wix). This way, I wont need to worry a lot and change code on the other web page used to fetch data.
- I need to somehow be able to fetch the About data (one on the left) on my other web page. I have no clue if that would be possible because I don’t know how wix stores that data as it was not available in the contacts info section of site settings. How the website accesses it is a complete mystery to me, so if anyone can help me with any of the above options, I would be very very delighted.
PS: The code on the other web page if you are wondering how I fetch the data:
currentMember.getMember()
.then((member) => {
console.log("in member");
var fullName = `${member.contactDetails.firstName} ${member.contactDetails.lastName.slice(0,1)}`;
var about = member.contactDetails.customFields['custom.about'];
var abb = about.value;