Custom Rule Builder - AIOD Discount & Gift
Discount templates
Custom Rule Builder
Template for building flexible AIOD discounts with custom conditions and item targets.
Use
Custom Rule Builder
when a merchant needs more control than the standard AIOD template forms provide.
This is a top-level template. In Shopify admin, open
Apps
>
AIOD Discount & Gift
>
Discount Templates
.
Custom Rule Builder
appears under
Popular Ways to Create Discounts
; click
Start creating
to open the form directly.
There is no longer an
Advanced Rules
parent card or
Select type
step.
The template card says: “Create highly flexible discounts with custom rules and conditions for products, customers, cart details, purchase type, and more.”
Navigate to header: When to use this template When to use this template
Use this template for:
Custom discount logic that does not fit a simpler template.
Discounts based on cart subtotal, order weight, cart quantity, products, collections, variants, metafields, purchase type, country, customer tags, past orders, login status, or customer email.
Discounts that should apply to all items, eligible condition items, specific items, or all items except selected items.
Product-level or order-level discount behavior.
Use
Reject Discount Codes
instead when the goal is to block specific discount codes when rules are met.
Navigate to header: Related template Related template
| Template | Use it for |
|---|---|
| Reject Discount Codes | Reject specific discount codes when matching conditions are met. It is a separate top-level template. |
Navigate to header: Top-level controls Top-level controls
The form includes:
Discount ID (For your reference) with placeholder eg: GET 20% OFF .
Discount Method .
When should this discount apply?
Apply discount to .
Where to apply the discount .
Discount Rules & Limits .
Purchase Type eligibility .
Sales channel .
Customer Segment .
Combinations .
Schedule .
Additional Settings .
Show Discounted Price Crossout .
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: Discount method Discount method
The
Discount Method
section supports:
Automatic discount
Discount code
For automatic discounts, AIOD shows:
Title
Keep same as identifier
AIOD says customers will see the title in cart and checkout.
Navigate to header: When should this discount apply? When should this discount apply?
The
When should this discount apply?
section controls the trigger condition. It is a single searchable dropdown (placeholder
Search conditions…
) rather than a multi-condition builder. The default is
Always
.
Click the dropdown 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. |
| 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. |
Navigate to header: Product condition example Product condition example
When
Product
is selected, AIOD shows:
Operator dropdown with matches any of , matches all of , and does not match any of .
Select products picker.
Empty state: No products selected .
Minimum Quantity of ANY above selected products in cart . The default shown is 1 .
Advanced Settings for the condition.
The form no longer shows
AND condition
or
OR condition
controls. Only one condition can be selected at a time; choosing a different condition from the dropdown replaces the current one instead of adding a rule block.
Navigate to header: Condition advanced settings Condition advanced settings
For product-style conditions, click
Advanced Settings
inside the condition block to reveal:
| Setting | Behavior |
|---|---|
| Quantity/subtotal counted by | Controls how selected items are counted toward the quantity or subtotal. |
| Across all selected items | Counts the total across all selected items. Different products combine. This is the default. |
| Same variant | Requires one variant to individually meet the requirement. |
| Same product | Allows variants of the same product to combine. Different products never combine. Not shown for Variant conditions. |
| Same collection | Allows items inside one selected collection to combine. Shown only for Collection conditions with matches any of or matches all of . |
| Purchase Type of each above selected items in cart | Choose Any , One Time , or Subscription . |
| Minimum Cart Subtotal of above selected items in cart | Sets a minimum subtotal for qualifying items. 0 means no minimum subtotal. |
| Maximum Cart Subtotal of above selected items in cart | Sets a maximum subtotal for qualifying items. 0 means no maximum limit. |
Use
Custom Rule Builder
when the merchant needs
Same product
,
Same variant
, or
Same collection
counting for a “buy X” requirement.
Buy X Get Y (Discount)
cannot count that way. Read
Count qualifying items
for every template that shows this control.
Navigate to header: Exclude items from conditions Exclude items from conditions
At the bottom of the
When should this discount apply?
card,
Exclude items (optional)
hides selected products, variants, or collections while the condition is checked.
Read
Exclude items from conditions
for information about this.
Navigate to header: Line item property condition Line item property condition
Use
Line Item Property
to qualify the discount on items with a custom property, such as
Engraving
. Read
Line Item Property condition
for the operators, the
Property names
field, and the two-name limit.
Navigate to header: Apply discount to Apply discount to
The
Apply discount to
section controls which items receive the discount.
Target options:
| Target option |
|---|
| Apply Discount to All |
| Apply Discount to Eligible Items (from condition) |
| Apply Discount to Specific Collection |
| Apply Discount to Specific Product |
| Apply Discount to Specific Variant |
| Apply Discount to Specific Variant whose Metafield |
| Specific line item property |
| Except line item property |
| Apply Discount Excluding Collection |
| Apply Discount Excluding Product |
| Apply Discount Excluding Variant |
Specific line item property
and
Except line item property
show a
Property names
field instead of an item picker. Read
Line item property discount targets
.
The default observed target was
Apply Discount to All
.
Navigate to header: Discount value Discount value
The
Discount Type
dropdown controls how AIOD interprets
Discount Value
.
Options:
Percentage
Fixed Discount
Fixed Final Price
Navigate to header: Where to apply the discount Where to apply the discount
The
Where to apply the discount
section controls discount scope.
| Option | Behavior |
|---|---|
| Product Level | Applies the discount to individual line items. This was selected by default. |
| Order Level | Applies the discount to the whole order total once at the end. |
Navigate to header: Discount rules and limits Discount rules and limits
The
Discount Rules & Limits
section includes:
| Setting | Observed behavior |
|---|---|
| Maximum Discount Amount | Adds a maximum total discount amount. |
| Limit Quantity of Discounted Items | Limits the number of discounted items. |
| Apply discount on the LEAST expensive items | Disabled in the observed default state. |
| Combo Discount | Disabled in the observed default state. |
| Multiply based on condition | Disabled in the observed default state. AIOD gives this example: buy 2 get 1, buy 4 get 2. |
| Apply zero-value discount to the condition items | Disabled in the observed default state. |
| Distribute the discount proportionally across condition and discounted items | Spreads the discount over the condition items and the discounted items by price. The total discount is unchanged. Unchecked by default, and disabled until the discount is a product discount with a product, collection, variant, or variant-metafield condition. Overrides Apply zero-value discount to the condition items . Read Distribute the discount proportionally across condition and discounted items for information about this. |
Navigate to header: Purchase type eligibility Purchase type eligibility
The
Purchase Type eligibility
section is now a standalone section on the form. It previously appeared inside
Advanced Settings (Optional)
; that option has moved out to its own section.
| Control | Behavior |
|---|---|
| Both | Applies to one-time purchases and subscriptions. Selected by default. |
| Subscription | Applies only to subscription purchases. |
| One time purchase | Applies only to one-time purchases. |
| Limit number of subscription cycles | Optional number input below the three options. Leave blank to allow all subscription cycles. |
Navigate to header: Sales channel Sales channel
Read
Sales channel
for the channels (
Online store
,
Tapcart mobile app
,
POS
), their defaults, and POS locations.
Navigate to header: Customer segment Customer segment
The
Customer Segment
section restricts the discount to selected Shopify customer segments.
AIOD describes this section as: “This discount will be only applicable for customers in the selected segments.”
Navigate to header: Combinations Combinations
The
Combinations
section (renamed from the generic combine-with link-out) controls which other discounts this offer can combine with.
Controls:
Product discounts checkbox. When checked, shows Tags this discount stacks with .
Order discounts checkbox.
Shipping discounts checkbox.
Read
This discount can be combined with
for the shared combination behavior, and
Tags this discount stacks with
for the stacking-tags field.
Navigate to header: Discount tags Discount tags
A
Discount tags
card appears in the right-hand column of the form. Read
Discount tags
for information about this.
Navigate to header: Schedule Schedule
The
Schedule
section (renamed from
Active Dates
) controls when the discount starts and ends.
Options:
Run continuously — selected by default. The discount 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: Additional settings Additional settings
The
Additional Settings
section is now always visible on the form; it is no longer behind a collapsed
Advanced Settings (Optional)
toggle. It includes:
| Setting | Behavior |
|---|---|
| Exclude already discounted items from discount (whose compare at price > selling price) | Excludes already discounted items based on compare-at price. |
| Apply this discount on the compare at price | Measures the discount against the compare at price, so an already discounted item receives only the remainder of the discount. Read Apply this discount on the compare at price for information about this. |
Purchase Type Eligibility
and the subscription-cycle limit moved out of this section into their own
Purchase type eligibility
section.
Navigate to header: Skip when discount codes are applied Skip when discount codes are applied
The last card in this section is
Skip when discount codes are applied
. It turns this offer off while the cart has one of the listed discount codes. Read
Skip when discount codes are applied
for information about this.
Navigate to header: Show discounted price crossout Show discounted price crossout
Read
Show Discounted Price Crossout
for the shared storefront strikethrough pricing controls and placement steps.
Line item property discount targets
Distribute the discount proportionally across condition and discounted items
This discount can be combined with
Tags this discount stacks with
Apply this discount on the compare at price
Skip when discount codes are applied
Show Discounted Price Crossout
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: Discount method
Navigate to header: When should this discount apply?
Navigate to header: Product condition example
Navigate to header: Condition advanced settings
Navigate to header: Exclude items from conditions
Navigate to header: Line item property condition
Navigate to header: Apply discount to
Navigate to header: Discount value
Navigate to header: Where to apply the discount
Navigate to header: Discount rules and limits
Navigate to header: Sales channel
Navigate to header: Customer segment
Navigate to header: Combinations
Navigate to header: Discount tags
Navigate to header: Additional settings