Statistics: Posted by AMEEKER — May 3rd, 2011, 2:40 pm
Statistics: Posted by Cristián Lávaque — April 26th, 2011, 12:38 pm
Statistics: Posted by AMEEKER — April 26th, 2011, 9:02 am
AMEEKER wrote:
Thanks - that will work. I will just put everyone in as free subscribers and then they can login and purchase the level of membership they would like for the upcoming yet.
Can you describe to me the renewal process, though?
Statistics: Posted by Jason Caldwell — April 20th, 2011, 11:26 pm
<?php
add_action ('ws_plugin__s2member_during_paypal_notify_during_before_subscr_signup_w_update_vars', 'during_before_subscr_signup_w_update_vars');
function during_before_subscr_signup_w_update_vars ($vars = array ())
{
$GLOBALS['existing_s2_eot_time'] = get_user_option ('s2member_auto_eot_time', $vars['user_id']);
}
add_action ('ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars', 'during_subscr_signup_w_update_vars');
function during_subscr_signup_w_update_vars ($vars = array ())
{
if (($eot_time = get_user_option ('s2member_auto_eot_time', $vars['user_id'])) && $GLOBALS['existing_s2_eot_time'])
update_user_option ($user_id, 's2member_auto_eot_time', $eot_time + ($GLOBALS['existing_s2_eot_time'] - time ()));
}
?>
Statistics: Posted by Cristián Lávaque — April 19th, 2011, 4:40 pm
Statistics: Posted by AMEEKER — April 19th, 2011, 2:13 pm
Statistics: Posted by Cristián Lávaque — April 19th, 2011, 12:38 am
Statistics: Posted by AMEEKER — April 18th, 2011, 8:53 am