I’m creating custom registration code for any new registration record using FHEE__Create__regCode__new_reg_code hook. It works fine and I was able to assign a random number to every new registration.
The issue is that I want that number to be unique and before assigning it to a new registration I need to check all other reg_id(s) within the selected event.
To do that I need to know EVT_ID on the stage when reg_id gets generated.
here is my function where I need it:
function ssoc_reg_code($new_reg_code, $registration) {
// here I need to get the value for EVT_ID of the current event
// so I could pull out all existing reg_id(s) for the current event and compare it to a new reg_id
The support post ‘EVT_ID value of the current event during checkout’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.