• Resolved eliasen

    (@eliasen)


    Still the most amazing event plugin with an excellent update frequency and support. Thx, guys.

    Is there a chance, that I can grab the status from “Available spaces” and as long as there are tickets available, there’s a green icon (or a text or a … whatever) showing in the events list? When the status changes to ‘sold out’ the icon turns red?

    Am I looking for something that requires hours and hours of programming?

    Greetings from tiny little Denmark,
    Jan

    http://wordpress.org/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try something like

    if ($EM_Event->get_bookings()->get_available_spaces() <= 0) {
    ...
    }else{
    ...
    }
    Thread Starter eliasen

    (@eliasen)

    Quite interesting, thanks. I’m not a total noob, but I you to point in a more specific direction. 😉

    Where am I gonna insert your suggestion?

    What string will I need if I for example want images like ‘../green.png’ and ‘../red.png’ as indicators.

    Thanks in advance, angelo.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, can I know where are you trying to do this? eg. in shortcode events_list

    Thread Starter eliasen

    (@eliasen)

    It’s in my ‘Default event list format’

    Basically, I guess, it’s a string with just enough data to provide me with two different icons/images depending on whether Available spaces are 0 or >0.

    Don’t know if that’s what you’re asking for, but please let me know if you need more info.

    Hiya,

    Actually you could use the {has_spaces} and {fully_booked} conditional placeholders within your format to achieve this.

    See the docs at http://wp-events-plugin.com/documentation/conditional-placeholders/

    Thanks,
    Phil

    Thread Starter eliasen

    (@eliasen)

    Ouch, Phil! Thank you!

    Once in a while the answer is closer than first believed. I should be able to achieve that with the conditional placeholders.

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show ticket status as red/green icon’ is closed to new replies.