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) »
  • Confirmation number?
Pages: [1] 2 3

Author Topic: Confirmation number?  (Read 6745 times)

mcnamedia

  • Guest
Confirmation number?
September 25, 2008, 01:58:33 pm
I'm on day 2 of experience with CiviCRM. What a great system!

I'm curious to know if there is an addon that will generate a confirmation number for CiviEvent registration?

Thanks,
Greg

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Confirmation number?
September 25, 2008, 04:27:13 pm
Interesting question - and now that you've asked it I'm pretty surprised this hasn't come up before (at least not that I'm aware of). CiviEvent does assign a unique Participant ID to each person that registers for an event - BUT we do not expose this value anywhere. It's not included in confirmation emails, not displayed on screens, and isn't searchable.

This Participant ID is an integer - and it would be pretty easy to add it to the receipts - but I suspect you'd have other uses / needs as well (i.e. possibly being able to search by "confirmation #", etc. Would be good to post more details about how you would use it, any special characteristics it needs to have etc. and see what other folks think.
Protect your investment in CiviCRM by  becoming a Member!

mcnamedia

  • Guest
Re: Confirmation number?
September 25, 2008, 06:28:25 pm
Well, this may be a start then. My first thought is that the confirmation number is something the recipient can feel good about. Getting that number means they have confidence in their registration.

Maybe the quickest/easiest way would be to add it to the email receipt. I set up my system so that both the organizer and the registrant receive a copy - then both parties have the number. That's quick and dirty...

I like your suggestion about being able to search for it. It would also need to be a longer number (I haven't looked but figure that the participant ID number starts at 1). So it would have to be 00001 or similar - maybe start it higher as I'd feel like I was going to be the only one there if I registered and received such a confirmation number. Maybe it has to be random?

Someone with call-center experience has ideas? The phone companies always give me a confirmation order.

mcnamedia

  • Guest
Re: Confirmation number?
September 30, 2008, 05:46:19 am
Dave, can you give me a heads-up on how to include the Participant ID in the confirmation mailings? I got some more feedback from my client. This number should be sequential but not start at 1.

So if I sandwiched the participant ID between something like this CVM200900155, where the 001 is the participant ID, that would work great. I would definitely suggest modifying CiviEvent to have this added/searchable in the database.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Confirmation number?
September 30, 2008, 01:02:56 pm
Assuming you can "construct" the value by adding constants to the pariticipant ID - try creating a custom copy of this tpl and adding it (not sure if participant ID is avail to the tpl - but should be - you can also add {debug} as a line in the tpl and when the email is spit out it will have all available variables.

templates/CRM/Event/Form/Registration/ReceiptMessage.tpl
Protect your investment in CiviCRM by  becoming a Member!

mcnamedia

  • Guest
Re: Confirmation number?
October 09, 2008, 10:26:10 am
I couldn't find the participant ID... I did try ($event.participant_listing_id} but I'm guessing that's a different number, since it shows up as 1 everytime. This would work nicely on the email receipt if I can just find that participant ID.

Got the listing_id from debugging the template but didn't see any others that might be useful.

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: Confirmation number?
October 09, 2008, 11:51:26 am

1. u will need to expose this in the php code.

CRM/Event/Form/Registration.php, line 544

$this->assign( 'registerByID', $participant->id );

2. In the smarty templates you can use $registerByID

Note that this is not complete if you allow multiple folks to register

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

mcnamedia

  • Guest
Re: Confirmation number?
October 09, 2008, 11:54:44 am
Lobo you are a freaking magician. I will try this out. Thanks again!!!

mcnamedia

  • Guest
Re: Confirmation number?
November 04, 2008, 07:58:37 am
Ok I tried it out but am missing a couple of things.

What do you mean by expose the code?

In the receiptmessage.tpl file, I inserted a {ts}Confirmation number:{/ts} {$registerByID}

but nothing shows up...


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: Confirmation number?
November 04, 2008, 10:22:20 am

Did u make the changes in the php code as described in my prior post? if not, please add and see if it works

if not, you might want to get some help from someone local who is familiar with php/smarty to help you out

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

mcnamedia

  • Guest
Re: Confirmation number?
November 11, 2008, 08:04:05 am
Hi Lobo, I re-read your instructions after your last post. I had thought it was the same line of code that is already at line 544 because they are so similar. So I added it and it works like a charm.

Thanks!
Greg

asupcb

  • Guest
Re: Confirmation number?
November 20, 2008, 12:33:51 pm
What are the chances of this getting added for the rest of us non-programmers?  This would be really nice functionality to have, even if it was simple and couldn't be randomized easily.  I would love to be able to do this with our upcoming events.

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: Confirmation number?
November 20, 2008, 01:57:06 pm

can you file an issue in the issue tracker and point to this forum post. We'll consider it for inclusion in a future 2.x/3.x release

If this is important to you/your org, you might want to consider either hiring someone to do it and/or sponsor the development of the feature.

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

sawjer

  • Guest
Re: Confirmation number?
November 24, 2008, 02:52:10 am
Quote from: Donald Lobo on November 20, 2008, 01:57:06 pm

can you file an issue in the issue tracker and point to this forum post. We'll consider it for inclusion in a future 2.x/3.x release

If this is important to you/your org, you might want to consider either hiring someone to do it and/or sponsor the development of the feature.

lobo




I will need this feature as well. The reason is delayed payment by Bank or Post Giro. There I need a clear reference that links the participant to the payment report from bank or post.
To me the number needs to be structured: <Event Short Name>-<Event-number> -<Registration_number><checksum>

Reference number: <event.title>-event.id-<participant.id><Checksum>

I assume the event.id and participant.id are unique for distinguishing same person participating different events.

I would be glad for some tips on how to add a hack, as I need to do it in the next few days.

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: Confirmation number?
November 24, 2008, 08:12:49 am

Check the earlier posts on this topic about how to add the "registerByID" which is the participant.id

i'm pretty sure that event title and id are already exposed to the smarty template, so you can use that

you can potentially inline some php within the smarty template to generate your checksum

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

Pages: [1] 2 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Confirmation number?

This forum was archived on 2017-11-26.