display remaining # of tickets

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31745

    I would like to display the remaining number of tickets available. I found a few topics in the forum describing how to do this, but I am unable to find the code. I believe I have found the right file, but the code is different so I don’t know where to put the new code in or if that code snippet will still work.

    Could you please help me out?

    Thanks,
    Mark

    Mark Taylor
    #32048

    Hi Mark,

    Does this thread answer your question: https://wp-event-organiser.com/forums/topic/show-number-of-free-tickts-in-eo_events-list/?

    In general you’ll need to use

     $available = eo_get_remaining_tickets_count(get_the_ID(), eo_get_the_occurrence_id());
    
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.