Fetching event details
-
Hello, we are using the Eventbrite plugin to pull our events with mostly success but have hit a bit of an issue. Forgive me if this logic is flawed, really just a dabbler than a real developer!
Previously we were testing if events were full by comparing the $post->tickets[0]->quantity_total with $post->tickets[0]->quantity_sold in the event loop to determine if a ‘book now’ or ‘sold out’ button should display. Unfortunately, this has stopped functioning correctly and now every event appears as ‘sold out’ even if tickets are available.
Just echoing these returns a null value, so it seems nothing is being compared…
Has something changed or is there a better way to do this? I’m not entirely sure how these calls work & I can’t even remember how I worked out this solution originally so am now scratching my head~!
Any help would be greatly appreciated! Cheers.
- The topic ‘Fetching event details’ is closed to new replies.