Support

Home Forums Event Espresso Premium Custom Registration Code (2)

Custom Registration Code (2)

Posted: May 4, 2015 at 4:22 am


Michael L

May 4, 2015 at 4:22 am

Hi there,

My client wants a custom registration code. Is there functionality for this in EE4?
They want firstname-lastname-randomnumber

Thanks,
Martin


Garth

  • Support Staff

May 5, 2015 at 12:25 pm

Hi Michael,

How are you today?

What are you trying to do with that number. Because you could format your tickets/confirmation emails in that way using the messages shortcodes. In this case I’d use the EE registration ID or registration number for the random number.

Does that help? Let me know if I can do anything else for you.


Michael L

May 6, 2015 at 7:27 pm

Hi Garth,

Could you provide me with a bit more information?
Where do I find the EE registration ID and how do I use it?

Thanks,
Michael


Josh

  • Support Staff

May 7, 2015 at 9:19 am

Hi Michael,

You’ll find the EE registration code and ID in the registration list table. The reg code is outlined in pink in this screenshot, the ID is in the ID column.

How you use it depends on where/how you want to display it. For example if you want to display a custom registration code in the invoice you’d add something like this to the invoice template:

[FNAME]-[LNAME]-[REGISTRATION-CODE]


Michael L

May 7, 2015 at 8:45 pm

Hi Josh, sorry I can’t see that screenshot.

Thanks, Martin


Tony

  • Support Staff

May 8, 2015 at 5:05 am

Hi Martin,

You should be able to view this one – http://take.ms/Qtql1


Michael L

May 14, 2015 at 6:56 pm

Hi there,

My client really wants to change the Reg code. Where and when does the Reg code get generated, and is it possible to customise its generation?

Also, I notice that the Reg ID consists of two numbers, one over the top of the other, in your screenshot. What do the two numbers mean?

Many thanks!
Martin


Dean

May 15, 2015 at 4:15 am

Hi,

The reg code is made of 3 sets of numbers. Tony’s screenshot is from a smaller screen so it looks like they are on two lines, but the reg code is:

829-291-137e8bf

This breaks down as:

Transaction ID – Ticket ID – random characters based on the reg_url_link

The filter FHEE__EE_Registration_Processor___generate_reg_code__new_reg_code is what is used to modify the reg code.

That filter is found in /wp-content/plugins/event-espresso-core-reg/core/business/EE_Registration_Processor.class.php

Here is an example (not supported, just an example!) where the reg code is changed to start at 1 and increment: http://pastebin.com/VQ1YtbEf

The support post ‘Custom Registration Code (2)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso