When to use this template
Use this template for:- Blocking one or more discount codes for a matching cart.
- 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.
Related Advanced Rules templates
The Advanced Rules parent opens two inner templates: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.
- Active Dates.
Status mode
The top-right status dropdown controls who can use or see the discount.Select discount codes to reject
The Select Discount Codes To Reject section controls which codes AIOD should reject. Controls:- Add Code text input with placeholder
Enter discount code. - Add Code button.
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.
The condition picker is the same style used by Custom Rule Builder.
Active dates
The Active Dates section controls when the rejection rule starts and ends. Default fields:- Start Date
- Start Time
Save
Click Save after adding the discount codes to reject, choosing the rejection condition, and setting active dates. The form shows Rule Size and a Shopify limit note. In the observed form, the rule size was shown against a10 KB Shopify limit.
