Posted: May 12, 2021 at 7:39 pm
|
When an event ticket is purchased using an email that is not logged in, they are not being displayed to that user when we use the shortcode [ESPRESSO_MY_EVENTS]. I can, however see all events purchased by that user when I go to /wp-admin/admin.php?page=espresso_registrations&action=edit_attendee&post=3842&edit_attendee_nonce=e75de3d949. I can send screenshots if you need. In my test, I have 12 ticket purchases under a specific attendee email. 2 of them were done while logged in as that user. I did check wp_EE_Attendee_ID for the user and it is set to the same attendee ID that is showing the 12 ticket purchases in admin. In admin all 12 are showing, however when using the ESPRESSO_MY_EVENTS, only two show for that user. Any help you can provide would be greatly appreciated |
Hi there, Hmm, strange. Can you add some screenshots of this, please? You can mark your reply private so only EE staff can view them. |
|
|
I don’t see a way in the reply form to add screesnshots? |
You’ll need to host the image and post the link here: https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots Or email them to support[at]eventespresso.com |
|
|
I have emailed you the screenshots |
Hmm, yeah that’s a strange one. So that page in the screenshot is using the default No other modifications at all to that template? Any code hooking into On a new temp page (just to save you having to edit that original one), add:
Do all registrations load there? |
|
|
Hi Tony I verified and we do not have any code hooking into FHEE__Espresso_My_Events__getTemplateObjects__query_args nor do we pull in the template to override it. We do have CSS to hide the location column and the legend. I did place [ESPRESSO_MY_EVENTS template=simple_list_table] on another page and only the two events showed up on that page (with the locations column and the legend this time). |
Events or registrations?
So you still only see 2 rows on the simple list table? — Where those registrations added as ‘normal’ via Single Page CheckOut (SPCO for short)? Can you use something like Query Monitor or Debug Bar to view the query and post that here please? EE uses the ATT_ID to pull registrations linked to that ID as long as the event does not have a status of auto-draft or trash so unless the events have been trashed (they haven’t been, right?) the registrations should display if they are linked to the same contact ID (ATT_ID). Can you link me to the site so I can take a look at this? |
|
|
I verified that all of the events have a status of published and the registrations are all approved. The query monitor did not help at all. It would not show me queries in regards to the specific email I am looking for. These tickets were all purchased using the [ESPRESSO_CHECKOUT] on the checkout page. The only difference was 1 ticket was purchased where the attendee email and the logged in user was the same and the other ticket was purchased where the user was not logged in. We are still on a development site, I can send you a separate email with information on accessing the site. |
Ok, thank you.
Email? The query doesn’t use email, it uses ATT_ID so if your search for email you won’t find any queries. To find the query to pull the events, you’d use Query monitor and look in the Queries section. Under caller select The first query listed there should show That’s the query used to pull the events, everything else is based on what is returned but that query.
EE would show a message stating the user needs to log in if it found a user in the system already, I’m assuming you’ve disabled that with a snippet?
Sure, I’ll take a look. To send login details you can use this form: https://eventespresso.com/send-login-details/ Note that we generally require a support token to work directly on a site but I can take a look at the queries and see if anything stands out. |
|
|
This reply has been marked as private. |
|
This reply has been marked as private. |
|
I think I may have found the issue. We are using different names for the same email and that is creating multiple attendee id’s. I confirmed this by purchasing 3 more tickets using the same email address but different user names. I then checked the db and I can see that 3 more attendee records were created in the db. Query ran: It would appear that the ESPRESSO_MY_EVENTS only return events for one of those attendee ID’s |
Yeah, that’s expected, every unique ‘attendee’ in EE will create an EE_Contact. In your opening post you have this:
If the 12 registrations are linked to the same EE_Contact, they should be showing in the My Events section but it sounds like those aren’t assigned to the same contact? I’m not show why they are showing in the admin if they aren’t linked to that contact.
That’s correct. The My Events section shows registrations linked to the EE_Contact (the wp_EE_Attendee_ID value) that is linked to the current WP_User. |
|
|
How can I see all tickets purchased by a particular email? We have users who may purchase multiple tickets for say their family. They will give us one email for all attendees but different names for each member of their family. I need the user to be able to see all tickets they bought regardless of the name used. |
That’s not something we have available, the My Events add-on will show registrations linked to the EE_Contact pulled from the WP_User. However, if you want to pull the registrations yourself, you can do so using something like:
Just switch out the value to be the current user’s email. |
|
The support post ‘ESPRESSO_MY_EVENTS not showing all ticket purchases’ 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.