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) »
  • Update Inherited Memberships
Pages: [1]

Author Topic: Update Inherited Memberships  (Read 1242 times)

rightsprocket

  • Guest
Update Inherited Memberships
August 23, 2010, 03:35:48 pm
We have an existing 3.2 installation in which we recently added membership by relation.  In all 3 of our organizational member types we added the "Employer of" in the relationship drop-down.  Any new contacts added to the system do inherit the membership from the employer they have a relationship with.  However fro all our older contacts the membership is not propagating. I have run all the cron scripts and still cannot get it to work.  Any suggestions?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Update Inherited Memberships
August 30, 2010, 12:07:07 am
Are your old memberships active? What happens if you edit and save organization membership ( old )?

Kurund
Found this reply helpful? Support CiviCRM

reaper21

  • Guest
Re: Update Inherited Memberships
December 17, 2010, 10:24:01 pm
Having this same problem too. Edit and saving organization membership does not work. Any ideas. Have run all cron scripts, the only way to create the membership for the related contacts is to edit and save the contact, but with over 400 related contacts there must be an easier way to do this. Any assistance would be greatly appreciated.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Update Inherited Memberships
December 17, 2010, 10:48:42 pm
Ideally Inherited Membership should be up to date, when you either play with main membership record or relationship record.

Inherited Membership get from two ways.

1. If there is existing active relationship and main contact signup for membership.
( 'individual 1' is a employee of 'organization 1' and organization signup for membership type which has 'Employer Of' relationship.
In this case 'individual 1' should get inherited membership )

2. If there is existing membership of main contact and we create relationship between main contact and related contact.
( In this case when we do create/edit relationship, related contact should get inherited membership )

Recently ( CiviCRM 3.3.1 ) we did lot more enhancement and cleanup for this functionality.
Related issue is here : http://issues.civicrm.org/jira/browse/CRM-7127

You might want to play with our public demo site : http://drupal.demo.civicrm.org/

thanks

kiran
You Are Designed To Choose... Defined By Choice.

reaper21

  • Guest
Re: Update Inherited Memberships
December 18, 2010, 03:20:25 am
Thank you. Besides manually entering then saving each membership record (your option 2 for 450 records) is there any way to do a batch update (producing an inherited membership record for each employee in a relationship)? Both contacts, relationships and memberships for the parent organisation already exist.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Update Inherited Memberships
December 18, 2010, 05:37:36 am
Quote
Both contacts, relationships and memberships for the parent organisation already exist.
Seems to be strange one, how come such case comes in picture.  since this inherited membership feature is from CiviCRM 1.x series.
Also at any time when we do create/update membership or create/update relationship, inherited membership should get set/update.

Quote
Besides manually entering then saving each membership record (your option 2 for 450 records) is there any way to do a batch update
Agree, it is time consuming / quite hectic to update so many records manually.

IMO to fix this scenario there are two ways :

1. Use import feature with update mode.
(
A. Either use contact import with relationship and update mode :
consider Individual contact as a main and use organization contact as a related contact.
here system is going to update relationship between two contacts and this subsequently going to create/update related memberships.
OR
B. Use Membership import with update mode :
consider all memberships those are for organization contacts,
here system is going to update main membership record and this subsequently going to create/update related memberships.
)

2. Write a custom code, might be a script/cron which going to check all membership records and
make to keep inherited membership up to date for appropriate membership and relationship.

Caveat : Make sure to take your database backup before going for any above solution.

Hope this help

kiran
You Are Designed To Choose... Defined By Choice.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Update Inherited Memberships
December 18, 2010, 05:49:17 am
Quote
Having this same problem too. Edit and saving organization membership does not work. Any ideas. Have run all cron scripts, the only way to create the membership for the related contacts is to edit and save the contact,

Here I suspect your relationship between two contacts are not active.
So when you are updating contact, system subsequently update relationship and hence further related memberships.

I think Import contact with relationship and update mode would be better solution to create inherited memberships for all contacts in a go.
( Which going to update relationship and subsequently create inherited memberships )

hope this help

kiran
You Are Designed To Choose... Defined By Choice.

reaper21

  • Guest
Re: Update Inherited Memberships
December 18, 2010, 03:40:25 pm
Thanks Kiran. Like the original poster, we only just enabled the membership by relation functionality. If we had enabled it from the beginning i'm sure we would not be in this position.

I have just tried both importing the contacts (with the relationship data) and memberships in update mode without any success. Looks like I will need to write a custom script/cron job. Unfortunately my programming skill's aren't great but will try my best. :-)

Will post my solution (if I find one) on this thread.

I appreciate your very fast and helpful assistance with this matter.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Update Inherited Memberships

This forum was archived on 2017-11-26.