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) »
  • Discussion (deprecated) »
  • CiviCRM Jobs (Moderator: Dave Greenberg) »
  • Custom Data for Membership Type.
Pages: [1]

Author Topic: Custom Data for Membership Type.  (Read 1722 times)

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Custom Data for Membership Type.
October 04, 2011, 10:48:09 am
I am looking for someone that can bridge certains gaps for us as we migrate to Civi.

First off, a quick one to get to know each other:

Our "Membership Types" needs a custom field: "Number of Representatives". This would be an integer, and would be fixed for each membership type.

For example: Silver  Membership - 2 Representatives
                     Gold Membership - 4 Representatives
                      X Membership - X Representatives.

We will be tying this info to event registration logic later, but  I figure we might as well get friendly with our neighborhood CiviCRM developers before crunch-time :)


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Custom Data for Membership Type.
October 04, 2011, 11:01:36 am
Go to Administer -- Customize -- Custom Data

and add set of custom fields.

Choose Memberships for "Used For"

Now you can select which membership type you want to use.

If the "field" is fixed for two membership types, then it doesn't seem like a field--it's just a fact...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Custom Data for Membership Type.
October 04, 2011, 11:16:27 am

I currently have 8 or so membership types, each with their own custom data group, and single, solitary custom field "Representatives".  After getting comfortable with the API I started exploring Civi's tables and realized that this way (a custom group per type), is a pretty "messy" way to start things off.

I do absolutely defer to your greater experience though.

I am going to have to depend on this field information to tag members as representatives and to define prices when these members register for an event... Is there anyone around that might know how to handle these requirements?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Custom Data for Membership Type.
October 04, 2011, 11:18:29 am
I don't know what your requirements are. Who fills in this field? What is it used for? How does it work?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Custom Data for Membership Type.
October 04, 2011, 11:44:55 am
Our members are organizations.
There are different levels of membership.
The higher the membership level, the more "representatives" you get.
Employees of the organization are allowed to register for our events, free, up to the number of representatives in their membership class.

If I am an employee of a "gold member", I can register up to 4 people free of charge, and past that, regular fees come into play.

The "number of reps" field is static for each membership type, so nobody would be filling it in.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Custom Data for Membership Type.
October 04, 2011, 11:51:42 am
I think lobo also addressed part of this in another thread, but what I would do is store the "number of reps" field in a custom Drupal table.

Then you can use the CiviCRM hooks to determine, for each registrant, whether he is free or must pay. This of course goes into a custom Drupal module.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • CiviCRM Jobs (Moderator: Dave Greenberg) »
  • Custom Data for Membership Type.

This forum was archived on 2017-11-26.