Hi,
I'm trying to determine if a waitlist has been enabled for the event. The reason for this is that I'm currently going through all the ticket classes to determine if an event has been sold out and then show a "Sold Out" link instead of "Book Tickets". The problem is that when the event has the waitlist enabled the link will still be show as "Sold Out" and I need to override this if the waitlist has been enabled and change the text to something like "Join Waiting List".
The way I'm currently determining if the event is Sold Out is by going through the ticket classes to see if ALL of them have an "on_sale_status" of "SOLD_OUT" - if so I mark the entire event as sold out and block the user from going through to purchase tickets, which can be seen as incorrect if the waitlist is enabled and there are technically tickets available.
Any help in either refactoring how I deem an event to be sold out, or exposing the waitlist enabled property would be much appreciated.
Thanks,
Graham