The ticket code format WooCommerce stores use is the short string of characters a customer shows at the door when they cannot or prefer not to scan the QR. It is printed on the ticket, embedded in the QR itself, and appears in every confirmation email. Customers read it, type it, screenshot it, and dictate it to support agents.
That makes its format more important than it looks. A poorly designed code is hard to type, difficult to read in low light, and easy to mistype. A well-designed one is instantly recognisable as yours, follows a predictable shape, and stays short enough to read aloud without a mistake.
This post walks through the five settings that control ticket code format in QR Code Tickets & Check-in for WooCommerce. You will see what each one controls, a real example of how changing it changes the code, and the mistakes that cause the most confusion when store owners configure them for the first time. If you are evaluating other ticketing plugins, the concepts still apply, because these are the five building blocks most code-based ticketing systems use.
All five settings are configured under WooCommerce > Settings > Tickets > Settings > Ticket Code Format. They can also be overridden per product, which is covered later in the post.

What the Ticket Code Format WooCommerce Stores Use Contains
Before walking through the settings, it helps to see how a ticket code is built. Every code the plugin generates follows the same shape:
prefix + separator + random code + suffix
A default code that ships out of the box looks like this:
TKT-A3K9P2X7
Broken down into its parts, that code is:
| Part | Value | Purpose |
|---|---|---|
| Prefix | TKT | Identifies the code as a ticket from this store |
| Separator | – | Keeps the prefix visually separate from the random part |
| Random code | A3K9P2X7 | The unique identifier for this specific ticket |
| Suffix | (none) | Optional trailing text, such as a year or event code |
Every ticket generated by the plugin uses this same structure. The five settings control the four parts that make it up. The random part is the only piece the plugin generates on its own, using the length and character set you have chosen.
Understanding this structure is what makes the rest of the settings feel intuitive. Each one modifies one part of the string. None of them interact in ways you would not expect, which is why the preview at the bottom of the settings page updates instantly as you change them.
Setting 1: Prefix
What It Is
The prefix is the text that appears at the very start of every ticket code. It is used to identify what kind of ticket the code represents, and it is one of the most useful branding decisions in the entire ticketing setup.
The default prefix is TKT, which stands for “ticket” and works for most stores. You can change it to any text up to 10 characters, using letters, numbers, hyphens, and underscores only. The prefix is automatically converted to uppercase, and any invalid characters are stripped out before saving.

Real-World Example
A ski resort sells three types of lift passes: day passes, evening passes, and season passes. Rather than relying on the default TKT prefix for all three, they configure a different prefix per product:
| Product | Prefix | Example Code |
|---|---|---|
| Day pass | SKIDAY | SKIDAY-A3K9P2X7 |
| Evening pass | SKIEVE | SKIEVE-B8N4M6Q2 |
| Season pass | SKISEASON | SKISEASON-C5P7K3R9 |
Now anyone on the resort staff can tell at a glance which type of pass a code belongs to just by reading the first few characters. When a customer calls to ask “can I use my pass tonight?”, support can look at the code and instantly know whether it is an evening pass or not.
How to Set It Up
- Go to WooCommerce > Settings > Tickets > Settings > Ticket Code Format
- Enter your prefix in the Ticket Code Prefix field
- The preview updates automatically to show a sample code
- Save
Setting 2: Suffix
What It Is
The suffix is the optional text that appears at the very end of the ticket code, after the random part. It is the mirror of the prefix, and it serves the same purpose: to add context to the code without interfering with the random identifier.
The default is empty, which means codes end with the random part. When a suffix is set, it appears at the end of every code. The same rules apply: up to 10 characters, uppercase letters, numbers, hyphens, and underscores only.

Real-World Example
A conference organiser runs the same event every year. They want ticket codes to encode the year so that staff scanning old codes from previous years immediately recognise them as expired rather than valid. They set the suffix to –2026 for the current event, and next year they will change it to –2027. The codes then look like:
- SKI-A3K9P2X7-2026 for the current event
- SKI-A3K9P2X7-2025 for last year’s event
This is not strictly necessary, since the plugin tracks expiry dates on the ticket itself, but it makes the year visible at a glance in printed reports and exported spreadsheets. For stores that run annual events, it is a small administrative convenience.
A ski resort uses a different suffix approach: SEASON for season passes, DAY for day passes. Combined with the prefix, this produces codes that clearly communicate both the resort and the pass type in a single string: SKIDAY-A3K9P2X7DAY, SKISEASON-B8N4M6Q2SEASON.
How to Set It Up
- Go to WooCommerce > Settings > Tickets > Settings > Ticket Code Format
- Enter your suffix in the Ticket Code Suffix field
- Leave it empty if you do not need a suffix
- The preview updates automatically
- Save
Setting 3: Length
What It Is
The length setting controls how many characters the random middle part of the code contains. It is the only part of the code that the plugin generates on its own, and it is the part that makes the code unique. Short lengths produce compact codes that are easy to read aloud; longer lengths produce codes that are extremely unlikely to collide with each other even across millions of tickets.
The valid range is 4 to 20 characters. The default is 8. Any value outside the range is silently adjusted to the nearest valid limit.

Real-World Example
A small workshop series sells a few hundred tickets per year. An 8-character random part is more than enough for their volume, and it produces codes like SKI-A3K9P2X7-2026 that are still short enough for a customer to read over the phone.
A large festival sells 200,000 tickets across multiple events. If they use a short random part like 4 characters, there is a real chance of collision (two tickets accidentally ending up with the same code) at their volume. By increasing the length to 12 characters, they get codes like FEST-A3K9P2X7M4N8 that are still manageable to type but statistically never collide. Each length value multiplies the possible combinations exponentially, which is why longer codes are safer for larger stores.
How to Set It Up
- Go to WooCommerce > Settings > Tickets > Settings > Ticket Code Format
- Enter a number between 4 and 20 in the Ticket Code Length field
- The preview updates to show the new length
- Save
Setting 4: Format (Character Set)
What It Is
The format setting controls which characters can appear in the random part of the code. Four character sets are available:
- Alphanumeric: a mix of letters and numbers, excluding characters that look similar to each other (0, O, I, and 1 are all removed). This is the default and the recommended choice for most stores.
- Letters Only: only A to Z. Useful when codes need to be read out loud, since there is no risk of confusing a letter for a number.
- Numbers Only: only 0 to 9. Useful when codes will be entered on a numeric keypad, such as a phone system or a point-of-sale terminal.
- Hexadecimal: 0 to 9 and A to F. Useful when codes are consumed by another technical system that expects hexadecimal input.

Real-World Example
A cinema uses the default Alphanumeric format. The exclusion of similar-looking characters (0, O, I, and 1) is the key benefit here. At the door, staff sometimes need to type a ticket code manually when a customer’s phone will not scan. Without that exclusion, the staff member might type “TKT-A3K9P2X7” as “TKT-A3K9P2X7” one time, then “TKT-A3K9P2XO” the next time, because the letter O and the number 0 look identical in a busy, dim doorway.
A phone support team at a ticket resale marketplace uses Numbers Only format. When a customer calls in and needs to read their ticket code aloud, all digits means there is no ambiguity about whether they are saying “B” or “D” or “3”. The code is essentially a long PIN, and both the customer and the agent can transcribe it without errors.
How to Set It Up
- Go to WooCommerce > Settings > Tickets > Settings > Ticket Code Format
- Choose a character set from the Code Format dropdown
- The preview updates to show a sample code using that character set
- Save
Setting 5: Separator
What It Is
The separator is the character placed between the prefix and the random part. It exists to make codes easier to read by eye, since a code like TKT-A3K9P2X7 is easier to parse than TKTA3K9P2X7. Three options are available: hyphen, underscore, or no separator at all.

Real-World Example
Most stores use the default hyphen. It produces codes like TKT-A3K9P2X7, which are instantly readable because the hyphens act as visual anchors. Staff scanning a code quickly can immediately separate the prefix from the ticket identifier, which speeds up manual entry.
A photo booth company uses underscore instead, producing codes like PHOTO_A3K9P2X7. This is entirely aesthetic, but underscores look cleaner than hyphens when codes are embedded in URLs, such as example.com/ticket/PHOTO_A3K9P2X7. If your store links to ticket pages directly, the underscore is the better choice.
A point-of-sale integration uses no separator at all, producing codes like TKT A3K9P2X7 (with the space added only for readability). Some legacy POS systems cannot handle hyphens or underscores in search queries, so removing the separator ensures compatibility.
How to Set It Up
- Go to WooCommerce > Settings > Tickets > Settings > Ticket Code Format
- Choose Hyphen, Underscore, or No Separator
- The preview updates to show the resulting code
- Save
How the Five Settings Work Together
Each of the five settings modifies one part of the code independently. Changing any single setting produces a predictable change in the output, which makes the preview at the bottom of the settings page the most useful tool for testing your configuration before saving.
Here is how the settings combine for a few real store types:
| Store Type | Prefix | Suffix | Length | Format | Separator | Example Code |
|---|---|---|---|---|---|---|
| Cinema | CINEMA | (none) | 8 | Alphanumeric | Hyphen | CINEMA-A3K9P2X7 |
| Ski resort (day pass) | SKIDAY | (none) | 8 | Alphanumeric | Hyphen | SKIDAY-B8N4M6Q2 |
| Ski resort (season pass) | SKISEASON | 2026 | 10 | Alphanumeric | Hyphen | SKISEASON-C5P7K3R9X22026 |
| Conference | CONF | 2026 | 10 | Alphanumeric | Hyphen | CONF-F8T3N7K2P62026 |
| Phone support terminal | (none) | (none) | 10 | Numbers Only | None | 4829157360 |
| Photo booth | PHOTO | (none) | 8 | Alphanumeric | Underscore | PHOTO_A3K9P2X7 |
Notice how the phone support terminal has no prefix and no separator at all. That is not a mistake. For a code that is only ever dictated aloud or typed into a numeric keypad, the shortest possible code is the best code. Every character that is not a number is one more thing the customer or agent can get wrong.
Per-Product Overrides
Every one of the five settings can be overridden on a per-product basis. This is what allows a single store to sell a cinema ticket with prefix CINEMA, a workshop ticket with prefix WORK, and a membership card with prefix MEMBER, all from the same install.
To set up an override:
- Open the product in the WordPress editor
- Go to the Ticket Settings tab
- In the Code Settings section, change the mode from Use Global Settings to Custom Settings for This Product
- Fill in the prefix, suffix, length, format, and separator for this product
- Save the product

Any field you leave empty falls back to the global value. So if you only want a different prefix for one product but want everything else to inherit from the global settings, you only need to set the prefix.
Best Practices for Choosing a Ticket Code Format
After helping hundreds of stores configure their ticket code format, a few patterns have emerged as reliable defaults:
- Start with a four to six character prefix that identifies your store or the product type. TKT is fine if you are a single-brand store; a more specific prefix helps if you sell multiple ticket products.
- Keep the random part at 8 characters unless you are selling more than 50,000 tickets per year. That is enough combinations for almost any store.
- Keep the separator as the default hyphen unless you have a specific reason to change it. It reads cleanly in every context.
- Only use a suffix if it conveys information that the prefix does not already convey. Redundant suffixes just make codes longer.
- Use alphanumeric format unless you have a clear reason to use one of the others. The exclusion of similar-looking characters is a real benefit that saves manual entry errors.
The simplest format is almost always the best one. A code like TKT-A3K9P2X7 reads cleanly, types correctly, scans reliably, and does not overwhelm a customer trying to read it over the phone. Fancy formats with long prefixes and suffixes are usually solving a problem that does not exist, at the cost of a customer experience that suffers every time the ticket is used.
Common Mistakes to Avoid
Changing the format after tickets have been generated. Existing tickets keep their original format. If you change the prefix, new tickets use the new prefix but old ones keep the old prefix. This creates a temporary mismatch in exports and reports, which is normal but worth knowing before you change it.
Using a prefix or suffix that conflicts with your separator. If your prefix ends with a hyphen (like “SKI-“) and your separator is also a hyphen, codes end up looking like SKI–A3K9P2X7. Avoid using the separator character within the prefix or suffix.
Forgetting that the prefix and suffix are uppercased automatically. If you type “ski” as your prefix, it saves as “SKI”. This is intentional, since uppercase reads more clearly in printed and scanned contexts, but it means you cannot have mixed-case codes.
Not testing with a real order. The preview in the settings page shows the format, but you should still place a test order and confirm the actual generated ticket matches what you expect. This is a two-minute check that catches every configuration mistake before a real customer sees it.
Setting a length that makes codes hard to read over the phone. If your support team regularly takes codes verbally, a 20-character random part is nearly impossible to transcribe accurately. Keep the random part to 8 or 10 characters for any store that has a support phone line.
Frequently Asked Questions
What is a good ticket code format for a small store?
The plugin’s default is ideal for most small stores: prefix TKT, length 8, alphanumeric format, hyphen separator, no suffix. It produces codes like TKT-A3K9P2X7 that are easy to read, easy to type, and reliable to scan.
Should I use a prefix or a suffix, or both?
Usually one or the other. The prefix is more common, because it is the first thing a reader sees and identifies the code immediately. The suffix is useful when you want additional information at the end, such as a year or event code, but it is not necessary for most stores.
Why are the letters O, I, 0, and 1 excluded from alphanumeric codes?
Because they look nearly identical in most fonts, especially in dim lighting or at small sizes. Excluding them prevents transcription errors when staff have to enter a code by hand. This is the main reason alphanumeric format is recommended over other options.
Can I have different prefixes for different products?
Yes. Each product can override the global format settings in its own Ticket Settings tab. You can sell a SKI-prefixed lift pass and a RENT-prefixed equipment rental in the same store, each with its own format.
What happens if two tickets end up with the same code?
The plugin checks for duplicates during generation and regenerates the random part if a collision is detected. With the default 8-character alphanumeric format, the odds of a collision are astronomically small for any store under about 50,000 tickets per year.
Does the ticket code affect the QR code?
Yes. The QR code is generated from the ticket code itself, so the format of the ticket code directly determines what the QR looks like internally. A shorter code produces a simpler QR, which scans more reliably at low resolution or when partially obscured.
Can I change the ticket code format after my store is live?
Yes. Changing the format affects only new tickets generated after the change. Existing tickets keep their original format. If you want existing tickets to use the new format, regenerate them from the order edit screen.
Why does my prefix or suffix stop at 10 characters?
The 10-character limit is a design choice to keep total code length reasonable. Combined with an 8-character random part and a separator, a 10-character prefix produces codes that are already 19 characters long, which is close to the upper limit of what customers can read back accurately.
Final Checklist
Before you settle on a ticket code format, verify:
- Your prefix identifies your store or the product type clearly
- You are not using both prefix and suffix unless both add distinct information
- Your length is at least 8 characters for stores selling more than a few hundred tickets per year
- You are using alphanumeric format unless you have a specific reason to change it
- Your separator is the default hyphen unless your workflow requires otherwise
- The total code length is under 20 characters if your support team takes codes over the phone
- You have placed a test order and confirmed the generated code matches what you expected
- Your format is documented in your team’s internal notes, in case you need to hand off the store to someone else
Ten minutes spent choosing a clean, consistent format saves hours of manual corrections later. The ticket code is the part of your ticketing system that customers and staff interact with most directly, and getting it right the first time makes every other part of the system feel smoother.
Customize Your Ticket Codes Today
QR Code Tickets & Check-in for WooCommerce includes full control over ticket code format, per-product overrides, and a live preview that updates as you adjust each setting. Whether you run a single-event store or a multi-product ticketing operation, the format configuration stays out of your way once it is set.
Get the plugin on WooCommerce.com
Written for store owners who want ticket codes that are easy to read, easy to scan, and easy to remember. If your store has a specific code format requirement this guide does not cover, our team is one reply away.
