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) »
  • Multiple active memberships, same contact, same organization
Pages: [1]

Author Topic: Multiple active memberships, same contact, same organization  (Read 571 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
Multiple active memberships, same contact, same organization
June 10, 2013, 06:32:08 am
I was wondering if there was a way to have multiple active memberships for a single contact using the same organization. I currently have a client who has the senario where you can buy a membership that gives you a "membership" type based on your profession... then we have a membership type that grants you a years worth of access to an online teaching tool via Drupal Roles... Both must be bought separately. The profession based membership has a fixed yearly renewal period, where as the other has a lifetime affect.

Right now it seems the contacts are "Upselling" to the new membership type as explained in the Civi-CRM book.

I'm thinking there is probably a different way to handle this... but I'm just making sure that there is no possible way to have a single contact to have 2 membership types at the same time from the same organization.

Other options I've considered:
  • Just adding another organization (seems kludgy but easy)
  • Figuring a way to make a contribution page to add a user to a group that syncs to the specific role on Drupal

Thoughts?

Tony Horrocks

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 7
    • Fabriko Limited
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7
Re: Multiple active memberships, same contact, same organization
June 20, 2013, 10:28:17 am
Have you tried using a membership price set?
Tony Horrocks
Author of the CiviCRM CookBook https://www.packtpub.com/web-development/civicrm-cookbook

jackrabbithanna

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
  • Quick like bunny
    • http://www.skvare.com
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Multiple active memberships, same contact, same organization
June 20, 2013, 09:00:46 pm
You could use the civicrm_entity module (https://drupal.org/sandbox/eileen/1923028) and the Rules module (https://drupal.org/project/rules) to do this:
Quote
Figuring a way to make a contribution page to add a user to a group that syncs to the specific role on Drupal
but using an event registration page.

The rule can react to creation of a an participant object, and you can add a drupal role the the user that is synced to the contact. I created the follow rule to export, and I chose the role to add in my system has an id of 6.  You will have to edit the action and choose which role you want to add to the user. 

Rule code to import via the rules admin interface:
Code: [Select]
{ "rules_add_drupal_user_role_after_user_registers_for_a_civicrm_ev" : {
    "LABEL" : "Add Drupal User Role after User Registers for a Civicrm Event",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "rules", "civicrm" ],
    "ON" : [ "civicrm_participant_create" ],
    "DO" : [
      { "user_add_role" : {
          "account" : [ "site:current-user" ],
          "roles" : { "value" : { "6" : "6" } }
        }
      }
    ]
  }
}
}

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Multiple active memberships, same contact, same organization

This forum was archived on 2017-11-26.