01
Group your codes
Give a group name, such as "summer" or "vip", to the codes you want to control. Two grouped codes only combine if they share a group.
02
First code kept, second refused
At checkout, the customer keeps the code entered first and sees a message naming the code the second one can't be combined with.
03
Nothing changes until you decide
Codes without a group are never affected, and your store starts in test mode, where nothing is refused.
You add the group in the Combination groups card of the discount page.
A code can be in several groups. Codes without a group are not affected, so you can start with a few codes and leave the rest as they are.
Early access
Combination groups are being rolled out store by store. Write to hey@pixoo.app with your store domain to have them turned on.
At checkout
VIP20 can't be combined with SUMMER15.
VIP20 is in "vip" and SUMMER15 is in "summer": no group in common, so the code entered second is refused.
Simplified example, not a screenshot. It assumes both codes apply to the cart, have no minimum purchase, that the grouped codes are shown as Active (the shipping code shows No effect), and that Shopify's Combinations checkboxes allow their types to combine. The Limits section covers the other cases.
Things to try: SUMMER15 then VIP20 (different groups), SUMMER15 then SUMMEREXTRA5 (same group), any code with WELCOME5 (no group) or FREESHIP (a shipping code), and the same pairs in test mode.
- Several campaigns at the same time. A summer campaign and a VIP campaign each have a product code and an order code that work together. Put the summer codes in "summer" and the VIP codes in "vip": each pair still combines, but a summer code can't be added to a VIP code.
- Welcome, affiliate, and influencer codes. Put them in separate groups so a customer can't add an affiliate code on top of a welcome code. A code limited to one use per customer is Limited: see the statuses below.
- One code that goes with everything. Give it every group name. A code in "summer" and "vip" can be used with the codes of both groups.
- Groups only restrict. Shopify's combination settings still apply on top. Two codes in the same group only combine if the Combinations checkboxes of each discount allow their types to combine.
- Discount codes only. Groups have no effect on automatic discounts.
- The Pixoo storefront embed, for the cart message. Shopify shows the refusal message at checkout. To show it in the cart and cart drawer too, turn on the Pixoo storefront embed in your theme.
- A free automatic discount slot. Once you refuse codes, combination groups run as one automatic discount in your Shopify admin, named Pixoo: code combination guard. Shopify limits the number of active automatic discounts per store.
- 1
Add groups to your discount codes
Open a discount code in Pixoo and find the Combination groups card. Type a group name and press Enter, then save. Give the same name to the codes that can be used together.
Names are saved in lowercase with dashes ("Summer Sale" becomes "summer-sale") and are limited to 32 characters.

The card on SUMMER15, in the summer group. It lists the codes that share the group and reminds you that the store is in test mode. - 2
Check the Groups list
Open Combination groups in the Pixoo menu. The Groups section lists each group with its discounts, the number of codes, and a status for each discount. A group with a single discount is not a mistake: that code simply can't be combined with any code from another group.

Two groups, summer and vip. Discounts created in the Shopify admin carry a Shopify discount badge; the free shipping code shows No effect. - 3
Run in test mode first
Your store starts in Test mode (nothing is refused). Nothing changes at checkout, so you can build your groups and read the status of each discount before any customer sees a refused code. On its side, Pixoo records the orders where codes from different groups were used together. This record is not shown in the app yet: write to hey@pixoo.app to get what your test period shows.

Settings in test mode: combination groups on, nothing refused at checkout. - 4
Start refusing codes
When your groups look right, write to hey@pixoo.app: during early access, the option is unlocked store by store. Then choose Refuse codes from different groups in the Settings section of the page and confirm. You can go back to test mode at any time.

