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) »
  • Limiting Multiple Registrants 3.1.1
Pages: [1]

Author Topic: Limiting Multiple Registrants 3.1.1  (Read 787 times)

AkronAA

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
Limiting Multiple Registrants 3.1.1
February 09, 2010, 06:19:15 am
We are considering allowing multiple registrations.  One issue we have is the committee responsible for this wants to limit this to 6 at one time.  Is there a way to do this?

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: Limiting Multiple Registrants 3.1.1
February 09, 2010, 08:01:36 am

yes, use the validate hook to enforce the max limit on number of additional registrations

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmvalidate

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

AkronAA

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
Re: Limiting Multiple Registrants 3.1.1
February 09, 2010, 08:48:19 am
Thanks, I can do the hooks.  One last question on this topic, can I create a custom registration template and only populate the dropdown with 1,2,3,4,5,6?  Or, is the best way to just use the hooks?

AkronAA

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
Re: Limiting Multiple Registrants 3.1.1
February 11, 2010, 12:38:25 pm
The code for this is in Register.php and is hard coded for 10, with comments included about maybe needing to change that to allow custom numbers of participants.  So, I changed the code from 10 to 6, like we need in Register.php, and voila, it does as needed for this event.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Limiting Multiple Registrants 3.1.1

This forum was archived on 2017-11-26.