Remaining Tickets Indicator

This topic contains 2 replies, has 2 voices, and was last updated by  Chris Dunst 6 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27296

    Hi Stephen,

    Just a quick question – a client has asked if there’s any way of having an indicator when tickets are running low, so colour coded or explicitly stating number of tickets remaining.

    Is there any function built in to allow us to pull back the number of remaining tickets for an event, or a colour coded icon?

    Thanks,
    Chris

    Chris Dunst
    #27298

    Hi Chris,

    There is eo_get_remaining_tickets_count() which will returning the remaining number of tickets for the event (or event date when selling by date).

    Please note, that if you are selling by date and you do not pass an occurrence ID, it currently returns the number of tickets for the last date of the event. That behaviour may change, and it is expected that you pass an occurrence ID if selling by date.

    Stephen Harris
    #27300

    That’s perfect, thanks.

    Chris Dunst
Viewing 3 posts - 1 through 3 (of 3 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.