Events Made Easy Forums How do I … CONDITIONAL TAGS calculations?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #53282
    Anonymous
    Inactive

    Hello Franky,

    is it possible to do calculations with the EME_IF tags?

    Like:

    if ‘#ESC_APPROVEDSPACES + #_PENDINGSPACES’ gt=’#_TOTALSEATS ‘

    if not is this something you might consider to put on the feature request list please?

    Many thanks!
    Cheers
    JK

    #53283
    Franky
    Keymaster

    I never implemented calculations because it involves the eval-function and if people start to do calculations with own attributes or custom field values, I can no longer guarantee code safety.
    But in your case: approved+pending=reserved: #_RESERVEDSPACES, and it can never go beyond #_TOTALSEATS …

    #53284
    Anonymous
    Inactive

    I totally understand this!

    But you are right #_RESERVEDSPACES is what I was looking for and didn’t found it initially in the list of placeholders. But #_RESERVEDSPACES can go beyond total seats 🙂

    #53285
    Anonymous
    Inactive

    Max. Seats for an event is 10. I’ve set a custom Min. Seat for an event which is 2.

    Someone has requested 1 seat, this seat is already confirmed so there is 1 #_APPROVEDSPACES seat.

    Someone has requested 2 seats, these seats are not yet confirmed so there are 2 #_PENDINGSPACES seats.

    In total there should then be 3 seats that are the #_RESERVEDSPACES seats.

    At that time it is still possible to request 9 seats – this may result in a total of 11 (#_PENDINGSPACES) seats.

    #53286
    Anonymous
    Inactive

    This is totally fine and ok, just saying that #_RESERVEDSPACES and #_PENDINGSPACES can go beyond total seats.

    #53287
    Anonymous
    Inactive

    But this opens a few more questions to me 🙂

    With this said – it is possible to have more participants than #_TOTALSEATS. Which is also fine for me but for others it might not be the case so…

    Would it be possible to answer to a request somehow partial? Someone has asked for 5 seats on that moment only 3 seats were available, so can I reply and approve 3 seats and put 2 on waitlist? If I confirm that request currently I would have 12 total seats sold!

    The other way round somebody has requested 4 seats and these had been approved, now that person is going to cancel partially one seat? So only 1 of the 4 seats is going to be cancelled – how could this be done?

    #53288
    Anonymous
    Inactive

    Cancellation or Partial Confirmation – I’m sorry – I just found out that I can go into the request and change the number of seats,… would it be possible to have a custom field to write a note that is part of the email body and filled out prior sending out the email – to indicate why the change or cancellation has been made?

    #53289
    Franky
    Keymaster

    You can indeed go beyond the total number of seats, if you select the option that pending seats should not be taken into account for the booking form.
    Now, there’s not a real concept of a waiting list, so it’s all or nothing: new bookings can never go beyond the total number of available seats.
    Concerning the change in the number of seats: normally you do that with the knowledge of the booker himself, so for now if you want to send a note to him/her, you’ll have to do that manually.

    #53290
    Anonymous
    Inactive

    Yes, I’m fine with that and that will be the way I will handle it anyway … was just thinking out (a bit too) loud 😉

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