latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: dehaas koenraad

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
trial membership and auto upgrade after time

By:  dehaas koenraad in: Community Forum

voices: 3
replies: 7

4 years, 5 months ago  Raam Dev

Recurring payment not paid by customer

By:  dehaas koenraad in: Community Forum

voices: 2
replies: 3

4 years, 5 months ago  Raam Dev

Viewing 2 topics - 1 through 2 (of 2 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
trial membership and auto upgrade after time

By:  dehaas koenraad in: Community Forum

voices: 3
replies: 7

4 years, 5 months ago  Raam Dev

Recurring payment not paid by customer

By:  dehaas koenraad in: Community Forum

voices: 2
replies: 3

4 years, 5 months ago  Raam Dev

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Wednesday Jul 18th, 2012 at 6:17 am #19605

Great thats just what I needed,
I have put this code on the Login Welcome Page so when the user logs in after 7 days and still is s2member_level1 he gets automatically upgraded to s2member_level4.
(Offcourse I could also check if he has paid at that time but I suppose this is handled by paypal/s2member)

This is the code i use:

<?php if (current_user_is("s2member_level1") && S2MEMBER_CURRENT_USER_REGISTRATION_DAYS < 7){ ?>
You are in trial period
<!--This will show if the current user is a level 1 member AND they have been registered less than 7 days
The user is in trial period: the first 7 days are free, after that a recurring anual x dollar-->
<?php } else if (current_user_is("s2member_level1") && S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 7){ 
$u = wp_get_current_user();
// Remove role
$u->remove_role( 's2member_level1' );
// Add role
$u->add_role( 's2member_level4' );
?>	 
					
You have been upgraded to Platinum Member!!!!
					
<!--This will show if the current user is a level 1 member AND they have been registered 7 or more days
The user has passed trial period; paid x dollar recurring anually, and gets automatically upgraded to level 4-->

<?php } else { ?>
		Some public content.
<?php } ?>

I appriciate your help!

Posted: Tuesday Jul 17th, 2012 at 10:04 am #19516

Thanks for the help I think this is the way foreward.
However in this way the customer still is not automatically billed after 7 days (he has to click the Subscriber Modification button). I want him to be billed automatically after 7 days, this is what I did now:

– Configure Level 1 to allow 3 Downloads every 7 days. (he gets first 7 days for free, after he is billed 50 dollar)
– Configure Level 2 to allow 999999999 Downloads every 365 days (unlimited downloads) (Normally costs 50 dollar)

<?php if (current_user_is("s2member_level1") && S2MEMBER_CURRENT_USER_REGISTRATION_DAYS < 7){ ?>
You are in trial period
<!--This will show if the current user is a member level 1 AND they have been registered for less than 7 days, he is in the trial period and did not pay yet, and has 3 downloads for 7 days.-->

<?php } else if (current_user_is("s2member_level1") && S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 7 { ?>
<!--This will show if the current user is a member level 1 AND they have been registered for more than 7 days, he has passed the trial period did pay 50 dollar but still has 3 downloads for 7 days. Now he gets a Subscriber Modification button to upgrade to level 2 which also costs 50 dollar (No extra costs only change in membership level)-->

Your trial period is over and you can upgrade for free to a Unlimited membership by clicking the button below
(BUTTON)				

<?php } else { ?>
Some public content.
<?php } ?>

This works, however you can understand it is not a realy fancy solution as the customer is directed to Paypal to change subscription/payment details although he already paid; this is confusing.

My question: Is it possible to create a button that only changes the s2membership (from level 1 to level 2) without being redirected to Paypal and having to change payment details?

THANKS for your help!!

Posted: Friday Jul 13th, 2012 at 12:18 pm #19176

Hmmmm, like this the user is not going to pay automatically after 7 days which it should,
would this be an option to workaround:?

“A customer would have the ability to try the membership for 7 days, he will not be charged for the first 7 days and can download 3 downloads in total. If he wants to continue he is charged x amount automatically after 7 days and gets unlimited downloads for a year (recurring))”

-Offer a Membership with 3 downloads / 7 days
-Paypal button: Offer first 7 days for free and than charge 50 dollars / year

-After 7 days automatically show a button (using S2MEMBER_CURRENT_USER_REGISTRATION_DAYS for example)
to CHANGE the 3 downloads / 7 days INTO unlimited downloads?

Is it posible to change a users “downloads / days” like this? (for example through custom capabilities?)

Thanks for your help, i appreciate it!

Posted: Thursday Jul 12th, 2012 at 9:29 am #19036

Ok clear, thanks for your time!

Viewing 4 replies - 1 through 4 (of 4 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.