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 (Moderator: Dave Greenberg) »
  • Automatic/Default Membership Type on Sign Up?
Pages: [1]

Author Topic: Automatic/Default Membership Type on Sign Up?  (Read 1954 times)

bimpasha

  • Guest
Automatic/Default Membership Type on Sign Up?
June 20, 2008, 03:30:29 pm
Hi everybody.

I've been using CiviCRM together with Drupal for quite some time now and gotten real used to it. I love it! Today I stumbled upon a problem, the first ever, that I was not really able to solve really easily. It might be because it is late over here in Sweden I'm just missing something obvious but I cannot seem to find any way for all new signups to automatically be added under a Membership Type.

In CiviCRM Profile I could select an 'Automatically add to Group' but I cannot find anything like that for memberships. I know it used to exist but it seems to have been removed because it was not implemented in a desired way(?).

I use CiviCRM sign up forms baked-into the Drupal registration form, love the way that works! I do not want the user to select a membership type, organization, household or anything like that. I just want the user to be added to my desired Membership Type when they register, automatically by default.

If anybody can help me out here I would really appriciate it!

Best Regards,

bimpasha

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Automatic/Default Membership Type on Sign Up?
June 20, 2008, 03:39:50 pm
I don't recall there ever being a feature which automatically created a membership for contacts (via Profile, Drupal Registration or any other form)...

So I think you'll have to do some coding to make this happen. One approach would be to build a small Drupal module which intercepts the CiviCRM "hook" for contacts being added, and then uses CiviCRM APIs to create the associated membership record.

You can find API and Hook documentation in the Develop section of the wiki Documentation space. Assuming your running 2.0.x - be sure to use the v2 APIs.
Protect your investment in CiviCRM by  becoming a Member!

bimpasha

  • Guest
Re: Automatic/Default Membership Type on Sign Up?
June 21, 2008, 01:12:05 am
Hi.

Thank you, that was what I was suspecting I'd have to do. No worries, shouldn't be too much of a work! About this as a feature and that it was removed, I thought that because I found this information: http://wiki.civicrm.org/confluence/display/CRM/CiviMember+-+Phase+1+Specifications

And if you scroll down to "Member Sign-up and Renewal (self-service)" you'll see a part that is overlined, it says: For cases where the organization wants to automatically assign the contact to a fixed membership type - that membership type can be assigned at the Profile level (Profile » Settings » Assign Contacts to Membership Type). Fixed membership type implementation TBD - the preceding implementation has been rejected as it pollutes core object with component properties.

Thanks for the help, I'll go and start on my module today :-).

Best Regards,

bimpasha

EDIT: I just saw it said "the preceding implementation has been rejecected" so it was never there it was just rejected, my misstake!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Automatic/Default Membership Type on Sign Up?

This forum was archived on 2017-11-26.