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.
Related Advanced Rules templates
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
- Title
- Keep same as identifier
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.
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
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

