Posted: April 27, 2021 at 7:09 pm
Was wondering if there was a way I could post some data from a custom form on the website so that it creates an approved attendee record. the main reason is so that
The idea is that from time to time we want to invite a VIP along to an event that has a free ticket and all we need to collect from them is a method to post a first-name, last-name, email address (hidden fields – event_id, ticket_id) to EE so that it will create an approved attendee record for an event.
Possible, yes, but you are basically building your own checkout process which is not something we have an example of doing.
So you could use the Model System within a custom callback for your form to do this but EE doesn’t have this functionality built-in.
If it were me I’d look into how the EE attendee importer add-on (which basically just takes a CSV of data and created registrations from it) imports registrations as there is a fair bit involved in creating all of the data needed (see HERE) and then work from there.
Doing this correctly will take some understanding of how EE_Registrations work within EE, another option is to just use a form with the details you mentioned above (including the hidden ticket/event id) which then just emails the event admin who then creates the registrations manually within the admin.