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 CiviContribute (Moderator: Donald Lobo) »
  • Drupal registration using contribution page with membership signup
Pages: [1]

Author Topic: Drupal registration using contribution page with membership signup  (Read 3662 times)

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Drupal registration using contribution page with membership signup
August 06, 2009, 04:24:30 pm
Hi, I'm a new user and so impressed with this great tool.

I've followed the instructions in "Configuring Online Contribution Page(s) for Membership Signup / Renewal"
http://wiki.civicrm.org/confluence/display/CRMDOC/Configure+Online+Contribution+Pages+for+Membership+Signup+and+Renewal.
It's just missing a last piece of information that's probably obvious to everyone, but I need help! 

How do I make Drupal use my new contribution page for new user registration?  The Drupal login block comes with a new account signup link in it, that I can't seem to configure.  Of course I could hack the template code and replace the url, but I'm assuming there's a better way, and I'm just missing it?  Is it just a config option somewhere?  Or is there a CiviCRM Login block that I need to get somehow?

Thanks,
Julie

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: Drupal registration using contribution page with membership signup
August 06, 2009, 05:20:37 pm
I found a workaround suggestion on the Drupal site which has got me part way there, but I am still having trouble.    

A helpful user said : in your template.php add
if (arg(0)=='user' && arg(1)=="register") drupal_goto("YOURNEWPATH");

I've done that and entered the link to my contribution page at /civicrm/contribute/transact?reset=1&id=2, and the redirect seems to work fine.  However...

When I click the 'new account' link as an anonymous user I see the url civicrm/contribute/transact%3Freset%3D1%2526id%3D2 which ends up displaying the contributions summary table.  If I then log in as administrator it rewrites the url as it should be, and displays the correct contributions page.  I've been all over the permissions but I may have missed something.  

I have set the following relevant permissions for anonymous users:
  • make online contributions
  • profile listings and forms
  • register for events
  • access all custom data
  • access user profiles

Or could it be a url rewriting issue?
« Last Edit: August 06, 2009, 05:31:41 pm by JulieR »

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: Drupal registration using contribution page with membership signup
August 06, 2009, 05:43:57 pm
OK I found I could make it work by putting the full contribution page url including domain into YOURNEWPATH.  It seems a bit clunky, but at least it works for now.  I'd love to hear if there's a better way to do this.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Drupal registration using contribution page with membership signup
August 07, 2009, 03:26:59 pm
Julie - The "recommended" way to do this is to include a CiviCRM Profile in your contribution page (you may already have done this to collect donor name etc.). In the Settings for that profile - you can enable "Create Drupal user" option. This will then prompt un-authenticated users to either login (if they have an account) or create an account as part of making the contribution.

You might find it helpful to browse the online book - Understanding CiviCRM - get some of the "big picture" on these configuration processes. Specifically for this issue: "New Account Creation During Profile Signup " in Collecting and Exposing Data:

http://en.flossmanuals.net/CiviCRM/CapturingExposing
Protect your investment in CiviCRM by  becoming a Member!

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: Drupal registration using contribution page with membership signup
August 10, 2009, 03:23:52 am
Dave, thanks for the reply.  I'm still a bit confused, as I did do the things you describe.  However when I tested signing up to Drupal, it just presented me the CiviCRM profile page that I had enabled, rather than the Contribution page I'd added the profile to.  How do I tell Drupal to use the Contribution page?  Or is it simply not giving it to me because it recognises me as the administrator even when I'm not logged on?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Drupal registration using contribution page with membership signup
August 10, 2009, 04:03:29 am
Julie,

I guess you checking the drupal signup/registration page, whereas what Dave suggested is - going to contribution signup url which would look like -

http://example.com/civicrm/contribute/transact?reset=1&id=1

You can also find the url on "Manage Contribution Pages" screen with the link text as "Test-drive"/"Live Page".
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: Drupal registration using contribution page with membership signup
August 10, 2009, 01:12:03 pm
Hi Deepak, you're right, and that gets me back to my real question, which is what is the best way to make Drupal use my contributions page as the signup page?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Drupal registration using contribution page with membership signup
August 10, 2009, 10:16:04 pm
You can't make drupal signup page to have contribution page. HOWEVER you CAN use contribution page for signups (creating drupal accounts) in addition to the any contribution work that particular contribution page is configured for.

So when you go to the contribution page as anonymous user, you should see an "Username" textbox field for creating drupal username, provided the contribution page includes a profile which has "Account creation required" setting set.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Drupal registration using contribution page with membership signup

This forum was archived on 2017-11-26.