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

# Capacity per Variant

> Discover how to configure different capacities for each product variant, for fine-grained management of your specialized resources.

### What is Capacity per Variant?

**Capacity per variant** allows you to define a specific capacity for each variant of your products. This is the advanced mode for situations where some resources can only perform certain types of services.

### When to Use Capacity per Variant?

Use this mode when:

* Your resources are **specialized** and cannot all perform the same services
* You have different **material constraints** depending on variants
* You want **fine-grained management** of availability by service type

**Concrete examples:**

* 2 therapists for short massages, only 1 trained for long massages
* Blue Room (20 people max), Red Room (40 people max)
* 3 adult bikes, 2 children's bikes

### Configuring Capacity per Variant

1. **Create or Edit a Resource Group**
   * Go to **Settings** > **Booking Portal** > **Activities**
   * Click **Add Group** or edit an existing group

2. **Select Products**
   * Check the products whose variants should be managed
   * Variants from these products will appear automatically

3. **Choose "Capacity per Variant" Mode**
   * In the capacity section, select **Capacity per Variant**

4. **Define Capacity for Each Variant**
   * For each listed variant, enter its specific capacity
   * Example: "30min Massage" → 3, "60min Massage" → 1

5. **Save**
   * Click **Create** or **Update**

### How Does Availability Calculation Work?

With capacity per variant, each variant has its **own availability pool**.

Let's take an example with:

* **Group**: "Therapists"
* **Variants**: 30min Massage (capacity: 2), 60min Massage (capacity: 1)

**Scenario:**

| Time   | Booking          | 30min Massage | 60min Massage |
| ------ | ---------------- | ------------- | ------------- |
| 2:00pm | 1x 30min Massage | 1 remaining   | 1 remaining   |
| 2:00pm | 1x 60min Massage | 1 remaining   | 0 remaining   |
| 2:00pm | 1x 30min Massage | 0 remaining   | 0 remaining   |

At 2:00pm, there are no more spots for 30min massages AND no more spots for 60min massages.

### Practical Case: Spa with Specialized Therapists

**Situation:**

* Spa with 3 therapists
* 2 therapists can only do 30-minute massages
* 1 senior therapist can do 60-minute massages

**Configuration:**

1. Create a group "Massage Therapists"
2. Assign the "Massage" product (which has 30min and 60min variants)
3. Select **Capacity per Variant**
4. Define:
   * 30min Massage: **2**
   * 60min Massage: **1**

**Result:**

* Customers can book up to 2 simultaneous 30min massages
* Only one 60min massage can be booked per slot
* Both types are independent

### Practical Case: Restaurant with Private Rooms

**Situation:**

* Restaurant with 2 rooms of different capacities
* Blue Room: 20 people maximum
* Red Room: 40 people maximum

**Configuration:**

1. Create a group "Private Rooms"
2. Create a "Privatization" product with "Blue Room" and "Red Room" variants
3. Select **Capacity per Variant**
4. Define:
   * Blue Room: **1** (single booking at a time)
   * Red Room: **1**

**Result:**

* Each room can be booked independently
* Cannot book the same room twice on the same slot

### Best Practices

<Tip>
  **Tip:** Capacity per variant is particularly useful when your variants represent distinct physical resources (rooms, equipment) rather than different durations of the same service.
</Tip>

* **Check your variants**: Make sure products assigned to the group have variants configured
* **Think about consistency**: If a variant has a capacity of 0, it will never be available
* **Combine intelligently**: You can have multiple groups, some with total capacity, others with per-variant capacity

### Difference from Total Capacity

| Total Capacity      | Capacity per Variant         |
| ------------------- | ---------------------------- |
| Single shared pool  | Separate pools per variant   |
| Simple to configure | More control                 |
| Versatile resources | Specialized resources        |
| Ex: 3 therapists    | Ex: 2 for 30min, 1 for 60min |
