Discount Center: Importing and duplicating codes
When you need a lot of discount codes, you won't create them one by one. There are two tools for bulk codes: Import codes for codes that come from somewhere else, and the code duplicator for generating fresh codes from an existing one. They solve different problems.
Which one do I want?
Tool | Use when | Result |
|---|---|---|
Import codes | You already have a list of codes (a partner gave you them, they're printed on cards, they came from another system). | Each code in your list becomes a working discount code. |
Duplicate codes | You want many new, unique, randomly generated codes that all give the same discount. | The store generates the codes for you and emails you the file. |
Importing codes
Import codes is on the Discount codes list, under the actions menu.
- Click Import codes.
- Paste your codes into the box — one per line, or separated by commas.
- Set the Discount value and choose whether it's a fixed amount (kr) or a percent (%). For a fixed amount, that value is also used as the minimum order.
- Set Times each code can be used (0 means unlimited).
- Click Import.
Each pasted code becomes a standalone discount code that applies to all products. You'll get a summary of how many were imported, and how many were skipped because they already existed.
Imported codes are deliberately simple — they apply to all products with no schedule. If you need targeting or conditions on them, open the individual codes afterward and adjust.
Duplicating codes
The duplicator generates a batch of brand-new unique codes that copy an existing code's discount, conditions, and schedule. Use it to hand out a different code to each customer while keeping the same offer.
It's available on a discount code's detail page when the duplicator is enabled for your store.
- Open the code you want to base the new ones on.
- Open the Duplicate discount code option.
- Set:
- Number of codes — how many unique codes to generate.
- Prefix (optional) — a fixed start for every code, like
VIP-. Letters, numbers, hyphens and underscores only. - Random length — how many random characters follow the prefix. The dialog shows a live example code and the total length.
- Send file to — the email address that receives the generated file.
- Click Generate.
The codes are generated in the background. You can close the window — when it's done, the file is emailed to the address you gave, and you'll get a notification in the control panel.
Every generated code carries the same discount value, conditions, and schedule as the original. Only the code string itself is new and unique.
Tips
- Use a prefix on duplicated codes so you can tell at a glance which campaign they belong to (
SPRING-,VIP-). - Generating a large batch takes a moment — that's why it runs in the background and emails you rather than making you wait.
- Importing is for codes you already have; duplicating is for codes you want the store to invent. If you're typing codes in, it's import; if you're asking for "500 random codes", it's duplicate.