Home › Forums › Calendar Products › Events Calendar PRO › 4.2 Update Causing Attendee List to only show first 10
- This topic has 11 replies, 3 voices, and was last updated 9 years, 9 months ago by
Josh.
-
AuthorPosts
-
June 13, 2016 at 8:28 am #1126134
Ryan
ParticipantHey Guys,
Circling back to this thread (https://theeventscalendar.com/support/forums/topic/organizer-aka-merchant-dashboard/) — after the upgrade to 4.2 bot the avatars and the attendee list I’ve created are now only showing the first 10 entries.
I changed the default ‘posts’ to show in the WordPress settings thinking it might just be defaulting to the normal WordPress posts setting and that didn’t change anything.
Is there a pre_get_posts or something I can alter to make that query show all instead of just the first 10?
Thanks!
Matt
June 14, 2016 at 7:57 am #1126690Josh
ParticipantHey Matt,
Thanks for reaching out to us!
I took a look at the source here and it appears that we have things set to show 20, however you can try the “tribe_tickets_plus_attendees_list_limit” filter to increase the number that gets pulled.
Let me know if that filters works for you on your template.
Thanks!
June 14, 2016 at 9:32 am #1126764Ryan
ParticipantHey Josh,
I put the following filter in place and all it did was remove the little “+” that shows to expand to show more attendees, but it was still only showing 10.
//TEC - Set number of attendees to show in attendee list function wd_attendee_list_limit($limit) { $limit = 50; return $limit; } add_filter('tribe_tickets_plus_attendees_list_limit', 'wd_attendee_list_limit');I deployed a staging environment and activated a the default 2016 theme and the issue persists. Here is a link to an event on the staging environment showing only 10 of the 30 sales:
http://pondhole.staging.wpengine.com/event/fireworks-cruise-3/
I’ll share my system info in the next post if that helps at all.
Thanks!
Matt
June 14, 2016 at 9:33 am #1126766Ryan
ParticipantThis reply is private.
June 16, 2016 at 6:23 am #1127836Josh
ParticipantThis reply is private.
June 16, 2016 at 6:58 am #1127855Ryan
ParticipantHey Josh,
I can confirm that this is the case. There are 30 purchases over 10 orders.
I checked another event that has 24 purchases over 9 orders and it shows 9 on the front end of the site.
With that said, would it be simpler to fix it back to what it was, or maybe add a quantity field so it shows the number of tickets for each order?
Thank you for your help!
Matt
June 17, 2016 at 9:27 am #1128463Josh
ParticipantHey Matt,
Thanks for reaching out to us!
You could revert back to the previous way that you had it displaying in the previous thread. That does give it a little more detail than what is currently returned from the existing variable in the template there.
However, when the attendee-list.php template is called in Event Tickets Plus > src > Tribe > Attendee_List.php file within the render() function, it is passed with the full $attendees variable which utilizes the
Tribe__Tickets__Tickets::get_event_attendeesso you could potentially do something very similar as before with a little more integration with the default approaches.Let me know if this helps.
Thanks!
June 17, 2016 at 12:22 pm #1128618Ryan
ParticipantHey Josh,
I wrote a post that isn’t showing up so hopefully this isn’t a duplicate.
I’m not quite sure I follow this. I don’t really have anything to revert to as my code hasn’t changed since that thread – it was simply the update to 4.2 that caused it to show them grouped by order instead of showing all tickets. I simply want it to show how it was previously.
OR
Is there a way to pull in the number of tickets for each order, then I could at least show that number on the report I created so it will make sense when it says 30 tickets were sold but only 10 purchases are showing.
Thanks,
Matt
June 21, 2016 at 8:05 am #1129794Josh
ParticipantHey Matt,
I’m terribly sorry for my confusion there.
I took a look at your previous solution and here is a quick translation (you’ll need to update to have the same checks as your original approach but this should get you what you were looking for with the tickets rather than orders). It uses the $attendees variable that is also available for the template instead of the $attendees_list.
https://gist.github.com/2b22ab82c6ea1f72745694c81ef1b7cd
Let me know if this helps.
Thanks!
June 21, 2016 at 9:27 am #1129882Ryan
ParticipantThat did the trick! Thank you for your help on this job. Top-notch as always!
Cheers,
Matt
June 21, 2016 at 12:44 pm #1130041Josh
ParticipantHey Matt,
No problem! Happy to help 🙂
I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.
Thanks!
-
AuthorPosts
- The topic ‘4.2 Update Causing Attendee List to only show first 10’ is closed to new replies.
