Author Topic: Membership types and renewal of back office free memberships to paid  (Read 850 times)

Offline Paul E

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
Hi,

Drupal 7/Civi 4.0.4 question:

My organization has been using CiviCRM for back office work of tracking memberships for contacts. Contacts are added to the system via back office and manually assigned a complementary membership of membership type called "Complementary First Year," a membership type only available through the back end (not marked as public). As such, there is no contribution tied to these complementary memberships and when contacts view their contact dashboard, there is no renew link. The lack of a link isn't an issue in this case.

We would like members to have the choice to come back after the fact and renew their membership with a fixed contribution. We created a contribution page with a membership type of paid yearly or paid monthly--two separate membership types and amounts associated. When a contact hits the contribution page, Civi treats it as adding a new membership (the new membership portion of the contribution page is loaded, not the renewal part). The contact enters the payment, selects one of the two options--either monthly or yearly and enters credit card information. Once the payment is processed, Civi does not update the membership type--it still shows as "complementary first year." At this point, the contact dashboard shows the complementary membership with a renew link. When a contact attempts to use that renew link, they get a message that says:

Oops. The membership you're trying to renew appears to be invalid. Contact your site administrator if you need assistance. If you continue, you will be issued a new membership.

Is what I'm trying to do possible within Civi? Expected behavior would be that the membership would be updated to the correct membership type selected on the contribution page and that the renew link would work.

Best,
Paul

Offline petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 3682
  • Karma: 123
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Membership types and renewal of back office free memberships to paid
« Reply #1 on: July 20, 2011, 01:20:56 pm »
when they visit the contribution page are they seeing the radio buttons to select their membership type - ie annual or monthly - and if so, are you saying that even after selecting the required membership it only extends the original 'complimentary'?
pete davis : www.fuzion.co.nz : connect + campaign + communicate

Offline Paul E

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
Re: Membership types and renewal of back office free memberships to paid
« Reply #2 on: July 20, 2011, 01:23:33 pm »
That is correct, they see the "new membership" section and radio buttons and only get the original extended.

This post looks to be similar: http://forum.civicrm.org/index.php/topic,20225.msg84520.html#msg84520

Offline Paul E

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1

Offline Paul E

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
Re: Membership types and renewal of back office free memberships to paid
« Reply #4 on: July 20, 2011, 02:08:56 pm »
Steps to replicate:

1. Use back office to add membership of type "Free"
2. Log in as contact and attempt to contribute via http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=6

Contact gets renewed "Free" membership instead of "Paid"


Offline Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5428
  • Karma: 208
    • My CiviCRM Blog
Re: Membership types and renewal of back office free memberships to paid
« Reply #5 on: July 20, 2011, 03:45:22 pm »
Paul - This definitely not expected behavior. The existing FREE membership should be renewed AND the membership type should be changed to PAID. I've escalated an already open issue with your bug report.

http://issues.civicrm.org/jira/browse/CRM-8141

Missed CiviCon London? Watch the session videos!

Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Offline Paul E

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
Re: Membership types and renewal of back office free memberships to paid
« Reply #6 on: July 20, 2011, 06:43:57 pm »
Is there a workaround? I read through the existing bug you linked to and it seems to be a different issue involving memberships across different organizations. Is this the same issue?

Offline Paul E

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
Re: Membership types and renewal of back office free memberships to paid
« Reply #7 on: July 20, 2011, 08:45:57 pm »
I believe I've fixed this by adding the following at line 1363 of CRM/Member/BAO/Membership.php:
Code: [Select]
                $currentMembership['reminder_date'] = CRM_Utils_Array::value( 'reminder_date', $dates );
                $currentMembership['is_test']       = $is_test;
               +// Attempted fix
               +$currentMembership['membership_type_id'] = $membershipTypeID;

Offline JoeMurray

  • I post frequently
  • ***
  • Posts: 328
  • Karma: 18
    • JMA Consulting
Re: Membership types and renewal of back office free memberships to paid
« Reply #8 on: July 21, 2011, 08:57:03 am »
Hi Paul,
I'm working on the JIRA issue and believe your symptoms, though different, spring from the same cause of not having membership type update properly. The workflow you describe would end up creating payments for a membership that is a free membership type. Thanks for your detailed reporting. I'll be posting a patch for this today I expect.

Offline crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Membership types and renewal of back office free memberships to paid
« Reply #9 on: August 26, 2011, 11:28:27 am »
Hey Joe, any update on this? I checked the JIRA issue just now but it seems that the problem has not been fixed yet (according to Paul E) and there's been no update to the issue log for over 2 weeks. I expect I'm going to run into this issue myself soon as my client's free trial memberships all lapse a couple months from now. :-\

Please let me know if there's anything I can do to help.