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: Scott Slone

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


Topics I'm Subscribed To


Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
use PayPal Api to prorate account

By:  Scott Slone in: Community Forum

voices: 2
replies: 2

3 years, 6 months ago  Bruce

Existing username and Pro Form

By:  Scott Slone in: Community Forum

voices: 3
replies: 6

4 years, 7 months ago  Cristián Lávaque

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

My Latest Replies (From Various Topics)

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Wednesday Jun 19th, 2013 at 2:27 am #52170

All-righty then.

Solved my issue and thought i would share in case anyone else is in the same boat. Please note that this is specific processing for PayPal Pro Payflow accounts.

This allows you to offer the remainder of the current subscription as a free trial when users are updating. I’m using it with a “modify=1” form, which will recharge a user immediately when they submit. This way the renewal will come at the end of their subscription.

Solved this by pulling the nextpayment date from the s2member_pro_payflow_rbp_for_user() array.

<?php
    $arr=(s2member_pro_payflow_rbp_for_user()); //grab the paypal pro payflow array for the current user
    $theDate = $arr['NEXTPAYMENT']; //grab the 'mmddyyy' fromt he array
    $newDate = preg_replace("/(\d{2})(\d{2})(\d{4})/", "$1/$2/$3","$theDate"); //regex and insert to create mm/dd/yyyy date
    $now = strtotime("now");
    $fixed_time = strtotime("$newDate");
    $days_until_fixed_time = round(($fixed_time - $now) / ($seconds_in_one_day = 86400));
    $days_until_fixed_time = max(0,$days_until_fixed_time); //if less than 0, set at 0
    //echo $fixed_time." - " . $now . " = " . $days_until_fixed_time; // unmark to outout for testing
?>
<h2 id="bodytitle">We've lowered our pricing, and renamed your plan!</h2>
<div><p>To take advantage of our new lower pricing, you'll need to complete the information below before your account expires. We value your continued support!</p>
<?php if ($days_until_fixed_time < 0){ ?><p>Update today for this special offer!</p><?php } else { ?><p>You have <strong><?php echo $days_until_fixed_time; ?></strong> days to take advantage of this offer!</p><?php } ?></div>

set your trial period value in your short code with:

tp="<?php echo $days_until_fixed_time; ?>"
Posted: Thursday May 31st, 2012 at 3:36 pm #15076

Thanks Nigel!
Very good stuff indeed.

Posted: Thursday May 31st, 2012 at 2:47 pm #15072

would be interested in this as well. Do you know where the data is stored?

Posted: Friday May 25th, 2012 at 12:09 am #14524

Cristián,
The user fills out the gravity form – basically so we can approve them for an account. If they are approved, and we do not consider them a ‘subscriber – level 0’ – we want to send them to the pro form for their level of paid access without requiring them to login first.

Right now we have to assign them the free level, and direct them to the upgrade form within the site. We would like to NOT have them access the site at all until they have paid.

/Scott

Posted: Wednesday May 23rd, 2012 at 12:19 pm #14336

Jesse-
you will need to edit/add it to your theme css file

/Scott

Posted: Wednesday May 23rd, 2012 at 11:52 am #14334

Thanks. I understand the issue, was wondering if there was a solution.

Posted: Tuesday May 22nd, 2012 at 8:43 pm #14218

bump?

Posted: Tuesday May 22nd, 2012 at 8:41 pm #14217

Jessie-
Add this to the bottom of the your referenced css file – it should remove the spaces created by the p tag and the extra margin at the top of the field labels.

#s2member-pro-paypal-form-div {
margin-top:0px;
}

#s2member-pro-paypal-form-div p {
padding:0;
}

you can also style the section font by adding this to the bottom of the same css:
#s2member-pro-paypal-checkout-form-billing-method-section-title {font-family: xxxx;}

hope this helps with your spacing issues

Viewing 8 replies - 1 through 8 (of 8 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.