Hey everyone,
We are looking to create a custom prorating schedule for our memberships where:
The yearly rate is $150, but prorated on the 15th of each month by 12.50.
ex. Membership fees for January would be $150, fees for February would be 137.50, and fees for March would be $120.00.
We have written this code but are not sure where to place it in s2member (and also are not sure if the logic is correct!)
Any help would be appreciated.
date_default_timezone_set('America/New_York');
$months_in_year = date('t');
$months_left = $months_in_year - date('j');
$prorated_payment = number_format((150 / $months_in_year * $months_left), 2);
echo do_shortcode('[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="1A Membership: This year prorated @ $' . $prorated_payment . ', then $150/year (recurring charge, for ongoing access)" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.cutlerbaybiz.com" ta="' . $prorated_payment . '" tp="' . $months_left . '" tt="D" ra="150" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="clean" /]');