4.2 Update Causing Attendee List to only show first 10

Home Forums Calendar Products Events Calendar PRO 4.2 Update Causing Attendee List to only show first 10

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1126134
    Ryan
    Participant

    Hey 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

    #1126690
    Josh
    Participant

    Hey 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!

    #1126764
    Ryan
    Participant

    Hey 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

    #1126766
    Ryan
    Participant

    This reply is private.

    #1127836
    Josh
    Participant

    This reply is private.

    #1127855
    Ryan
    Participant

    Hey 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

    #1128463
    Josh
    Participant

    Hey 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_attendees so 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!

    #1128618
    Ryan
    Participant

    Hey 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

    #1129794
    Josh
    Participant

    Hey 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!

    #1129882
    Ryan
    Participant

    That did the trick! Thank you for your help on this job. Top-notch as always!

    Cheers,

    Matt

    #1130041
    Josh
    Participant

    Hey 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!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘4.2 Update Causing Attendee List to only show first 10’ is closed to new replies.