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) »
  • planing a free conference with workshops
Pages: [1]

Author Topic: planing a free conference with workshops  (Read 865 times)

gislars

  • Guest
planing a free conference with workshops
August 08, 2009, 10:53:10 am
Hello,

I'm evaluating civicrm (2.2.8 ) with drupal (latest stable) for organizing  an conference.
The conference itself is free but offers also workshops you have to register and pay for.
The workshops are limited because of room size while the conference has no limit.
There are several parallel tracks of workshops, so you can't book any combination.(you can but it makes no sense...)

With my current civicrm experience (about 1 week) I was able to create an event. For the workshops I created
a price set with field type checkbox for each workshop. Thats working fine, but I want to prevent overbooking.

My questions are:
- is there a way to configure a limit and recalculate the available seats for each workshop?
(e.g. workshop 1 has 30 seats, workshop 2 has 25 seats...)

- is there a way to implement some kind of input validation?
(e.g. if workshop 1 is selected, workshop 2 isn't available)

Well... I'm not familiar enough with civicrm, but I also couldn't find this use case in the forum. Although I think
its a common one... did I oversee something?

If the above use case isn't doable with current civicrm, I'm interested in pointers to documentation or source code.
When it doesn't take to long I can imagine to  create a patch... but I can't promise anything yet. ;)

Thanks in advance for any help!

gislars

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: planing a free conference with workshops
August 08, 2009, 08:03:51 pm

you can do both using the hook_civicrm_validate hook. You can search the forums/wiki for examples and documentation

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

civitest.module.sample should have a sample example

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

gislars

  • Guest
Re: planing a free conference with workshops
August 10, 2009, 12:30:12 am
Thank you. I'll look into it


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: planing a free conference with workshops
August 13, 2009, 06:23:06 am
Quote from: gislars on August 08, 2009, 10:53:10 am
- is there a way to configure a limit and recalculate the available seats for each workshop?
(e.g. workshop 1 has 30 seats, workshop 2 has 25 seats...)

- is there a way to implement some kind of input validation?
(e.g. if workshop 1 is selected, workshop 2 isn't available)


I did something similar, using a custom template and adding a few lines of jquery to disable/enable checkboxes depending on where the user clicks. If I recall properly, some variables had to be added and make available to the template (to add an id to each checkbox), but I think I commited all the needed modifications, so should be ok (YMMV).

Quote from: gislars on August 08, 2009, 10:53:10 am

Beware that you can't always avoid overbooking/underbooking:
- if you prevent before the payment, you can have someone that 'takes' the latest seat but don't pay online on paypal, so the next guy can't register for it, even if it isn't paid
- if you prevent the booking after the payment, you can have to people that register to the event at the same time and both order the last available seat

Suggestion: from a usability point of view, it's anyway better not to let a participant choose an option that isn't available (ie disable the checkbox on the registration form, instead of stopping on the registration validation and tell them they choose something that isn't available anymore), and you will have edge cases to be handled manually anyway

Let us know how it goes
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • planing a free conference with workshops

This forum was archived on 2017-11-26.