We need to display how many spots are left for registration on the public event registration page. Is there a way to do this?


If you haven't done this already - I recommend customising the template. I have experience of doing this. You'll want to create a templates override file, and then embed some PHP that accesses the remaining places. It's fairly straightforward. If you want me to go into more details then please message me!

  • That would be great, we're definitely interested. How do I message you on this forum?
    – pixelshark
    Feb 28 '16 at 13:48
  • Email me at john@civifirst.com and I'll get back to you :)
    – JohnFF
    Feb 28 '16 at 21:28

There was an old recipe at https://civicrm.org/blog/chrischinchilla/displaying-remaining-participant-slots-on-events saying

{crmAPI var="ParticipantS" entity="Participant" action="get" sequential="1" event_id=$event.id }
// Gets the current particiapnst registered for the event

{* $x=$event.max_participants, $y=$ParticipantS.count *}
// Assigns our variables for the calculation below

Remaining - {math equation="x - y" x=$event.max_participants y=$ParticipantS.count}
// Subtract the current particpants from the maximum.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.