Unfortunately, I tried many coding from the velo examples and forum but nothing works, so I made the most easiest price calculation for rooms see below overview (I have no coding experience at all)
I have a drop down with 2 different rooms
(I can not find out how to calculate the price of the rooms by total nights, so I have made 2 collections for the prices with the different nights and therefore I have 2 flows)
- Select room drop down
- Select how many people
1 Flow calculate price room 1 (how many people in husha)
1 flow calculate price room 2 (how many people in bungalow) - How many nights
- Currency
- 2 Text with prices for the 2 flows (1 husha collection+ 1 bungalow collection)
This works good.
What I would like:
- All elements hidden
- Selection of room shows the right flow
- When people change select room, the previous selection is hidden again.
- Is it possible to have 2 calendar which calculates the number of nights between 2 dates and auto populate the number of nights in the drop down
I would be extra happy but I gave up
Ideally it would be great if you could help me with a code for calculation the price
drop down room - drop down total people - input element or drop down total nights -
price for 1 person for 1 night is in collection
Let me know if you have any question.
Thank you so much for any effort
Patricia