Settings once you refuse codes. The switch at the top turns everything off at once and keeps your groups. Then test a real checkout. Use two codes from different groups that are both shown as Active, with a cart both apply to: the second code you enter should be refused with the message.
To stop everything at once, turn off Use combination groups in Settings. Your groups are kept.
- Two codes in the same group: both are accepted, as long as Shopify's combination settings allow their types to combine.
- A code from another group: the first code is kept and the second one is refused, with a message such as "VIP20 can't be combined with SUMMER15." When several codes are refused at once, the message lists them without naming the first code.
- A code applied from a link: it counts as the first code.
- In the cart and cart drawer: with the Pixoo storefront embed on, the customer sees "VIP20 can't be combined with the discount codes already applied." Without it, the code is removed without a message.
You can try the first two cases in the example above.
The message is shown in the customer's language: English, French, German, Italian, Spanish, Dutch, or Portuguese, and in English otherwise.
What is covered, and what is not
| The discount | What happens |
|---|---|
| Discount codes, product and order discounts | Covered. A grouped code is refused when an Active code from another group is already applied. |
| Codes without a group | Not affected. They are never refused and never block another code. |
| Free shipping codes | Never refused, and they never block another code, even when they are in a group. |
| Buy X get Y codes | Partly covered. The code is refused when a code from another group is already in the cart. If it is entered first, other codes are still accepted. |
| Automatic discounts | Not covered. An automatic discount combines as Shopify's combination settings allow. |
| Codes generated on the fly by a Klaviyo coupon sync or Shopify Flow | Not covered yet. |
A grouped code only blocks another code when Pixoo can verify that it applies to the cart. A code whose minimum purchase is not met does not prevent the customer from using a code from another group. A code with a minimum purchase amount also stops blocking when your store has an active automatic product discount, or when the other code entered is a product or Buy X get Y code, because Shopify checks the minimum after those discounts. Two Limited codes from different groups are both accepted.
Nothing is refused either in a cart with more than 80 lines, or when more than 6 codes are entered.
The status of each discount
On the Combination groups page and in the card of each discount, Pixoo shows a status.

| The discount | What happens |
|---|---|
| Test mode | Shown instead of Active or Limited while your store is in test mode. The text says what will happen once you refuse codes. |
| Active | The code can't be used with codes from other groups. |
| Limited | The code is refused when a code from another group is already in the cart, but it does not block other codes when it is entered first. This happens when the discount has a condition Pixoo can't check at checkout: a total usage limit, one use per customer, specific customers or markets, tiers, a rule for sale items, or a Buy X get Y code. The page gives the reason. |
| No effect | A free shipping code: groups have no effect on it. |
| Not applied, Too many codes, Limit reached | The discount was left out and its groups are not applied. The page says why. |
| Scheduled, Expired, Inactive | The discount is not running. Its codes are checked as soon as it is active. |
| No codes yet, Pending | The groups apply once the discount has codes, or once Pixoo has finished reading it. |
A store can hold about 1,700 grouped codes, and every code of a grouped discount counts. A bulk discount with more codes than that can't be grouped. The Status section of the page shows how much is used. When the limit is reached, the smallest discounts keep their groups first.

Discounts created in the Shopify admin
A code created outside Pixoo can join a group too. In the Shopify admin, add a tag to the discount: "stack:" followed by the group name, for example "stack:summer". It appears in the Groups list with a Shopify discount badge. Open the Combination groups page to have it read right away; otherwise it can take up to an hour.
Don't delete the Pixoo automatic discount
Once you refuse codes, an automatic discount named Pixoo: code combination guard appears in your Shopify admin. It gives no discount: it is what refuses the codes. If it is deleted or turned off, Pixoo restores it within the hour, or right away when you save a grouped discount. If Shopify can't create it because your store reached its limit of automatic discounts, deactivate one you no longer use and save a grouped discount again.
- Can I stop two Shopify discount codes from being used together?
- Yes. In Pixoo, put the two codes in different combination groups. When a customer enters the second code, it is refused with a message and the first code is kept.
- Do groups make two codes combine?
- No. Groups only restrict. Two codes in the same group still need Shopify's Combinations checkboxes to allow their discount types to combine.
- What happens to codes without a group?
- Nothing. They are never refused and never block another code. They combine as Shopify's combination settings allow.
- Can a code be in several groups?
- Yes. It can then be used with the codes of each of its groups.
- Does it work with automatic discounts?
- No. Groups apply to discount codes only. An automatic discount combines as Shopify's combination settings allow.
- Why is my free shipping code never refused?
- Shipping codes are never refused and never block another code, so groups have no effect on them.
- What does test mode do?
- Nothing changes at checkout. You can build your groups and read the status of each discount before refusing any code. Pixoo also records the orders where codes from different groups were used together; write to hey@pixoo.app to get that record, it is not shown in the app yet.
- The code disappears from the cart without a message. Why?
- The Pixoo storefront embed is off in your theme. Shopify shows the message when a code is entered at checkout; the embed shows it in the cart and cart drawer.
Still stuck? Email support@pixoo.app with your store domain and the two codes you are testing. We will look at it directly.
Related reading: restricting a code to specific payment methods and generating bulk unique discount codes.