Skip to main content
Use Custom Rule Builder when a merchant needs more control than the standard AIOD template forms provide. This template is inside the Advanced Rules parent template. In Shopify admin, open Apps > AIOD Discount & Gift > Discount Templates, click Create on Advanced Rules, then choose Custom Rule Builder on the Select type page. The parent card says: “Create custom logic and complex promotions.” The parent example shown in AIOD is “Get 20% off shirts, free gift and free shipping.” The inner template card says: “Build complex, flexible discounts with custom rules and 15+ triggers!”

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 need AND or OR condition groups.
  • 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. The Advanced Rules parent opens two inner templates:

Top-level controls

The form includes:
  • Discount ID (For your reference) with placeholder eg: GET 20% OFF.
  • Discount Method.
  • When to apply discount.
  • Select items to apply discount on.
  • Where to apply the discount.
  • Discount Rules & Limits.
  • Sales channel.
  • Customer Segment.
  • This discount can be combined with.
  • Active Dates.
  • Advanced Settings (Optional).
  • Show Discounted Price Crossout.

Status mode

The top-right status dropdown controls who can use or see the discount.

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.

When to apply discount

The When to apply discount section controls the trigger conditions. The default is Always. Click the condition button to choose a trigger.

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.
  • AND condition.
  • OR condition.
Use AND condition and OR condition to combine multiple rule blocks.

Condition advanced settings

For product-style conditions, click Advanced Settings inside the condition block to reveal:

Select items to apply discount on

The Select items to apply discount on section controls which items receive the discount. Target options: The default observed target was Apply Discount to All.

Discount value

The Discount Type dropdown controls how AIOD interprets Discount Value. Options:
  • Percentage
  • Fixed Discount
  • Fixed Final Price

Where to apply the discount

The Where to apply the discount section controls discount scope.

Discount rules and limits

The Discount Rules & Limits section includes:

Sales channel

The Sales channel section controls where the discount applies. Available channels:
  • Online store
  • POS
Both were checked by default in the observed form. When POS is enabled, All locations opens the location selector.

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.”

How should this discount combine with other discounts?

Read This discount can be combined with for information about this.

Active dates

The Active Dates section controls when the discount starts and ends. Default fields:
  • Start Date
  • Start Time
Enable Set end date to reveal end date and time fields.

Advanced settings

Click Show in Advanced Settings (Optional) to reveal:

Show discounted price crossout

Read Show Discounted Price Crossout for the shared storefront strikethrough pricing controls and placement steps.