Event ticket code not working anymore in calendar template
-
I have a plugin template customization in tooltip.php the code I add is from event tickets to count the ticket quantity and display a link in calendar, this is working before the update and now I’m having critical error.
Template Path: yourtheme/tribe/events/v2/month/calendar-body/day/calendar-events/calendar-event/tooltip.php
<?php $tickets = new Tribe__Tickets__Tickets(); if( $tickets->post_has_tickets( $event ) ){ $ticket = $tickets->get_ticket_counts( $event->ID ); if( $ticket['tickets']['available'] == 0 ){ ?> <a href="<?php echo esc_url( $event->permalink ); ?>/#form-waitlist-title" rel="bookmark" style="font-size: 13px;text-decoration: underline;font-weight: bold;color: #153D6B;"><span>Click here to Join Waitlist</span></a> <?php } } ?>
Thanks
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Event ticket code not working anymore in calendar template’ is closed to new replies.