Hey guys,
I’m currently setting up my Ticket Plus with Woocommerce and want to know if you can give me a nudge in the right direction.
Is there a built in function to determine if a WC-product is a ticket set up by ECTP and ideally return the event id?
I want to set up some conditions to discount certain ticket combinations but only if they are from the same event.
Absolutely there is! CheckoutĀ tribe_events_get_ticket_event( $ticketid ) . Just pass the ticket ID to that function. If the return === false, there is no event associated with the product. Otherwise the return will be an integer, namely the event’s ID.