-
Author
-
October 24, 2013 at 23:46 #5071kiko46Participant
Hi,
Let’s say I want to charge only men but not women using paidmembershipPRO – possible?
Using default setup of paidmembershipPRO and theme settings the same memberships are applied to all users, but we want user type X to be free and for user Y to pay. Thanks for the great support.October 25, 2013 at 00:10 #5077JohnDoeParticipantLooks like a bad idea, since alot of fake female accounts will be made.
October 25, 2013 at 18:46 #5124kiko46ParticipantIt is actually something I think lots of users would benefit from. It doesn’t apply to only dating sites.
I have seen this question elsewhere but I can’t find it anymore and don’t remember the answer.Just to be clear:
when the user signs up their membership would be different if they are user X or user Y. User X would have a free membership or different pricing, and User Y would have a paid account or different choices from user X.Thanks!
October 25, 2013 at 18:57 #5126kiko46ParticipantHi, I found this answer you gave from a previous question and it can work for me ONLY if it can be applied specifically to User X (only women). Upon registration User X gets a free account but not User Y – possible?:
—————
Hi,
This is the function you need to add in order to assign a specific membership level to a newly registered user. Add it into your sweetdate-child/functions.phpadd_action(‘user_register’, ‘kleo_pmpro_default_level’);
function kleo_pmpro_default_level($user_id) {
pmpro_changeMembershipLevel(1,$user_id);
}This one assigns level with ID 1
———————October 25, 2013 at 19:04 #5127JohnDoeParticipantpmpro is from paid memebrships pro , nothing to do with user x or user y
October 25, 2013 at 19:08 #5128kiko46Participanti know that – that’s my question – how to integrate pmp based on user x & user y.
Unless you have an answer please stop replying, I don’t need your opinion if it’s a good idea or not. thanks.October 26, 2013 at 02:54 #5148SQadminKeymasterHi,
JohnDoe was just trying to help.That code will work but you need to adjust it to check the if the user registered is a female and then add it to your level for females only.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 29, 2013 at 21:09 #5360kiko46ParticipantHi – Thanks – I’ve been trying to add it but just confused where to add the user type (female, male) in the code so that when females register they get the free plan to choose, but when males register they get the monthly charge plan.
add_action(‘user_register’, ‘kleo_pmpro_default_level’);
function kleo_pmpro_default_level($user_id) {
pmpro_changeMembershipLevel(1,$user_id);
}Thanks again!
October 30, 2013 at 18:34 #5413SQadminKeymasterSee here my answer:
https://archived.seventhqueen.com/forums/topic/membership-auto-in-registration#reply-5411Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.