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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do you add membership choice (with payment) to drupal user registration?
Pages: [1]

Author Topic: How do you add membership choice (with payment) to drupal user registration?  (Read 2483 times)

vandit09

  • Guest
How do you add membership choice (with payment) to drupal user registration?
June 22, 2008, 03:59:27 am
Basically i saw that this site, http://www.uas.coop/user/register, has what i'm looking for. I want member's to choose which membership they want. The user probably gets redirected to the civicontribute page to pay. Anyways, how are they able to add those fields to the user registration???

ANyone can help me?

Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How do you add membership choice (with payment) to drupal user registration?
June 23, 2008, 11:51:54 am
I did a "View Source" on that page - and they're using a custom field for "Choose your membership type". I don't know how their handling the results of submitting that value - although one possibility is that somone in the organization is getting an email each time that form (w/ it's Profile) is submitted - and then manually processing the correct membership through the "back-end" (i.e. from the Membership tab in the Contact Summary screen).
Protect your investment in CiviCRM by  becoming a Member!

vandit09

  • Guest
Re: How do you add membership choice (with payment) to drupal user registration?
June 23, 2008, 12:34:43 pm
I actually went through both membership type processes and notice that the web based free membership just allows you to register. However, with the paid membership, it redirects you to the civicontribute page right after registration. This is exactly what i was looking for, in which Mr. Lobo had said its not possible at this time. Weird, somebody figured it out. It looks like they used a custom profile fields with a "0" and "1" as values, but again, and as you mentioned, we're not sure how they are handled. Perhaps, someone can chime in on this?


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: How do you add membership choice (with payment) to drupal user registration?
June 23, 2008, 01:11:13 pm

I've asked shane the developer at UAS to chime in on this thread

note that it is possible with custom coding (as UAS shows). We dont do this by default / settings.

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

vandit09

  • Guest
Re: How do you add membership choice (with payment) to drupal user registration?
June 23, 2008, 01:16:45 pm
Thanks Lobo, I appreciate it. Hopefully, the coding isn't too difficult  :)


shane

  • I post frequently
  • ***
  • Posts: 265
  • Karma: 16
Re: How do you add membership choice (with payment) to drupal user registration?
June 24, 2008, 08:02:19 am
hi, I do not remember exactly what we did as it was over a year ago but I know we created a module (feel free to use it if u can):

http://code.google.com/p/uascoop/source/browse/trunk/drupal/modules/reg_redirect.module

and we installed the logintoboggan module, which was necessary for something that I also do not remember,  sry.

i think the setup only works with drupal 4 but I am not sure.

not sure of that will work for you or not,  but I hope that it helps.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: How do you add membership choice (with payment) to drupal user registration?
June 24, 2008, 02:47:55 pm
At a glance, it looks something like this:

 * Phase 1 of user registration happens via Drupal's standard /user/register method, which incorporates a CiviCRM profile marked for "User registration"
 * LoginToboggan (a Drupal module) directs all Drupal site registrations to /register_redirect on completion
 * The code in the reg_redirect Drupal module decides whether to hand people on to phase 2 of the signup process (if they selected a paying member option) via the CiviContribute location

(Please correct me if I'm wrong, I had only a brief look at the code and couldn't test-drive it on our installs for version reasons. Great example - thanks!)

If your signup process requires creating a Drupal account for each registering member (rather than just a CiviCRM contact - although creating the user account will also trigger creation of the CiviCRM contact) then this implementation may be for you.

If you just want CiviCRM contacts, it might not be what you're after, but a similar form (implemented in Drupal or Joomla) which set up the contact via CiviCRM APIs might be an alternative.

(I'm wondering if CiviCRM has a token mechanism which would allow a user to add/edit details for the contact record they have just created, similar to how it handles tokens for mailing list unsubscribe? If that were the case, then it might be possible to pass people through a series of profiles to gather information.)
@xurizaemon ● www.fuzion.co.nz

vandit09

  • Guest
Re: How do you add membership choice (with payment) to drupal user registration?
June 24, 2008, 03:43:47 pm
Thank you shane for your help and for providing the link to the module that you have created. I will investigate this further and see how i can further implement it to my situation- unfortunately it looks like I don't have the skills to make this usable.

xurizaemon, thanks for your analysis on how this implementation works since i had no clue. This is exactly what i need for my organization. But unfortunately, we don't have access to funds to further develop custom modules.

It would be awesome if someone is able to port this to work with civicrm 2.04 and drupal 5.x, i'm sure many organizations out there can use this.



« Last Edit: June 24, 2008, 04:04:10 pm by vandit09 »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How do you add membership choice (with payment) to drupal user registration?
June 24, 2008, 04:44:24 pm
Quote from: xurizaemon on June 24, 2008, 02:47:55 pm
(I'm wondering if CiviCRM has a token mechanism which would allow a user to add/edit details for the contact record they have just created, similar to how it handles tokens for mailing list unsubscribe? If that were the case, then it might be possible to pass people through a series of profiles to gather information.)

Hi Chris - There is "experimental" functionality allowing a contact to access a profile and edit their info w/o logging in using a time-delimited hash value. There's info about using this in this forum post:

http://forum.civicrm.org/index.php/topic,2074.msg8970.html#msg8970
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do you add membership choice (with payment) to drupal user registration?

This forum was archived on 2017-11-26.