Posted: April 1, 2019 at 10:01 pm
|
Hi, How can we extract the event details as well as the ticket and QR code? Thanks. |
Hi there, We’ll need more details to help provide any useful info here. For example, what object(s) do you have currently? Have you been using the WP User integration add-on to link the user account to the user registrations? If you basically want your own custom version of the My Events table from the WP User integration add-on you could just load your own custom versions of the templates to change that output but ‘personalized’ above doesn’t really give us enough of an idea of which direction your are heading. |
|
|
Thanks Tony for your response. We have created 2 events, the first 4-day event has a ticket containing a QR quote for us to record the user’s attendance via the EE Mobile App. The second event has radio-button question listing 8 topics for the user to select which he wants to attend and a Reason text field should he choose not to attend. The “personalized” page is meant to conveniently show information pertaining to the logged in user, such as 2) The topic and Reason, if any, that the user has previously registered via the second event. Hope this clarifies. Thanks. |
Have you been using the WP User integration add-on to link the user account to the user registrations? The above sounds very specific for your use case and isn’t something we examples available for, we can show you how to pull specific registration questions using the EE_Registration object models but I don’t think you have the registrations yet, correct? The QR code is generated by the browser within the message system, generating that on the page itself will require you load the JS library used by the ticketing add-on and a fair bit of custom development. Again we don’t have any examples of doing this as it’s not something EE supports at this time.
Those a registration specific rather than event based, so you’ll need the registrations for the user and if you’ve been using the above add-on to link registrations to the WP user account you can pull them in, but if not how are you planning on pulling the registrations? |
|
|
Hi Tony, Is there any documentation for the EE_Registration object model? If embedding the QR within our page is challenging, is it feasible to construct the URL pointing to the logged-in user’s ticket (like that embedded in the registration email notification)? |
The way registrations work with EE is they generate an EE_Contact and link the registrations made to that contact (it will also check for an exisitng contact that matches the registration details passed before generating a new one and if one is found it links to that contact rather than a new one). The WP User intergration assigns the User account to the EE_Contact, not the registrations themsevles. What that mean is to pull the registrations for a specific user, you need the EE_Contact (Attendee) assigned to that WP User profile, you can do that using:
If there is an attendee linked to the current user, From there you can do:
To pull all of the registrations from that attendee. Now you’ll have an array of EE_Registration objects to do whatever you with to do with them. I’d recommend taking a look over how the WP User integration add-on pulls the details it needs as it’ll show you most of what you need.
Theres developer documentation on the model system here: https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System Although we don’t have documentation specifically for each model.
Yes and that’s relatively simple to do once you have the registration object, I have an example of adding a ‘Download your tickets’ link to the thank you page which shows what you need here: |
|
The support post ‘Extraction of a user registered events’ 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.