Skip to content

progressivetech/net.ourpowerbase.qrcodecheckin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Checkin

QRCode Checkin allows you to send an email that contains a scanable code to the registered participants for your event.

Your registration workers can use any freely available QR Code scanning software on their phones to scan the code and open the encoded web address on their browser.

When they do, they will get the status information about the registration, for example:

Registered attendee with button to update status

With one click, the registration worker can change their status from registered to attended.

The extension is licensed under AGPL-3.0.

Setup

After enabling, go to Administer » CiviEvent » QR Code Checkin Settings:

QR Code Scan Action Configure the behavior for what occurs when a QR code is scanned. Show Button will provide an "Update to Attended" button. Automatically Check In will update the participant status to "Attended" without further input.

Send all QR codes in one email If Register Multiple Participants is enabled on the event, enable this setting to send all QR codes in the email of the main participant.

Usage

Once enabled, each event configuration screen will have two new checkboxes underneath the existing "Is this Event Active?" checkbox:

Checkbox to enable QR Code checkin for this event

Add QR Code to confirmation emails, Enable QR Code tokens for this event The first option will automatically add the QR code to receipt emails. The second option adds a token to the token browser, which can be inserted into a mailing.

These settings can be set on any number of events at a time.

If tokens are enabled, there will be a token for each QR Code-enabled event that:

  • is set to active
  • allows online registration
  • has a start date later than "now" (ie. at the time of composing your email)

Same email that include QR Code checkin token

Recipients will get an email that includes the QR Code as an embedded image:

User's view of the QR Code in their email

Now onto the event... At the event, be sure to have all registration workers have a functioning QR Code scanner on their phones (modern iPhones and Android phones should have one built into the camera - so no extra software necessary).

Next, the registration worker should login to CiviCRM on their phones.

Since registration workers are often volunteers who should not have full access to your CiviCRM installation, you can create a role for them that must minimally have the following permissions:

  • check-in participants via qrcode (this permission is provided by the extension)
  • edit event participants

When a registration worker scans a QR Code, they will see a web address and be given the option to open it in their web browser.

In their web browser, they will be presented with clear information about the participant status, for example:

Registrant status with button to updat

The registration worker can simply click the button to switch them to attended and off they go.

If they have already checked in and have been coded as Attended (uh oh - someone re-using a registration qr code?), you will see:

Registrant status with button to updat

If they have any other status, it will be displayed in red:

Registrant status with button to updat

Embed FormBuilder forms

You can embed FormBuilder forms on the QR Code checking landing page to show your staff additional information about the registration.

In the FormBuilder main settings tab, set Expose To to QR Code Landing Page. You can embed an unlimited number of forms.

While embedding submission forms is supported, only search forms can be filtered to show information specific to the event/participant.

To filter an embedded SearchKit query to the participant and/or event, go to the FormBuilder tab for the search. Under Filters, select Participant Event with filter type of Event being Viewed, and/or add Participant Existing Participant with filter type Participant being Viewed.

Screenshot of FormBuilder settings displaying filter location

Tokens

If enabled, tokens are generated for each event configured to use QR Codes. There are two tokens per event you can use:

  • qrcodecheckin.qrcode_html_ - An HTML block to embed into your email containing the QRCode image and supporting text.
  • qrcodecheckin.qrcode_url_ - contains the direct URL to the QRCode image on the server.

When composing your email the tokens are searchable by your event's name (you don't need to know the event ID).

Changing contents of QRCode / Tokens

If you wish to override the values of the qrcode tokens / change the contents of the QR Code you can implement hook_civicrm_qrcodecheckin_tokenValues. You'll need to iterate through an array of possible tokens as they are dynamically determined by virtue of the events that have QR support enabled.

eg.

function myextension_civicrm_qrcodecheckin_tokenValues(&$values, $contact_id, &$handled) {
  foreach ($values as $key => $value) {
    $event_id = preg_replace('/\D/', '', $key);
    $link = 'http://example.org/qrcodes/' . $event_id . '/' . $contact_id . '/myqrcode.png';
    if (strpos($key, 'url')) {
      $value = $link;
    }
    else {
      $value = '<p><img alt="QR Code with participant details" src="' . $link . '">Overirrden HTML</p>';
    }
  }
  // If we handled the generation of the QRCode and URL set $handled=TRUE
  $handled = TRUE;
}

Requirements

  • PHP v8.2+
  • CiviCRM 6

Installation (Web UI)

This extension has not yet been published for installation via the web UI.

Installation (CLI, Zip)

Sysadmins and developers may download the .zip file for this extension and install it with the command-line tool cv.

cd <extension-dir>
cv dl net.ourpowerbase.qrcodecheckin@https://github.com/progresssivetech/net.ourpowerbase.qrcodecheckin/archive/master.zip

Installation (CLI, Git)

Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.

git clone https://github.com/progressivetech/net.ourpowerbase.qrcodecheckin.git
cv en qrcodecheckin

Known Issues

None so far.

About

QRCode Checkin allows you to send an email that contains a scanable code to the registered participants for your event.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors