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) »
  • Custom Data for Membership Type.
Pages: [1]

Author Topic: Custom Data for Membership Type.  (Read 864 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.
August 19, 2011, 10:30:39 am
Hi There,

I have a situation where I have several different membership types, each having a different number of allowed "active members".

For example:

Regular Membership - 2 Active Members
Gold Membership - 4 Active Members
Platinum Membership - 8 Active Members

My first step in dealing with this looks to be to be able to add the "active member" as an integer field to the membership type itself, right next to membership duration and member dues.
 My problem here is that I don't quite have any idea on where to start, I'd appreciate even a whiff of a clue!

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, 10:42:49 am
I've been making lots of progress with the api in order to digest a foreign mysql database into civicrm (members, orgs, relationships, memberships), but I'm still stuck on this problem...

I am willing to "go deep" technically, but I'm afraid I don't really know where to start here.

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: Custom Data for Membership Type.
October 04, 2011, 10:53:01 am

the membership type table does not allow custom fields. I suspect one potential option is to:

create and manage your own table, which consists of

membership_type_id and number_of_active_members

You can then use this table in your hook code. Might want to create a drupal module that creates this table etc.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Custom Data for Membership Type.

This forum was archived on 2017-11-26.