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 CiviEvent (Moderator: Yashodha Chaku) »
  • Manage membership at event registration
Pages: [1]

Author Topic: Manage membership at event registration  (Read 773 times)

poorva

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: 6
  • MySQL version: 5.5
  • PHP version: 5.3
Manage membership at event registration
September 20, 2011, 12:22:52 am
Hello everyone,

I have created an event at my website. This is paid event and having price set like :
1. Event registration Plus 1 year membership
2. Event registration Plus 2 year membership

Now i want to manage (create/update) membership at basis of event registration.

As per my current understanding : This needs custom code. Hope post process hook is suitable for this.
I m very new in civicrm so i m not sure how to right code to update membership.
 
Here is an another link with similar problem: http://forum.civicrm.org/index.php/topic,14722.0.html

Please Please help. Thanks in advance.



poorva

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: 6
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Manage membership at event registration
September 27, 2011, 03:20:04 am
I realize very less support provided by civicrm community  :( :(

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
Re: Manage membership at event registration
September 27, 2011, 08:48:29 am
You will need to write custom code which hooks into the confirm page (after_post I think) and checks which price set level was selected. Then you need to add (using the API) this contact_id with a fresh membership of the type you want with an expiration date set.

But, as I said, you need to be willing to develop code, understand how hooks work and plumb it all together

cognoscento

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Manage membership at event registration
September 28, 2012, 11:07:36 am
I'm quite interested in this too. Maybe a feature request for the future? Being able to plug in membership purchases, contributions and event registrations to each other's forms more completely would be very handy for many different use scenarios.

Or if someone's done this already (in the particular case of having some event registration price set items also including a membership), maybe they have code they'd be willing to share?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Manage membership at event registration

This forum was archived on 2017-11-26.