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) »
  • Registered vs. Any other status
Pages: [1]

Author Topic: Registered vs. Any other status  (Read 3159 times)

bchoc

  • Guest
Registered vs. Any other status
March 12, 2008, 04:28:07 pm
Greetings,

I've observed that, as far as Participant Status is concerned, you are either "Registered" or anything else = "Cancelled".

For example, then, if you create a "Confirmed", "Reserved spot", or "Payment pending" status, it will not count toward attendance as it is always considered not-registered.  This allows the number of attendees to exceed the number of spots.

There is apparently no way in the GUI to tell CiviEvent whether a given status should be a registered or unregistered status.  I also haven't found it in the DB ... so I'm wondering if I'm missing where there is a flag which indicates whether a status should be counted in attendance or not.  OR, is this logic hard-coded in the PHP somewhere?   :-\

Thanks,
Brian

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: Registered vs. Any other status
March 12, 2008, 06:20:40 pm

Yes this is currently hard coded as you've figured out :)

In a 2.x release we should give people the option to let us know what "participant status types" should be considered a s "attending" an event. Thus person A might decide registered/reserved/pending while person B might only pick registered.

The best way to ensure this makes it into 2.1 is to check the code, figure out places that need fixing and submit a patch (along with an issue). We'd be happy to get you started on this on IRC

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

bchoc

  • Guest
Re: Registered vs. Any other status
August 08, 2008, 04:09:13 pm
I know it's been a few months, but I finally sat down to make this happen (just after we overbooked a class, of course) and thought the answer might benefit future searchers.

Hard-coding different registrant statuses to count toward attendance full appears pretty simple.

First, check the civicrm_option_value table to find the value of the status you want to add.  1 - Registered and 2 - Attended are, by default, coded to count towards attendance.  Nothing else does.  In my case, I wanted to add 5 - Awaiting Payment.

Then go to civicrm/CRM/Event/BAO and edit Participant.php.  The function to be edited is cleverly called "eventFull"; for me, it starts on line 309.  All that needs to be changed is a little bit of the query, "AND civicrm_participant.status_id IN ( 1, 2 )".  In my case, I just add a 5 to make that line "AND civicrm_participant.status_id IN ( 1, 2, 5 )", and now "Awaiting Payment" will count in event full checks.

As far as I know, that's it.  It's not as elegant as a nice GUI option, but ... eh.  It works.
Brian


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Registered vs. Any other status
August 08, 2008, 05:31:27 pm
Thanks for that - I'll probably implement it.

I have been thinking about this but I probably only want people to be able to hold spots without paying for a limited time. I could probably put that in place sufficiently by editing your sql but a full implementation would probably involve automatically changing the status  after a configurable number of days and triggering an e-mail if that happened. In which case we'd probably have a waitlist status that they got downgraded to. Which all gets fairly complicated.

I suspect that if people were able to create a waitlist registration for a full event then the rest would be managed manually.

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Registered vs. Any other status
August 08, 2008, 06:13:34 pm
2.1 includes the ability to configure which statuses are "counted" as registered (i.e. counted against the Max Participants):

http://issues.civicrm.org/jira/browse/CRM-2877

There's a new field called "Counted" when editing and viewing Participant Statuses in the Admin section.
Protect your investment in CiviCRM by  becoming a Member!

bchoc

  • Guest
Re: Registered vs. Any other status
August 11, 2008, 08:58:47 am
Dave --

I read about that new feature, and I saw it as I poked around in the alpha.  (Yay!)  Obviously, my suggestion above is for people who are on 2.0 (or perhaps earlier).

No counting different roles differently, yet, though.  That's far easier to work around however.

Brian

bchoc

  • Guest
Re: Registered vs. Any other status
August 11, 2008, 02:12:59 pm
Eileen--
I would love such a workflow for event registrations, with expiring statuses.  For that matter, email notifications when people registered with the "pay later" option would be a start.

Alas, not to be I think.  Civi would have to be substantially hacked to make that happen, which would be a pain to reproduce when upgrading.
Brian

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Registered vs. Any other status
August 11, 2008, 02:20:50 pm
Yes, it's quite a big change but having registration types that can register in a full event and not be subject to payment would be a start (i.e. waitlist, speakers etc). I haven't checked this on the sandbox yet but I don't think it was on the roadmap.

I guess there would have to be the ability to offer people a chance to waitlist for a full event too.
« Last Edit: August 11, 2008, 02:32:42 pm by 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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Registered vs. Any other status
August 12, 2008, 10:48:57 am
Quote from: bchoc on August 11, 2008, 02:12:59 pm
For that matter, email notifications when people registered with the "pay later" option would be a start.

Email notifications for "pay later" registrations is part of the 2.1 release.

Based on the discussion below, I've added these feature candidate items for consideration in the 2.2 roadmap:
* Wait-list management: Allow people to register in "Wait-list" status if event is full - and email them with link to come back and complete / pay for their registration if a space opens up. (This could use similar hash mechanism as the automated Pledge Payment reminder functionality.) See http://forum.civicrm.org/index.php/topic,2712.0.html for use case info.
* Expire pending (pay-later) registrations after NN days (cron job could be used to change status from Pending to Cancelled and send cancellation notification email).
Protect your investment in CiviCRM by  becoming a Member!

bchoc

  • Guest
Re: Registered vs. Any other status
August 12, 2008, 02:53:54 pm
Dave--

It's possible ... and this may be outside the scope of things ... but an expiration might make sense as part of a broader, general-purpose workflow queue system.  Way beyond this simple process, but something I wonder if maybe is in the pipeline for Civi 4.9 or something.   ;)

Brian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registered vs. Any other status

This forum was archived on 2017-11-26.