# Discount rules and discount codes

Pembee supports multiple options to configure discount rules and discount codes. Discount rules can be created in the **Discount** tab or when creating/ editing an activity. Discount rules or discount codes will only be applied to one single booking and cannot be applied across one user's multiple bookings.

This guide will cover:

### Discount rules

Discount rules will be applied automatically at the payment stage during the checkout process.

There are two types of discount rules: Multiple session rules and multiple attendee rules. Each activity can have a maximum of one multiple session and one multiple attendee rule assigned to it. Let’s first look at the settings that are common to both rules.

#### Common settings

**Sessions option**: As each rule can be applied to multiple activities, the “Sessions option” controls how the rule is triggered. If you select “Sessions must be from the same activity”, the discount will only be triggered if all the sessions are from the same activity. If you select “Sessions can be from multiple activities”, the discount will be triggered across all activities where this rule applies, effectively treating all activities as if they are one single activity.**Activities applied to**: You can select what activities to apply this rule to. This can also be configured when creating/ editing an activity in the Activities tab.**Dates**: You can specify a start date and/or end date for the rule. If there are no dates specified, the rule will be active indefinitely.**Enabled**: You can also use the enabled button to manually enable/disable a discount rule.

Note that the discount rules will only apply to activity tickets, any add-ons will be excluded.

Now let’s take a look at the conditions to trigger the two types of discount rules.

#### Conditions

**Multiple session rules** will be applied if **the same attendee** was booked into multiple sessions. You will be able to specify the condition (i.e. minimum number of sessions required) to trigger this rule by clicking on **Add new condition**.

There are three unit types to choose from:

**Fixed amount:**takes a fixed amount off the total price**Percentage**: takes a % off the total price**Amount per session**: takes a fixed amount off for each session booked

Note that an **all-sessions ticket** will count the actual number of sessions in that ticket and if conditions are met, the discount rules will also be triggered.

For example, the setting below means if an attendee is booked into 2 sessions (either from the same activity or different activities depending on the Session option setting above), a 10% discount will be applied. If an attendee is booked into 4 sessions, a 20% discount will be applied.

**Multiple attendee rules** will be applied to each **additional** attendee in the booking.

There are two unit types to choose from:

**Amount on additional attendee**: takes a fixed amount off the total price for each additional attendee, regardless of how many sessions each additional attendee has booked**Percentage on additional attendee**: takes a percentage off for each additional attendee. The percentage discount will be applied to all additional attendees excluding the one with the highest total price.

For example, let’s assume a booking with three attendees, Sam at £50, Helen at £40, Tom at £20. The multiple attendee rule is 10% off each additional attendee. The total discount applied will therefore be £6 (£40*10%+£20*10%).

### Discount code

Discount code will be applied when a user inputs a code at checkout. You can specify a minimum spend for the code to be valid. Each booking can have a maximum of one discount code applied to it.

There are two unit types to choose from.

**Fixed amount**: takes a fixed amount off the total price when the minimum spend condition is met.**Percentage**: takes a percentage off the total price (including all ticket price and add-on price) when the minimum spend condition is met.

### Sequence of applying discount rules and codes

If an activity has both a multiple session rule and a multiple attendee rule, the discount will be applied in the following order: First, the multiple session rule will be applied. Afterwards, the multiple attendee discount will be applied to the total after deducting the multiple session discount. If a user then applies a discount code, the discount code will be applied to the total after deducting discounts from both discount rules.

For example: Let’s assume there is an activity with five sessions, each priced at £10. This activity also has a multiple session discount rule ( **10% when booking 3 or more sessions**), and a multiple attendee discount rule (**10% off each additional attendee**). There is also a discount code (**10PERCENTOFF**) that gives the user 10% off the total spend.

In one booking, Sam is booked into five sessions (£50 before any discount), Helen is booked into four sessions (£40 before any discount), Tom is booked into two sessions (£20 before any discount). The discount amount calculation will follow the order shown in the table below.

- First the multiple session rule (
**10% when booking 3 or more sessions**) will apply to Sam and Helen (given Tom has not met the minimum session requirement). The discount will be £5 (£50*10%) for Sam and £4 (£40*10%) for Helen, resulting in a subtotal of £45 for Sam, £36 for Helen, and £20 for Tom. - Afterwards, the multiple attendee rule (
**10% off each additional attendee**) will apply to Helen and Tom (as Sam has the highest amount of spend). The discount will be £3.6 (£36*10%) for Helen, and £2 (£20*10%) for Tom, resulting in a subtotal of £45 for Sam, £32.4 for Helen, and £18 for Tom (a total of £95.4). - When the discount code
**10PERCENTOFF**is applied at the final step of the checkout, the discount from the discount code will be £9.54 (10%*£95.4), leaving the final amount of £85.86.

### Edit bookings with discounts

After a booking is complete, any edits (such as additional add-on purchases or cancellations) will trigger a recalculation of the discount rules and discount codes applied. For example, if a booking has a 10% off discount code applied by the user, any additional add-on items added by the user will automatically have this 10% discount applied.

A cancellation may also result in a change of the discount rule conditions. For example, a multiple session discount rule may have the condition of [10% off 3 or more sessions and 20% off 5 or more sessions]. When a user books 5 sessions, a 20% discount will be applied to the booking. However, when one of the 5 sessions got cancelled, the 10% discount will be applied instead.