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) »
  • Event registration - limited free events
Pages: [1]

Author Topic: Event registration - limited free events  (Read 1047 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Event registration - limited free events
February 27, 2009, 01:03:21 am
Hi,

Just wanting someone to say if they think this is the best approach

I have a request to allow certain types of users a fixed number of free event registrations. I am thinking that the best way to implement this is to edit the .tpl to add some extra logic to it.

I would need to create a custom data field on the contact as to the number of free events they have used and to the member type as to how many are allowed and then code the .tpl to check whether they have used less than they are entitled to before deciding whether to present the normal price options.

I haven't looked at the code yet but does that seem conceptually the right approach?

Eileen
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

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: Event registration - limited free events
February 27, 2009, 09:27:52 am

i'm assuming that this is in 2.2

if so, you might want to use the buildAmount hook and based on the below custom fields you can include / exclude the "free registration" option

so most of the code will be in php (better) and you avoid any hacks :)

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: Event registration - limited free events
February 27, 2009, 09:34:20 am
It's 2.1 at this stage - not sure what the plans are to change it
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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Event registration - limited free events
February 27, 2009, 09:59:53 am
Actually it is 2.2 ;-)

And the question I would add to this is can the 'free events' countdown automatically so that when the organisation has used up its free places it automatically gets charged for future ones. That may have been clear from Eileen's description but thought I would put it another way.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Event registration - limited free events
February 10, 2011, 06:28:34 am
Hi, Eileen and Pete.

Very old post to dig up (hope you're watching), but did you get anywhere with this? It's something I'm looking into myself...

Thanks as ever,

RJB

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event registration - limited free events

This forum was archived on 2017-11-26.