> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocky.global/llms.txt
> Use this file to discover all available pages before exploring further.

# Discount scopes

# Discount Scope Rules

Discounts now support two explicit application scopes:

1. **Total purchase**
   * Applies to registration rates, products, and custom amount fields.
   * Discount calculations include organizer fees (before tax).
   * If the discount amount exceeds the sum of items, the remaining value reduces organizer fees.

2. **Rates only**
   * Applies exclusively to registration rates.
   * Products, booking add-ons, and custom amount inputs remain untouched.
   * Organizer fees are not affected.

If neither flag is selected (legacy data), the behaviour matches the previous implementation: the discount targets the sum of cart items but not organizer fees. This keeps historical discounts working without changes.

When creating or editing a discount, the UI enforces mutual exclusivity between the two options and defaults to **Total purchase** for new entries.
