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) »
  • On behalf of
Pages: [1]

Author Topic: On behalf of  (Read 2367 times)

djtrouten

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • Evangelical Press Association
  • CiviCRM version: 3.4.7
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.91
  • PHP version: 5.2.16
On behalf of
January 18, 2010, 09:18:19 pm
I've created and have begun using some membership types for organizations. Now I'd like to enable "on behalf of" for a couple of those types, so that I can let individuals who work with those organizations be recognized as employees. However, when I open up an existing membership type to edit it, I don't have a dropdown list for "relationship type." I can see where it should be, but there's just the question mark that brings up the tool tip. How can I enable "relationship type" for an exsting membership type?

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: On behalf of
January 18, 2010, 09:25:46 pm
From memory this insn't something you can change via the UI once you have any contacts with that membership type. Have a hunt on forum as there have been posts about this that might suggest how to deal with it via sql.

I.e. this is a function that should be set up before the Membership Type is used.
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

djtrouten

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • Evangelical Press Association
  • CiviCRM version: 3.4.7
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.91
  • PHP version: 5.2.16
Re: On behalf of
January 19, 2010, 08:22:58 am
Wish I had set it up before using the membership type, but now I'm stuck where I am. Is there a fairly clean way to create a new membershp type, then transfer the existing memberships from the old type to the new type?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: On behalf of
January 19, 2010, 04:17:52 pm

no. u'll need to manipulate the database to do so

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

djtrouten

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • Evangelical Press Association
  • CiviCRM version: 3.4.7
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.91
  • PHP version: 5.2.16
Re: On behalf of
January 19, 2010, 04:24:17 pm
I'm willing to manipulate the database. What do I need to do? Is there a way to retroactively active "on behalf of" by tinkering around in the MySQL file?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: On behalf of
January 19, 2010, 05:29:43 pm

1. read the civicrm ERD: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+ERD+2.0

2. your membership type now has an employee of relationship

3. you expose the "on behalf of" on a membership signup page

4. you might be able to edit the "membership_type" table and manually change it to use the "employee of" relationship type

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

djtrouten

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • Evangelical Press Association
  • CiviCRM version: 3.4.7
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.91
  • PHP version: 5.2.16
Re: On behalf of
January 24, 2010, 08:19:25 pm
Now that I look at this, I think I've overestimated my willingness to try solving my problem by manipulating the MySQL file directly. My common sense has caught up with my love of tinkering, and has reminded me that trying to bypass the program has seldom led me anywhere good. It's not just adding a new relationship to the membership type that's the problem -- it's that it would probably turn out that there are a dozen other obscure places I would need to make the change. So, now that I've talked myself out of that potential nightmare, I'm looking for a cleaner solution to my problem. Anybody care to weigh in on the easiest way to transfer my current membership information to a brand new membershp type that includes the "on behalf of" option?

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: On behalf of
January 25, 2010, 11:40:29 am
So I would first look at option of exporting all data - changing Membership Type to the new one you need to set up and trying a Membership import - obviously with some test data / contacts first time ;-)

If the contacts have the required relationship then they should inherit upon creation of the membership on import.
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

djtrouten

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • Evangelical Press Association
  • CiviCRM version: 3.4.7
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.91
  • PHP version: 5.2.16
Re: On behalf of
January 26, 2010, 07:48:30 am
I did the export and import as suggested, and it went just fine. A few glitches that we'll have to sort out manually, but it did the job. Thanks!

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: On behalf of
January 26, 2010, 10:51:14 am
great. would be useful for the community if you could put a quick recipe here - ie step 1, step 2, especially if you found some glitches that others might avoid. you won't be the only one to hit this snag i suspect
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

djtrouten

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • Evangelical Press Association
  • CiviCRM version: 3.4.7
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.0.91
  • PHP version: 5.2.16
Re: On behalf of
January 26, 2010, 09:27:29 pm
Here's what I did:

1. Created a new membership type with a different name and activated the "on behalf of" information. (Everything else was the same.) For instance, one of my old membership types was "Publication member," and the new type I created was called "Publication."

2. Exported the memberships I wanted to change. To do this, I chose "Find members" from the "Memberships" menu, checked the boxes for the membership types I wanted, and clicked search. When the results popped up, I made sure the "all XXX records" button was selected, then chose "Export" from the drop-down menu. I chose to export "Primary fields," and saved the resulting CSV file.

3. I opened the CSV file with Excel. In the "Membership type" column I replaced the old membership name with the new one. I also looked at the columns containing dates, noted for format, highlighted the columns, and applied the matching date format. Not sure if this helped, but I've had trouble with date formats before, and this seemes to make a difference.

4. I went back to CiviCRM and chose "Import members" from the drop-down menu under "Memberships." I chose the right options, including contact type (mine were organizational), "insert new membership" (since I was creating a new membership, not updating an old one), and date format (matching the format noted in the previous step).

5. For the field mapping, I only picked the fields I needed. I use an "external identifier" number with my records, and that's what I used to match. I also matched membership type, member start date, member since, member expiration date, and source. I didn't match "Membership ID" because I thought that would duplicate existing memberships. And I skipped 'Member status," figuring CiviCRM could calculate that based on my membership rules. Also, I saved this field mapping, since I would need it to deal with import errors.

6. Most of the records imported fine. There were some import errors, and I downloaded the error file. The error file is great, because it contains only the records that had problems, plus the reason for the problem. You can just fix the problem and import the error file again, repeating the process as needed until you have no problems. In my case I found that I had a few records that had not been assigned "External identifier" numbers, and therfore couldn't be matched. I just entered those memberships by hand.

That's about it.

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

This forum was archived on 2017-11-26.