How to adjust Memberstack to show each interest and membership plan in separate divs on the user profile? Answered
I added a checkbox in the settings page that let users choose their interest but, i want it to be shown in the profile but for each field he selected it should be shown each one of them in a different div, currently both of them are shown in the same div but i don't want it to be shown like that, i want each value he selected to be displayed separately how I can go around this?
here is the link to sign in to the platform: https://www.skill.ma/sign-up - browse to the profile page, and the checkbox for the interest is in the settings page.
I attached how it looks like now, and how i want it to look like
& Also I found this script from the community forum of memberstack, to display the user membership plan
https://docs.memberstack.com/hc/en-us/community/posts/24415455732251-Displaying-the-members-current-Plan
but if the user is in multiple plans it show only one membership plan, i want each plan to be displayed on a separate div block I attached below how it looks like and how i want it to look lik,
in the picture I've written the text Empty.
Comments
3 comments
Hey ilyas el megarbi, I was testing this use-case out for you. And I have come with a custom code solution as a workaround for both the requirements.
1. To show the interests field in separate divs, you can make use of the following code:
Make sure to replace custom ID / element ID / element class in appropriate places where I have written in all caps in the code as 'REPLACE...'.
By adapting the code to target the elements that you have on the site, it should populate the interests in separate divs as you want.
2. To show the current member's plans in separate divs, you can make use of the following code:
Make sure to replace custom ID / element ID / element class in appropriate places where I have written in all caps in the code as 'REPLACE...'.
Once you do that, you can get results as shown in the screenshot. Hope this helps.
Thanks, A J for sharing. I've also added a little modification to your code in #2 just in case ilyas el megarbi wants to check for PriceIDs too.
A J Chukwudi Onyekwere thanks a lot for the help, it worked.
Please sign in to leave a comment.