Events Made Easy › Forums › How do I … › CONDITIONAL TAGS calculations?
- This topic has 8 replies, 2 voices, and was last updated 9 years, 10 months ago by Anonymous.
-
AuthorPosts
-
Sun 4 Jan 2015 at 13:14 #53282AnonymousInactive
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
JKSun 4 Jan 2015 at 13:23 #53283FrankyKeymasterI 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 …Sun 4 Jan 2015 at 13:32 #53284AnonymousInactiveI 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 🙂
Sun 4 Jan 2015 at 14:15 #53285AnonymousInactiveMax. 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.
Sun 4 Jan 2015 at 14:17 #53286AnonymousInactiveThis is totally fine and ok, just saying that #_RESERVEDSPACES and #_PENDINGSPACES can go beyond total seats.
Sun 4 Jan 2015 at 14:32 #53287AnonymousInactiveBut 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?
Sun 4 Jan 2015 at 14:37 #53288AnonymousInactiveCancellation 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?
Sun 4 Jan 2015 at 15:16 #53289FrankyKeymasterYou 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.Sun 4 Jan 2015 at 15:38 #53290AnonymousInactiveYes, I’m fine with that and that will be the way I will handle it anyway … was just thinking out (a bit too) loud 😉
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.