Hi @leinad4mind,
Thank you for using Paid Memberships Pro.
You will be able to do a couple of checks for the levels page using PHP code.
For clarification would you like to show only level 1 if the user doesn’t have a current membership or is logged out?
If the user is logged in and has a membership only show the membership level 2?
Could you please explain in more details, when you say –
he will see a diferent checkout option
Do you mean the user will only see the scenario mentioned above or would you like the actual checkout page (when signing up and filling out details) to be different per level?
“For clarification would you like to show only level 1 if the user doesn’t have a current membership or is logged out?”
Exactly.
“If the user is logged in and has a membership only show the membership level 2?”
Yes, it will work for me. I’ll only have 2 Levels, ID 1 and 2, and for both I want to show the membership level 2.
Level 1 = 1st subscription, one time only.
Level 2 = all renew subscriptions, and forever.
“would you like the actual checkout page (when signing up and filling out details) to be different per level?”
In fact my signup is made on phpBB, and I’m using bridgeDD to make the integration, so I will only be able to buy a level when logged in. But I would like to submit new custom fields with require fields before payment, but thats another question and the last thing to me to solve. Dont know if I’ll use a form plugin so the user can fill that out.
I’ve this: http://i.imgur.com/kb6e3mZ.png
And I want to have this for users without memberships (or logged out): http://i.imgur.com/8GHPusv.png
And this for users with memberships: http://i.imgur.com/hlTj0bI.png
-
This reply was modified 9 years, 4 months ago by
Leinad4Mind.
-
This reply was modified 9 years, 4 months ago by
Leinad4Mind.
I just only need to know the solution for this to have my system working.
I would be very happy if you guys can tell me the solution or which file to edit or which function to edit.
Thanks in advance!
-
This reply was modified 9 years, 3 months ago by
Leinad4Mind.
Thanks for the feedback @leinad4mind, my apologies for the delay as there has been an influx of support threads over the past few days.
Thank you for the screenshots, I understand this now.
So here are a couple of steps you will need to do in order to achieve the outcome.
1. Create a function that hooks into the pmpro_levels_array filter and you will need to check if the user currently has a level using the pmpro_hasMembershipLevel() method. Here is a link to the filter documentation -> https://www.paidmembershipspro.com/hook/pmpro_levels_array/
This will show only level 2 if the current user has a membership level of 1, if they don’t have any membership, show both levels.
2. You will need to stop users from downgrading by accessing the checkout page directly. Here is a gist to help users stop downgrading -> https://gist.github.com/strangerstudios/8620962
You will need to adjust the above code to match your membership level ID’s.
I hope this helps. 🙂
If you require any further assistance please feel free to post this on our member forums on http://www.paidmembershipspro.com
Thank you so much for this info!
I’ve been able to do it 🙂 working perfectly.
You’re most welcome – glad to hear it’s working. 🙂
If you have 2 minutes to spare and you found this support useful, please consider posting an honest review at http://ww.wp.xz.cn/support/view/plugin-reviews/paid-memberships-pro