Event Booking calculate price by radio/checkboxes

  • Schultschik
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 3 months ago #93242 by Schultschik
Sorry don't found the right forum for Event Booking. If it exists it is not visible for me.

I tried but I did not get it totally right.

I have radio buttons for
Age
  • SCH Schüler bis 13 J.
  • JUG Jugend 14 – 17 J.
  • ERW Erwachsene 18 – 59 J.
  • SEN Senioren ab 60 J.
Days
  • Tag 1 14.10.2017
  • Tag 2 15.10.2017

If they attend on one day the price would be based on the age
  • 6
  • 10
  • 14

If they attend on both days it would be
  • 10
  • 15
  • 25

So value of one day * 2 minus a discount.

The one day part I get, but the two day part I don't know hoe to do it.

Can anyone give me a hint?

Thank you

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #93256 by James Riley
Replied by James Riley on topic Event Booking calculate price by radio/checkboxes
Schultschik: You're in the right place for EB questions :)

Hmmm... How would I set an EB event up to handle this. I don't think the [Fee formula] field is flexible enough to handle this (maybe it is??? @Tuan, is there a way of doing it with a Fee Formula?).

Here's what I would do:

I'd start with my [Days] radio field, and add a third option for "BOTH DAYS". No Fees attached here. I would order this field above the [Age] field.
DAYS:
Tag 1 14.10.2017
Tag 2 15.10.2017
Both days

I would then take the existing [Age] radio field, ensuring that it is set-up as a Custom Fee Field ( eventbookingdoc.joomservices.com/basic-s...ds/custom-fee-fields ) with the 1-Day prices inserted into the Fee section, and renaming the field to [Age-1DayRates]. I would then make a copy of [Age-1DayRates], calling it [Age-2DayRates], and insert the 2-day pricing into this new Fee field.

Now, I would make the two [Age...] fields conditional/dependent on the [Days] options ( eventbookingdoc.joomservices.com/basic-s...tional-custom-fields ):
* [Age-1DayRates] dependent on [Days] -> [Tag 1 14.10.2017] & [Tag 2 15.10.2017]
* [Age-2DayRates] dependent on [Days] -> [Both Days];


After that everything should calculate properly.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
The following user(s) said Thank You: Tuan Pham Ngoc, Schultschik

Please Log in or Create an account to join the conversation.

  • Schultschik
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 3 months ago #93470 by Schultschik
Replied by Schultschik on topic Event Booking calculate price by radio/checkboxes
Aloha,

i little bit more complex, but it perfectly works.

Thank you

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc