LogoLogo
  • Introducing Tebex
    • Why Tebex?
  • Pricing
    • Starter & Plus Plans
    • Fees Overview
      • Why We Charge a Platform Fee
  • Initial Setup
    • Understanding Tebex Accounts vs. Projects
    • General checklist for setting up a Tebex store
    • Identity Verification for Tebex Store Onboarding
    • Your Store Review
    • Tips for getting your store application approved
    • What is Intellectual Property?
    • Adult Content Guidelines
  • Tebex Control Panel
    • Dashboard
    • Payments
      • Manual Payments
      • Recurring Payments
      • Payment Methods
      • Checkout Settings
      • Fraud Analysis
      • Wallet
      • Payment Exports
    • Packages
      • How To Create A Package
      • How To Create A Category
      • How To Test A Package
      • Tiered Packages
    • Statistics
    • Customers
      • Customer Lookup
      • Customer Bans
    • Webstore
      • Appearance
        • Our Footer
        • Template Variables
      • Sidebar
      • Pages
      • Custom Variables
      • Regional Pricing
      • Translations & Languages
        • Custom Translations
      • Emails
      • Subdomains & Custom Domains
      • Slack & Discord Notifications
    • Engagement
      • Coupon Codes
      • Sales
      • Creator Codes
      • Gift Cards
      • Community Goals
      • Abandoned Basket Recovery
      • Purchase Follow Ups
      • Upselling
      • Offers
    • Game Servers
      • FiveM
        • FiveM (Server Wrapper)
      • Minecraft: Java Edition
        • BuycraftX
      • ARK: Survival Evolved
      • Minecraft: Bedrock Edition
      • Space Engineers
        • Space Engineers Item IDs
        • How the Legacy Space Engineers Vanilla Integration Works
        • Mod Guidelines and FAQs
      • Unturned
      • Rust
      • Garry's Mod
      • Hurtworld
      • Counter Strike: GO
      • 7 Days To Die
      • Team Fortress 2
      • Conan Exiles
      • RCON (Legacy)
      • RCON Adapter
      • MySQL Depreciation
    • Discord Servers
    • Store Transfers
    • Team Accounts
    • Billing
      • Store Cancellation
  • Tebex Checkout
    • How Payments Work
    • Seller Protection and Chargebacks
    • Where and Why We Charge Sales Tax/VAT
      • Information for Accountants
    • Checkout Process
    • Paysafecard
    • Wallet
    • Wallet Restrictions - Deposits & Locks
    • Fund Withdrawals and Transfers
      • PayPal Withdrawal Fees
      • Bank Account Withdrawal Fees
      • Wire Transfer List of Countries & Fees
    • Checkout FAQ
    • Seller Support Guidance
    • Checkout Seller Actions
      • Changing Usernames
      • Changing Discord ID's
      • Resending Commands
      • Customer Lookup
      • Checkout Bans
    • Tebex Checkout for WHMCS
  • Subscribe @ Tebex Academy
  • Developer Documentation
  • FAQs
  • Growth and Success
    • Tebex Store Best Practices
    • Sales Calendar - 2025
    • Gift Cards
    • Community Engagement
    • Frequently asked questions
    • FiveM Best Practices for Packages
    • FiveM Beta Assets Best practices
    • Creator Success: Case Studies
      • Reducing Support Backlog through Restructuring the Team
      • Improving User Retention via “Loss Leader”
      • Subscription Stability and Growth
  • Command Management
    • An Introduction To Commands
    • Command Troubleshooting
    • Resending Commands
    • Support for Epic Game IDs
Powered by GitBook
On this page
  • 🎓 Academy Guide - Custom Variables
  • Creating A Custom Variable

Was this helpful?

  1. Tebex Control Panel
  2. Webstore

Custom Variables

PreviousPagesNextRegional Pricing

Last updated 9 days ago

Was this helpful?

The Custom Variables feature allows you request information from the customer when they add a product to their basket. You could, for example, request which colour name tag they would like when purchasing a VIP rank and this is the example that we are going to use in this guide.

Just like how you might use the {username} command variable when creating packages, this feature allows you to create your own variables, such as {colour} in this instance.

🎓 Academy Guide - Custom Variables

This video will explain and walk you through creating a package with custom variable options. This is an ideal system to use for many servers, so you can simply ask the customer for relevant information instead of having to create many different packages.

As an example, this is particularly useful for servers running game modes like Pixelmon, due to the many customisation options available for that game mode - but this is really suitable in a wide variety of situations, servers and game modes, use your imagination and get creative!

Creating A Custom Variable

  1. From the left-sidebar click 'Settings' then 'Variables'.

  2. Click 'Create Your First Variable' or 'Create Variable'.

  3. Choose an identifier for your variable - this is what you will use in your package commands, such as {colour} for example.

  4. Enter a description for your variable - this is what customers will see when asked for a selection for the variable.

  5. Select the type of your variable, we are going to choose Dropdown for this example. We have several other types such as Email Address, Username, Alphanumeric, Numeric and more.

Because we are creating a variable which asks which colour name tag the player would like with the rank, we are going to add three options below. To add your first option, click 'Add Option'.

The setup steps below are for the Dropdown variable type only; setup steps will vary slightly for the other types.

Each variable option needs to have the following setup for it:

Name - This is the option name that will be displayed to your customer.

Value - This is what the {colour} variable (as defined previously) will be replaced with when the commands are executed on your server.

Price - Optionally, if you want to charge an additional amount on top of the package price, if the customer selects the option in question, you can enter it here. You can also define a percentage increase of the package price on a per-option basis instead, if you'd like.

Following on with our example our options list now looks like the following:​

As well, optionally, you can select an option as the default for the package - useful if you'd like to offer a 'base' option you'd like to preselect for the customer.

Once you are happy with your variable, click 'Create'.

You then need to add this variable to whatever packages you like; you can do this by editing each package and selecting this variable when you go to edit or create a package - you'll find it in the 'Variables' section - just check the variable you've just created and add the identifier, {colour} in the example above, into the command(s) for the package(s) in question.

In your package commands section, you can now use the {colour} variable as you would any other Command Variable that we provide. Once your customer purchases the package we will replace the {colour} variable with the value corresponding to the option they chose.