Events Made Easy Forums How do I … Count with Placeholders

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #56332
    Anonymous
    Inactive

    I´m trying to modificate the E-Mails.

    So I´m actually creating my Events as following:
    I got 10 seats in total and want to use waiting list feature, so I´m setting total number to 20 for example and define 10 seats as waiting-seats.

    In my Mails and my Booking overview in Adminpanel I want to show something like the following:, when all ten seats are sold out an 2 People are Waiting for seats:
    Booked: 10 of 10 (2 Waiting)

    If I us #_TOTALSPACES I get something like: 10 of 20 (2 Waiting), so I need a function like #_how_much_seats-i_have = #_TOTALSPACES-#_PENDINGSPACES (speaking mathematically)

    Any suggestions to solve this problem?

    Thanks a lot for all advices!

    #56333
    Franky
    Keymaster

    Weird … TOTALSPACES should take into account the waiting list feature:

    $total_seats = $event[‘event_seats’];
    $waitinglist_seats = $event[‘event_properties’][‘waitinglist_seats’];
    $total_seats -= $waitinglist_seats;
    $replacement = $total_seats;

    Which version are you using?

    #56363
    Anonymous
    Inactive

    Thank you very much, tried this for a second time at an other line and now everything works fine.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top