Home › Forums › Ticket Products › Event Tickets Plus › Tickets sales (via Woocommerce) math bug?
- This topic has 7 replies, 5 voices, and was last updated 9 years, 10 months ago by
Figoli Quinn.
-
AuthorPosts
-
April 6, 2016 at 4:46 pm #1099280
Figoli Quinn
ParticipantIf you are looking at a list of events in the admin, the ones that have tickets for sale will have an option to click “Attendees.”
If you go to that page there is an accounting of tickets sold in the top righthand part of the screen:
– Total sold
– Finalized
– Awaiting review
– Checked in
– DeletedThe math here is happening wrong.
in attendees.php (lines 14-20)
foreach ( $tickets as $ticket ) {
$total_sold += $ticket->qty_sold() + $ticket->qty_pending();
$total_pending += $ticket->qty_pending();
}
$total_completed = $total_sold - $total_pending;
$total_attendees = Tribe__Tickets__Tickets::get_event_attendees_count( $event_id );
$deleted_attendees = $total_sold - $total_attendees;
I didn’t trace this all the way back, but I’m wondering if $ticket->qty_sold() actually includes the pending tickets so you shouldn’t be adding the two together to get $total_sold. The other math would be off, as well. Or qty_pending() is simply those sales not “completed,” which is different than payments “pending payment.”
When you go through the Orders and “complete” them all, the numbers eventually come back to their correct amounts.
Couple screenshots:
Before: showing erroneous tallies:
https://dl.dropboxusercontent.com/u/2505483/Screen%20Shot%202016-04-06%20at%202.48.05%20PM.pngAfter orders are marked “completed”:
https://dl.dropboxusercontent.com/u/2505483/Screen%20Shot%202016-04-06%20at%202.48.53%20PM.pngApril 7, 2016 at 5:31 am #1099488Cliff
MemberHi Robert. Thanks for your thorough message.
I tested and experienced the same bug. Therefore, I reported it to our developers via our internal bug tracking system.
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot provide an estimate of when it will be fixed, but I know we’ve been working hard on getting all the stock counts correct recently. I apologize for this issue and appreciate your understanding and patience.
April 8, 2016 at 5:58 pm #1100332Figoli Quinn
ParticipantCool. Thanks — it’s always fun finding a bug 🙂
April 8, 2016 at 7:55 pm #1100358Cliff
MemberYeah, great job! 🙂
April 23, 2016 at 9:35 am #1106308Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help.May 20, 2016 at 7:49 am #1117003Brook
ParticipantI just wanted to thank you once again for reaching out to us about this. We just released a new version of The Events Calendar and all of its addons that contains a fix for this.
Our blog post with the full details:Â The Events Calendar 4.1.4 and premium add-ons
We recommend updating as soon as you can to get the latest patches. Please let us know if this fixes the bug you have been experiencing or if you have any follow up questions. Thank you again!
– Brook
June 4, 2016 at 9:35 am #1122521Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Tickets sales (via Woocommerce) math bug?’ is closed to new replies.
