Instruction
Difficulty level:
How does the price calculation work with players?
The number of players can influence the price calculation. The basic concept works as follows:
- The price is calculated in the standard way. Things like "time of day", "day of week", "seasonal prices", etc. are all applied.
- A price is then calculated from the calculation.
- The number of players is determined. There are then two forms: with and without confirmation. This is a setting.
If with confirmation, a player will only count if the person has accepted / confirmed. Until then, the person is a guest. - The number of members and guests is then determined. The number of members divided by the total number of players gives a percentage.
- The price is multiplied by the percentage. And this is then deducted from the price. After all, it is a discount for members.
Note: the player discount only applies to the basic amount. Options and the like are not included here.
Example 1.
The basic price is 10 euros.
There are 4 players, 2 of which are members.
2 / 4 yields 50%, after which the discount is 50% of 10 euros, and thus the new price is 5 euros.
Example 2.
The basic price is 10 euros.
There are 2 players, 2 of which are members.
2 / 2 yields 100%, after which the discount is 100% of 10 euros, and thus the new price is 0 euros.