Incorrect Totals for Attendees

Home Forums Ticket Products Event Tickets Plus Incorrect Totals for Attendees

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1445640
    match2paper
    Participant

    I’m trying to get the total number of attendees in the list view for each event on the calendar. The numbers that I’m getting are consistently incorrect though.

    I currently have two events created, both using RSVPs. The first event has 1 RSVP, the second has none. This is the code I’m using to display the total attendees:

    if ( tribe_events_has_tickets() ) :
    // test method 1
    echo count(tribe_tickets_get_attendees($event_id));
    echo '<br>';
    // test method 2
    echo count(Tribe__Tickets__Tickets::get_event_attendees($event-&gt;ID));
    endif;

    The first method returns a value of 9 for both events. The second method returns a value of 18 for the first event and 0 for the second. The correct results should be 1 and 0.

    #1445692
    match2paper
    Participant

    I’ve also just noticed that when logged in as an admin every event that has an RSVP shows the same RSVPs and Tickets on the /tickets/ page that is linked to from the single event view, even though the RSVPs and ticket sales it is showing are for deleted events.

    #1448065

    Hi Arta,

    Thanks so much for reaching out!

    Just to let you know, we are limited by our Support Policy in how much we can help with customizations, but I will try to point you in the right direction.

    Without this customization on your site, are your attendees showing up correctly on the backend?  In other words, are you just trying to configure your customization or do you feel that expected behavior is not working properly?

    As for your second issue, let’s try to rule out if there is some type of conflict at play.
    This is usually because of:

    1.    A conflict with another plugin

    2.    A conflict with your WordPress theme

    3.    A template customization for the Events Calendar that requires updating

    When it comes to that type of issue, it is preferable to troubleshoot in a staging environment if you have one.

    A first quick test is to simply temporarily revert back to a default WordPress theme such as twenty-sixteen to see if the issue persists.

    The next step would be to go through our testing for conflicts procedure and let us know what you find out.

    Basically the goal here is to revert back to a bare WordPress installation to see if the problem persists. It also allows us to pinpoint what the cause of the issue is.

    But, before you do that, there are 2 things I would advise:

    1.    Make a backup of your database

    2.    Consider activating a “Maintenance Page” plugin if you are doing this on your live site (to minimize impact on your visitors)

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1468262
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Incorrect Totals for Attendees’ is closed to new replies.