> For the complete documentation index, see [llms.txt](https://docs.tebex.io/creators/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tebex.io/creators/tebex-control-panel/settings/custom-variables.md).

# Custom Variables

The Custom Variables feature allows you to collect input from customers during checkout—perfect for personalized product options such as custom name tags, ranks, item colors, and more.

For example, you could ask a player what **name tag color** they want when purchasing a VIP rank. You define a variable like `{colour}` and we’ll substitute the value your customer chooses during package delivery.

***

### Academy Video

{% embed url="<https://www.youtube.com/watch?v=-qAVyDiLbdk>" %}

Learn how to create and use variables to simplify package configuration and improve the buyer experience. Ideal for servers like Pixelmon, RPGs, or any setup where you want to collect custom data.

***

### How to Create a Custom Variable

To get started:

1. In your **Tebex Control Panel**, go to **Settings** > **Variables**.
2. Click **Create Your First Variable** or **Create Variable**.

#### Define the Variable

* **Identifier:** This is what you'll reference in commands (e.g., `{colour}`).
* **Description:** Shown to the customer during checkout. For example: *“Choose your tag color”*.
* **Type:** Select one of the available types:
  * Dropdown (used in this guide)
  * Username
  * Email
  * Alphanumeric
  * Numeric
  * And more

***

### Example: Dropdown Variable for Name Tag Color

Let’s create a `{colour}` variable with three color choices using a **Dropdown**:

1. Add options using **Add Option**.
2. For each option, specify:

| Field       | Description                                                     |
| ----------- | --------------------------------------------------------------- |
| **Name**    | What the customer sees (e.g., `Red`, `Blue`, `Green`)           |
| **Value**   | The value used in your command (e.g., `red_tag`, `blue_tag`)    |
| **Price**   | (Optional) Add a flat amount or % surcharge for premium options |
| **Default** | (Optional) Select a default choice to pre-fill for customers    |

> Once set, click **Create** to save the variable.

***

### Adding the Variable to a Package

To use the variable in a package:

1. Go to **Packages** in your Control Panel.
2. Select or create a package.
3. Scroll to the **Variables** section and check the custom variable you created.
4. Add the variable's **identifier** (e.g., `{colour}`) into the **Command section**.

> When a customer makes a purchase, Tebex automatically replaces `{colour}` with the value selected.

***

### Why Use Custom Variables?

* **Simplify package management**: Avoid creating dozens of variations for every customization.
* **Improve customer experience**: Let players personalize purchases easily.
* **Keep commands dynamic**: Inject values directly into delivery commands.

***

### Summary

Custom Variables let you gather custom input from your buyers at checkout, making your store more flexible and powerful. With just a few steps, you can:

* Define dynamic variables (like `{colour}`)
* Use them across multiple packages
* Personalize command execution automatically

For servers with high personalization needs—like RPGs, modded servers, or roleplay communities—this feature helps reduce friction and scale package offerings effectively.
