• Resolved thesinglegourmet

    (@thesinglegourmet)


    This has been a bug for a very long time now (at least several months, if not over a year): the “Who’s attending” section displays text that says “[x] people are attending [event name]”

    However, x does not equal the number of people attending, it equals the number of people who bought tickets. If 7 people bought 2 tickets each for an event, it will show text that says, “7 people are attending [event name]” when in fact that number should be 14. The number of avatars displayed will also only be 7.

    Furthermore, because of recent changes to comply with privacy laws and concerns (a laudable goal), attendee data is hidden from public view by default, which lowers that displayed number and the number of avatars, and undercounts the number of people attending even further.

    The most accurate way to show the number of people attending is to display the number of complete tickets (not the number of sold tickets; that still counts tickets that have been cancelled and therefore is a less accurate count of attendees).

    Displaying this number and not the avatars also avoids violating privacy issues.

    Does anybody know a way to display this number? Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Rafsun Chowdhury

    (@rafsuntaskin)

    Hi @thesinglegourmet,

    Gravatar for the purchasers only is shown to avoid privacy issues as you have already said.

    You can alter the template for the attendee list to change this to show only numbers.

    Assuming that you are using the Block editor, this is the template to override: /wp-content/plugins/event-tickets/src/views/blocks/attendees.php

    * Override this template in your own theme by creating a file at:
    * [your-theme]/tribe/tickets/blocks/attendees.php

    https://theeventscalendar.com/knowledgebase/themers-guide/#tickets

    Let me know if you need more help with this.

    Regards
    Rafsun

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Hi Rafsun, thank you for responding. However, you did not address the issue.

    If I alter the template for the attendee list to show only the number of attendees by using that block, it will still show the wrong number of attendees.

    How can I display the number of complete tickets? (Note: not the number of sold tickets).

    Thanks.

    Plugin Author Rafsun Chowdhury

    (@rafsuntaskin)

    Hi @thesinglegourmet,

    Hope you are doing well.

    Really sorry about missing that point.

    You can use the following function to get the total count of attendees for an event.

    
    $total_attendees = Tribe__Tickets__Tickets::get_event_attendees_count( $event_id );
    

    You can find more details about this method here: https://docs.theeventscalendar.com/reference/classes/tribe__tickets__tickets/get_event_attendees_count/

    Let me know if this works for you.

    Cheers
    Rafsun

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Hi Rafsun,

    Thanks again for responding. However, you still have not provided the answer I am looking for.

    For the third time: How do I display THE NUMBER OF COMPLETE TICKETS?

    NOT the number of sold tickets.
    NOT the number of attendees.

    Thanks.

    Hi there,

    Can you explain in more detail what the difference would be between the “number of complete tickets” and either the number of sold tickets or the number of attendees?

    By “complete” are you referring to the “order” status? Or the “checked in” status?

    Thanks,
    Sky

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Hi, it’s been a while since the last time I responded. I am hoping for an answer to this, it seems not very difficult. Just looking for a snippet of code that will output on an event page the number of “Complete” tickets.

    To answer the specific question asked by Sky, I am referring to the order status, as illustrated in the link in my previous response.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘number of attendees is INCORRECT on event page (long-time bug)’ is closed to new replies.