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) »
  • CiviEvent Payment / Registration Question
Pages: [1]

Author Topic: CiviEvent Payment / Registration Question  (Read 1349 times)

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
CiviEvent Payment / Registration Question
August 23, 2010, 07:41:02 pm
I am hoping someone can help me sort this issue out. 

I currently have a number of sample events up and running in a CiviEvents calendar in Drupal.  The payment processor for paid registrations is working and all is well, except that I need payment to be contingent upon membership status.  I need to set the events calendar so that non-members (site visitors not logged into the Drupal site who have not purchased membership) need to pay to attend events while logged in members can register for these same events for free. 

I'm not sure what would be the best way to do this.  I am thinking the easiest way would be to set two price sets (one set at $20 and one set at $0.00 for members) and then hide the $0.00 option from unauthenticated users and make it visible only to the logged in members, but in the visibility field in the price set screen I only see two options -- public or admin visibility -- even though i have linked "authenticated users" with the contact group every new member is automatically added to. 

Can anyone offer any advice about how to set the visibility for the $0.00 for authenticated users or any better ideas about how to set up free civievent registration for members and paid registration for non-members for the same events?

Thank you so much for any help!

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: CiviEvent Payment / Registration Question
August 23, 2010, 09:58:20 pm

might be easiest to setup two event registration forms. one for members which is free and the other for site visitors with a fee

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviEvent Payment / Registration Question
August 24, 2010, 03:08:06 am
Depending on your level of comfort with coding you could also customise this using a hook. There is an example in the sample code that is a really good starting point for this sort of requirement - if this sounds like you start by reading about hooks in the floss manual
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviEvent Payment / Registration Question
August 24, 2010, 03:38:23 am
Or if you "trust" the visitors enough, you could simply override the template and add a test if the user is not authenticated, and use jquery to hide the free option.

Meaning that it's easy to "hack" and set the price to free anyway, but as it's for an event, might be that people won't register for free even if they aren't members cause they will get caught cheating at the door ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: CiviEvent Payment / Registration Question
August 24, 2010, 07:33:24 am
Quote from: Eileen on August 24, 2010, 03:08:06 am
Depending on your level of comfort with coding you could also customise this using a hook. There is an example in the sample code that is a really good starting point for this sort of requirement - if this sounds like you start by reading about hooks in the floss manual

priceset does not have a hook as yet. so doing this via a hook is possible but significantly harder (the buildform hook will need to go in and do some major fix on the form elements etc)

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

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
Re: CiviEvent Payment / Registration Question
August 24, 2010, 07:34:56 am
Hi Lobo -- I wasn't aware that I could set up two separate registration pages for the same event.  Would I bet able to link these two pages to the same civievent or would I have to make two identical events with the same name and information and set one as free and one as paid?

Thanks!  

(And thank you to everyone else who offered suggestions -- I was looking into hooks as well but I wanted to see if there were a simpler solution first).


Quote from: Donald Lobo on August 23, 2010, 09:58:20 pm

might be easiest to setup two event registration forms. one for members which is free and the other for site visitors with a fee

lobo

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: CiviEvent Payment / Registration Question
August 24, 2010, 07:36:59 am

u'll need to create two identical events that differ in the payment

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CiviEvent Payment / Registration Question

This forum was archived on 2017-11-26.