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) »
  • How to Setup an Unpaid Event with a Donation Option on the Same Page?
Pages: [1]

Author Topic: How to Setup an Unpaid Event with a Donation Option on the Same Page?  (Read 1705 times)

annaleevk

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 3
  • Carpe Noctem!
    • Women in Development, New York
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.48
  • PHP version: 5.2.14
How to Setup an Unpaid Event with a Donation Option on the Same Page?
May 10, 2010, 04:32:08 pm
Is there any way to set up an unpaid event which can capture the # of tickets requested, additional profile info and give them an option to make a donation without having to go to a separate contribution page to do so?
Annalee Van Kleeck
Lyric Systems, LLC
201 951.8711
annalee@lyricsystems.com

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How to Setup an Unpaid Event with a Donation Option on the Same Page?
May 11, 2010, 05:15:40 am
I don't see any way. In theory, you could use a price set with an option of zero dollars as the default and then participants could choose a different option to donate, but CiviCRM doesn't allow zero dollar options. And even if it did, the user is then required still to enter his credit card details, which for a free event will be a deterrent.

There is a way to hack, I mean solve, this problem. Using hook_civicrm_buildAmount one can set an option in a price set to zero dollars. Then using jQuery, one can also hide the credit card section (i.e. if the user has not elected to make a donation by selecting a non-zero option) and also fill in fake values, using 411111111111111 for the card number. Thus the page will submit and CiviCRM will see a valid credit card. It won't actually process any charge because the amount is zero.

Thus the user can register for the event and not pay any money and not be required to enter his credit card details. :)

This system works--I actually did it (in a different context) on a different site.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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 to Setup an Unpaid Event with a Donation Option on the Same Page?
May 11, 2010, 07:33:06 am


how about using a contribution page for this and using # of tickets as a custom field. Include an other amount which is a donation which is optional and can be zero

thanx

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How to Setup an Unpaid Event with a Donation Option on the Same Page?
May 11, 2010, 09:52:33 am
Quote from: Donald Lobo on May 11, 2010, 07:33:06 am
how about using a contribution page for this and using # of tickets as a custom field. Include an other amount which is a donation which is optional and can be zero

And then using hook_civicrm_postProcess to create the participation records?

The only problem is that the user is then forced to enter his credit card details, which will inevitably confuse (if not upset) users who want to register for a free event. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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 to Setup an Unpaid Event with a Donation Option on the Same Page?
May 11, 2010, 09:54:27 am

if the amount is 0, then the credit card details are optional (or does not send you to paypal/google depending on your processor)

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

annaleevk

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 3
  • Carpe Noctem!
    • Women in Development, New York
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.48
  • PHP version: 5.2.14
Re: How to Setup an Unpaid Event with a Donation Option on the Same Page?
May 13, 2010, 01:43:55 pm
Lobo,

Hershel and I have been batting this one about and I'm going back to think through all of issues before we do any custom mods, however, I am wondering about passing login details to a donation page after the event page has been processed?

Currently, I am using the thank you page to ask them to make a donation by going to the donation page.  When I'm logged in, my details auto-fill in both the event and contrib form, however, when I am brand new to the system, it does not auto-fill the donation page.

Is there any way to do this?  We're trying to make it easy for them to give.

Thanks,
Annalee
Annalee Van Kleeck
Lyric Systems, LLC
201 951.8711
annalee@lyricsystems.com

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 to Setup an Unpaid Event with a Donation Option on the Same Page?
May 13, 2010, 02:13:01 pm

hey annalee:

there is no strong link between the two right now (for anonymous users). there will need to be some custom code to link the two flows. I suspect there are a few options here based on your setup

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

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: How to Setup an Unpaid Event with a Donation Option on the Same Page?
June 05, 2010, 08:55:29 pm
Quote from: Donald Lobo on May 11, 2010, 07:33:06 am


how about using a contribution page for this and using # of tickets as a custom field. Include an other amount which is a donation which is optional and can be zero

thanx

lobo


We're actually looking to do something very similar.  Using a contribution page and a # of tickets as a custom field would work, but we would much prefer to use the event-style additional participants that we used for a recent paid event.  I'm interested in looking into  custom coding this, or using a decent workaround.  I haven't done much yet by way of customizing civi, so I'm interested to check the docs to see how to fit the pieces together.

Hershel or Annalee, have you had any further thoughts on the topic?

- Aaron 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How to Setup an Unpaid Event with a Donation Option on the Same Page?
June 06, 2010, 03:01:24 am
No further thoughts. My suggestion above in http://forum.civicrm.org/index.php/topic,13702.msg58569.html#msg58569 is the best idea I have...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • How to Setup an Unpaid Event with a Donation Option on the Same Page?

This forum was archived on 2017-11-26.