Need SQL Actions - Plan Calendar Year different from Renewal

10 years 4 weeks ago #243480 by tecsmarts
My client offers 1yr, 2yr and 10yr subscriptions.

ALL SUBSCRIPTIONS need to run from November 1 thru October 31. ALL Subscriptions need to end on October 31st REGARDLESS of what date they are purchased...with the conditions below:

If the Renewal Subscription is purchased AFTER November 1st (Current year) AND BEFORE May 31st (following year), then it is valid only thru October 31st (following year)

If the Renewal Subscription is purchased AFTER June 1st (Current year) AND BEFORE October 31st (Current year), then it is valid thru October 31st of the FOLLOWING YEAR. --- This encourages membership renewal in the months preceding the October 31st EXPIRATION of all plans.

How do I use SQL Actions to modify the Expire Dates properly when people sign up? I am guessing it would be an "If-Then-Else" ... but how?

Thanks in advance to whomever can assist!

Please Log in to join the conversation.

10 years 4 weeks ago #243507 by krileon
I do not suggest modifying expiration dates. It's truthfully asking for trouble. Especially if using auto recurring of any kind with any gateway as the gateway would never know of the change. Single payments it is less of a danger, but it will still break calculations. The best I can suggest is to use the by calendar year durations and change the start month-year combo as needed then adjust the bonus time to 1 month.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

10 years 4 weeks ago #243521 by tecsmarts
Thanks for your prompt response. I appreciate your candor.

This client does not do recurring billing. I have been having to go into the MySQL database manually every so often and change the expire dates myself. It's just very confusing for the members to make a purchase that should take them thru Oct 31st ... see it extend it beyond that at the time they purchase ... then see it mysteriously retreat back to Oct 31st when I make my adjustments.

I would understand if you didn't want to publish the type of modification that I am asking for help with because of the harm it could do in other circumstances. If you could perhaps private message me with some suggestions and/or pointers, I would greatly appreciate it.

It has bugged my client since the first day we implemented this that I couldn't match the scheme dictated in their By Laws, and I've strung them along for several years ... now the heat is getting hot and I've got to make this happen.

Thanks, in advance, for whatever assistance you can give.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.223 seconds

Facebook Twitter LinkedIn