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
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:
In your Tebex Control Panel, go to Settings > Variables.
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:
Add options using Add Option.
For each option, specify:
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:
Go to Packages in your Control Panel.
Select or create a package.
Scroll to the Variables section and check the custom variable you created.
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.
Last updated
Was this helpful?