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.

Fixed EOT Date w/ Prorated Billing

Home Forums Community Forum Fixed EOT Date w/ Prorated Billing

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 8 months ago.

Topic Author Topic
Posted: Friday May 3rd, 2013 at 11:11 pm #49178
Monica Parrott
Username: awe

Our membership period is May 1 – April 30 every year, I currently have membership set up as a subscription renewing every 1-year but that is from whatever date they start through 365 days later. I need to know what to do so that the amount of the first payment will be prorated based on when they join and have a fixed EOT date of April 30th.

For example, if I register on May 1 I pay $58 and expire on May 1 but if I register on November 1 I pay $29 and expire on May 1.

I found this article: http://www.s2member.com/forums/topic/recurring-prorating-of-billing/ but it is from 2011 and the suggestion isn’t working for me. Although I am not a developer so it could be user error.

We upgraded to PRO so that we can make this happen, but I’m at a loss on how to get it set up properly. Please help.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday May 6th, 2013 at 6:47 pm #49295
Bruce
Username: Bruce
Staff Member

I found this article: http://www.s2member.com/forums/topic/recurring-prorating-of-billing/ but it is from 2011 and the suggestion isn’t working for me. Although I am not a developer so it could be user error.

This article goes over the method that is still needed to accomplish what you’re looking for here. s2Member does not natively support prorating subscriptions and having subscriptions start at a certain time so it takes some custom code. For your setup your code would start something like this:

<?php
$now = strtotime("now");
$recurring_start_time = strtotime("01 May 2013");
$days_until_recurring_charges_begin = round(($recurring_start_time - $now) / ($seconds_in_one_day = 86400));
?>
That’s about as far as we can go with custom code. If you need further assistance, we recommend http://jobs.wordpress.net, or another freelance web site where WordPress® experts are offering their expertise through a bid on your project.
Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.