Reject Discount Codes - AIOD Discount & Gift
Discount templates
Reject Discount Codes
Template for rejecting specific or wildcard discount codes, allowing only one code from a list, and setting the rejection message when custom conditions are met in AIOD.
Use
Reject Discount Codes
when a merchant wants AIOD to block specific discount codes after matching rule conditions are met.
This is a top-level template. In Shopify admin, open
Apps
>
AIOD Discount & Gift
>
Discount Templates
.
Reject Discount Codes
appears under
Explore more discount templates
; click
Create
to open the form.
There is no longer an
Advanced Rules
parent card or
Select type
step.
The template card says: “Reject specific discount codes when the rules are met.”
Navigate to header: When to use this template When to use this template
Use this template for:
Blocking one or more discount codes for a matching cart.
Blocking a family of codes with a wildcard, such as every influencer code that starts with INF- .
Letting customers use only one code from a list (no stacking of several listed codes).
Showing customers a custom message when a code is rejected.
Preventing a code from being used by certain customers.
Rejecting codes when a cart contains specific products, collections, variants, purchase types, or destinations.
Rejecting codes based on cart subtotal, cart quantity, order weight, customer tags, past order count, login status, or customer email.
Use
Custom Rule Builder
instead when the merchant wants to create a discount, not reject discount codes.
To keep a code working but turn off another AIOD offer while that code is in the cart, use
Skip when discount codes are applied
in that offer’s advanced settings instead. Read
Skip when discount codes are applied
for information about this.
Navigate to header: Related template Related template
| Template | Use it for |
|---|---|
| Custom Rule Builder | Build a custom discount with flexible conditions, targets, values, and limits. It is a separate top-level template. |
Navigate to header: Top-level controls Top-level controls
The form includes:
Use Custom Rule Builder shortcut.
Discount ID (For your reference) with placeholder eg: GET 20% OFF .
Select Discount Codes To Reject .
When To Reject Discount Codes .
Schedule .
Navigate to header: Status mode Status mode
The top-right status dropdown controls who can use or see the discount.
| Status | Meaning |
|---|---|
| Active | The discount is live for customers. |
| Testing mode | The discount is visible to the merchant for testing, but it is not live for customers. |
| Deactivate | The discount is turned off. |
Navigate to header: Select discount codes to reject Select discount codes to reject
The
Select Discount Codes To Reject
section controls which codes AIOD should reject and how the rejection behaves.
Controls:
Add Code text input with placeholder Enter discount code, e.g. SAVE10 or INF-* .
Add Code button.
Allow only one of these codes checkbox.
Message shown to customers text field.
The
Add Code
button was disabled in the observed empty state. Enter a code first, then add it to the rejection list.
Navigate to header: Code matching and wildcards Code matching and wildcards
AIOD’s helper text: “Codes match regardless of case. Use * to match any characters: INF-* covers INF-ALICE, INF-BOB and so on.”
| Listed code | Rejects | Does not reject |
|---|---|---|
| SAVE10 | SAVE10 , save10 | SAVE100 , SAVE10X |
| INF-* | INF-ALICE , inf-bob , INF- | ALICE-INF |
| *-VIP | GOLD-VIP , SILVER-VIP | VIP-GOLD |
| SUMMER*25 | SUMMER25 , SUMMER-SALE-25 | SUMMER2026 |
A code without * must match exactly, ignoring case.
* matches any characters, including none, and can appear anywhere in the code.
Spaces before or after a listed code are ignored.
AIOD rejects only codes that Shopify allows a discount function to reject. A code Shopify marks as not rejectable stays applied.
Navigate to header: Allow only one of these codes Allow only one of these codes
AIOD’s helper text: “Keep the code the customer entered last and reject the others. Without this, every matching code is rejected.”
| Setting | Customer enters two or more matching codes | Customer enters one matching code |
|---|---|---|
| Unchecked (default) | Every matching code is rejected. | The code is rejected. |
| Checked | The code entered last is kept. The other matching codes are rejected. | The code is kept. |
If Shopify marks one of the matching codes as not rejectable (for example, its discount is already applied), that code is the one kept, and every other matching code is rejected.
Use this to stop customers from stacking several codes from the same list, for example when only one influencer code should apply per order. The rule’s
When To Reject Discount Codes
condition must still be met.
Navigate to header: Message shown to customers Message shown to customers
Message shown to customers
sets the text customers see at checkout when a code is rejected.
Placeholder: This code isn't applicable with your cart.
Helper text: “Shown at checkout when a code is rejected. is replaced with the rejected codes. Leave empty to use the default.”
Maximum length: 255 characters.
Leave it empty to show the default message, This code isn't applicable with your cart.
Example:
{codes} can't be combined with your bundle price.
shows as
INF-ALICE can't be combined with your bundle price.
When several codes are rejected,
{codes}
lists them separated by commas, such as
INF-ALICE, INF-BOB
.
The message is shown in the language the merchant writes it in. It is not translated per customer language.
Navigate to header: When to reject discount codes When to reject discount codes
The
When To Reject Discount Codes
section controls when AIOD rejects the selected codes. The default is
Always
.
Click the condition button to choose a trigger.
| Category | Trigger | AIOD description |
|---|---|---|
| General | Always | This discount is always applied. |
| Cart/Order Details | Cart Subtotal Amount | Applied based on the subtotal value of products in the cart. |
| Cart/Order Details | Order Weight | Applied based on the total weight of products in the cart. |
| Cart/Order Details | Cart Quantity | Applied based on the number of items in cart. |
| Product Details | Product | Applied based on specific products added to the cart. |
| Product Details | Collection | Applied based on specific collection items added to the cart. |
| Product Details | Variant | Applied based on specific variants added to the cart. |
| Product Details | Variant Whose Metafield | Applied based on all variants whose metafield matches the rule. |
| Product Details | Line Item Property | Line item property names match your selection. Read Line Item Property condition . |
| Product Details | Purchase Type | Applied based on subscription or one-time purchase items. |
| Shipping Address | Country | Applied based on the entered shipping destination country. |
| Customer Details | Customer Tags | Applied based on specific tags assigned to the customer. |
| Customer Details | Number of past orders | Applied based on number of past orders placed by customer. |
| Customer Details | Customer Should Be Logged In | Applied only if the customer is logged in. |
| Customer Details | Customer Email | Applied based on the customer’s email. |
The condition picker is the same style used by
Custom Rule Builder
.
Product
,
Collection
, and
Variant
triggers have
Advanced Settings
with
Quantity/subtotal counted by
:
Across all selected items
(default),
Same variant
,
Same product
, or
Same collection
. Read
Count qualifying items
.
Navigate to header: Schedule Schedule
The
Schedule
section (renamed from
Active Dates
) controls when the rejection rule starts and ends.
Options:
Run continuously — selected by default. The rule has no start or end date.
Set a schedule — reveals start and end date or time fields.
Dates and times are in the time zone shown above the date fields. Read
Schedule time zone
for information about this.
Navigate to header: Save Save
Click
Save
after adding the discount codes to reject, choosing
Allow only one of these codes
and the
Message shown to customers
if needed, choosing the rejection condition, and setting the schedule.
The form shows
Rule Size
and a Shopify limit note. In the observed form, the rule size was shown against a
10 KB
Shopify limit.
Skip when discount codes are applied
Navigate to header: When to use this template
Navigate to header: Related template
Navigate to header: Top-level controls
Navigate to header: Status mode
Navigate to header: Select discount codes to reject
Navigate to header: Code matching and wildcards
Navigate to header: Allow only one of these codes
Navigate to header: Message shown to customers