CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Is there a way to programmatially Modify a Membership Length
Pages: [1]

Author Topic: Is there a way to programmatially Modify a Membership Length  (Read 1717 times)

generalredneck

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.29-0ubuntu0.12.04.1
  • PHP version: 5.3.10-1ubuntu3.6 with Suhosin-Patch
Is there a way to programmatially Modify a Membership Length
March 19, 2013, 01:34:18 pm
So I have a client who is asking for a very specific rule when it comes to memberships and it fits neither the rolling or fixed period membership types. It is closest to the fixed period, but the rule states:
Quote
If someone applies for a new membership after September 1, the expiration date roles to the following calendar year

Two use cases are:

1) I buy a membership between Jan 1 & Aug 31, I'll get a membership that lasts till Dec 31 this year.
2) I buy a membership between Sept 1 & Dec 31, I'll get a membership that lasts till Dec 31 the following year.

So #2 is actually like the fixed date rule except memberships are extended to the following year. Kinda like buying 2 memberships.

Does anyone have any ideas on how I can implement this? I don't see any Drupal hooks that seem to fit.

Thanks,
GR

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Is there a way to programmatially Modify a Membership Length
March 19, 2013, 02:22:25 pm
Hi General

You should be able to accomplish what you want by setting the Fixed Rollover Date to be Sept 1 - that way people get the remaining months of Year 1 plus Year 2 as their Membership

There Join Date would be eg Sept 5 2013

Their Start Date would be Jan 1 2013

Their End Date would be Dec 31 2014

hence they have a period where they are a member of 12 months + 3 months + 26 days.

Is that what you need?

NB the Start Date will always jump to the beginning of the current Fixed year.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

generalredneck

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.29-0ubuntu0.12.04.1
  • PHP version: 5.3.10-1ubuntu3.6 with Suhosin-Patch
Re: Is there a way to programmatially Modify a Membership Length
March 21, 2013, 06:23:18 am
petednz,

Wow... this is a case of RTFM it looks like. It says in plain English on the page that's what the Fixed Period Rollover Day is for.

Quote
Fixed Period Rollover Day
 
Membership signups after this date cover the following calendar year as well. Example: If the rollover day is November 31, membership period for signups during December will cover the following year.


I didn't realize this was a popular enough scenario that it would be built in.

Thanks a lot for your help!

GR

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Is there a way to programmatially Modify a Membership Length

This forum was archived on 2017-11-26.