# AIOD Discount & Gift

> Full text of the AIOD Discount & Gift documentation, including the AIOD MCP server reference for AI agents.

---

Source: https://aiodapp.com/docs/

---
title: "AIOD discount knowledge base"
description: "Use these docs to understand AIOD discount templates, settings, and where each option appears in the Shopify app."
---

AIOD Discount & Gift is a Shopify app for creating product, order, gift, shipping, and advanced promotional discounts.

These docs are optimized for LLMs and MCP clients. Start with a discount template, then read the template page for its settings, eligibility rules, limits, and picker behavior.

Use this knowledge base as the source of truth for AIOD's merchant-facing UI, features, settings, tabs, templates, widgets, analytics, and configuration behavior.

## AI agents and MCP

AIOD runs an MCP server, so an AI assistant can read, build, and report on a store's discounts directly. Start at [AIOD MCP server](/mcp-server) for what it does and how to connect it, or the [Quickstart](/mcp-server/quickstart) to set it up now. Building your own agent? Read the [Agent guide](/mcp-server/agent-guide) and the [tool reference](/mcp-server/tools).

## App navigation

AIOD appears in Shopify admin under **Apps** > **AIOD Discount & Gift**.

The AIOD app navigation includes these tabs:

| Tab | Use it for |
| --- | --- |
| **AIOD Discount & Gift** | Open the app home page with onboarding steps, summary metrics, the Dex prompt, ideas that need review, existing discounts, setup-call and feedback cards. |
| **Discount Templates** | Open the **Select Discount Type** page and create product, order, gift, shipping, BOGO, volume, or custom-rule discounts. |
| **Discount Widgets** | Manage storefront widgets used by AIOD discounts, including callouts, offer messages, progress bars, volume bundles, free gift widgets, strike-through price references, discount-code inputs, BOGO widgets, and Upsell. |
| **Settings** | Configure widget selectors, free gift behavior and popup translations, custom CSS or JavaScript, storefront currency locale, side cart initialization delay, and the Tapcart mobile app integration. |
| **Pricing** | Review AIOD plan and billing options. |
| **Promo Planner** | Ask an AI analyst about the store's Shopify sales data, and get a promotion plan with projected sales, promo spend, and incremental revenue that opens in the discount editor for review. |
| **Dex AI** | Open Dex, AIOD's AI assistant. The merchant describes the promotion, and Dex chooses a template, fills the discount form, and opens it for the merchant to review, edit, and save. Dex is also available from the **Ask Dex** button at the bottom-right of every AIOD page. See [Dex](/app/home#dex-your-ai-discount-assistant). |
| **Suggestions** | Review discount ideas Dex found in the store's order data, and open one with Dex. |
| **Analytics** | Review AIOD-influenced revenue, discount totals, discounted orders, order details, and CSV exports. |

Read [App home](/app/home) for the **AIOD Discount & Gift** home page. Read [POS discounts](/app/pos-discounts) for Shopify POS behavior, POS Pro and POS Lite limitations, and the AIOD POS tile extension setup. Read [Discount Widgets](/app/discount-widgets) for the **Discount Widgets** tab. Read [Common template settings](/app/common-template-settings) for **Show Discounted Price Crossout**, **Where should the widget appear?**, **This discount can be combined with**, **Exclude items from conditions**, **Apply this discount on the compare at price**, and **Sales channel** (online store, POS, Tapcart mobile app). Read [Promo Planner](/app/promo-planner) for the **Promo Planner** tab. Read [Analytics](/app/analytics) for the **Analytics** tab. Read [Settings](/app/settings) for the **Settings** tab.

## How AIOD discounts are configured

AIOD starts every discount from a template.

1. The merchant opens **Discount Templates**.
2. The merchant chooses the template that matches the promotion type.
3. AIOD opens a template-specific form.
4. The merchant configures discount method, target items, value, channels, eligibility, combinations, dates, and optional advanced rules.
5. The merchant saves the discount.

After a discount is saved, opening that discount shows a top-level **Duplicate** button inside the discount form. Use it to duplicate the saved discount from within the form, duplicate can also be done from the **Your Discounts** table on app home.

## POS discounts

Use [POS discounts](/app/pos-discounts) when a merchant asks how AIOD discounts behave in Shopify POS.

POS eligibility is configured inside the discount template form, usually in **Sales channel**. The AIOD POS tile does not make a discount POS-eligible; it lists applicable POS discounts and lets merchants apply code-based discounts from Shopify POS.

Automatic AIOD discounts work on **POS Pro** only. Automatic discounts do not work on **POS Lite** because Shopify POS Lite does not support automatic discounts. This is a Shopify POS limitation, not an AIOD Discount & Gift limitation.

## Template index

<Card title="Discount Specific Item" icon="tag" href="/templates/discount-specific-item">
  Use this template to discount specific collections, products, variants, or all items.
</Card>

<Card title="Combined Multi Discounts" icon="layers" href="/templates/combined-multi-discounts">
  Use this template to add any number of product, gift, shipping, or order discount blocks under one AIOD discount or code.
</Card>

<Card title="Free Gift with Purchase" icon="gift" href="/templates/free-gift-with-purchase">
  Use this template to auto-add gifts, let customers choose gifts, or unlock gifts with a discount code.
</Card>

<Card title="Tiered free gifts" icon="gift" href="/templates/tiered-free-gifts">
  Use this inner Free gifts template to unlock a different gift at each spend or quantity level, with a tiered gift widget.
</Card>

<Card title="Buy X Get Y (Discount)" icon="percent" href="/templates/buy-x-get-y-discount">
  Use this inner BOGO template to discount Y items when qualifying X items are purchased.
</Card>

<Card title="Buy X @ Fixed Price (Discount)" icon="badge-dollar-sign" href="/templates/buy-x-fixed-price-discount">
  Use this inner BOGO template to sell a required quantity of selected items for one combined fixed price.
</Card>

<Card title="Buy X Get Y (Gift)" icon="gift" href="/templates/buy-x-get-y-gift">
  Use this inner BOGO template to add or offer gift variants when qualifying X items are purchased.
</Card>

<Card title="Tiered Discount" icon="chart-no-axes-column-increasing" href="/templates/tiered-volume-discount">
  Use this template to offer quantity-based or cart-value-based tiers with discounts, free gifts, shipping rewards, and progress widget messaging.
</Card>

<Card title="Volume Discount / Bundle" icon="boxes" href="/templates/volume-discount-bundle">
  Use this template to create selectable quantity bundle offers with optional discounts, shipping rewards, free gifts, and a card or table widget.
</Card>

<Card title="Shipping Discount" icon="truck" href="/templates/shipping-discount">
  Use this template to create free shipping, discounted shipping, or shipping-method-specific offers.
</Card>

<Card title="Custom Rule Builder" icon="workflow" href="/templates/custom-rule-builder">
  Use this template to build flexible discounts with custom conditions, targets, values, and limits.
</Card>

<Card title="Reject Discount Codes" icon="ban" href="/templates/reject-discount-codes">
  Use this template to reject specific discount codes when matching rules are met.
</Card>

<Card title="Upsell" icon="shopping-bag" href="/templates/upsell">
  Use this template to recommend related products with an optional percentage or fixed discount widget.
</Card>

## Template selection guide

Use **Discount Specific Item** when the merchant asks for a direct product, variant, collection, or all-item discount, including percentage off, fixed amount off, or fixed final price.
Use another template for free gifts, BOGO logic, volume tiers, shipping discounts, or multi-discount bundles.

Use **Combined Multi Discounts** when the merchant asks for multiple discount blocks under one automatic discount or one code. Each block can be a **Product Discount**, **Free Gift**, **Shipping Discount**, or **Order Discount**, and the merchant can add any number of blocks.

Use **Free Gift with Purchase** when the merchant asks for gifts that unlock after cart conditions are met, such as "Buy 2 shirts, get 1 cap free."

Use **Tiered free gifts** when the merchant asks for a gift ladder, where different gifts unlock at different spend or quantity levels, such as "Spend $50 get Gift A, spend $100 get Gift B." Every tier gives gifts.

In the app UI, **Free gifts** is a parent template card. Click **Create** on that card first. AIOD then opens a **Select type** page with two inner templates:

| Inner Free gifts template | Use it for |
| --- | --- |
| **Simple free gifts** | One gift offer that unlocks when a condition is met. Documented as [Free Gift with Purchase](/templates/free-gift-with-purchase). |
| **Tiered free gifts** | Different gifts per tier. Documented as [Tiered free gifts](/templates/tiered-free-gifts). |

Use **Buy X Get Y (BOGO)** when the merchant asks for BOGO, buy-X-get-Y, mix-and-match, fixed-price bundle, or buy-X-get-gift logic.

In the app UI, **Buy X Get Y (BOGO)** is a parent template card. Click **Create** on that parent card first. AIOD then opens a **Select type** page with three inner templates:

| Inner BOGO template | Use it for |
| --- | --- |
| **Buy X Get Y (Discount)** | Discount Y items after qualifying X items are purchased. |
| **Buy X @ Fixed Price (Discount)** | Sell a required quantity of selected items for one combined fixed price. |
| **Buy X Get Y (Gift)** | Add or offer gift variants after qualifying X items are purchased. |

Use **Tiered Discount** when the merchant asks for quantity breaks, volume discounts, spend-more-save-more offers, tiers that mix gifts with discount or shipping rewards, tiered shipping rewards, or a progress bar that shows how close the customer is to the next reward. For tiers that only give gifts, use **Tiered free gifts**.

Use **Volume Discount / Bundle** when the merchant asks for selectable quantity bundle cards or a bundle table. Each offer can use a percentage discount, fixed discount, shipping reward, no price discount, an optional free gift, and an optional badge. In **Discount Widgets**, the shortcut is named **Volume Bundle Widget**, and it opens the same form titled **Volume Bundle**.

Use **Shipping Discount** when the merchant asks for a shipping-only offer, such as free shipping, discounted shipping, fixed final shipping price, or a discount that applies only to selected shipping methods.

Use **Custom Rule Builder** when the merchant asks for custom logic, complex promotions, or flexible condition triggers. Use **Reject Discount Codes** when the merchant asks to block specific discount codes when rules are met.

In the app UI these are two separate top-level templates. There is no longer an **Advanced Rules** parent card or **Select type** step.

| Template | Use it for |
| --- | --- |
| **Custom Rule Builder** | Build a custom discount with flexible conditions, targets, values, and limits. Shown under **Popular Ways to Create Discounts**; opens with **Start creating**. |
| **Reject Discount Codes** | Reject specific discount codes when matching conditions are met. Shown under **Explore more discount templates**; opens with **Create**. |

Use **Upsell** when the merchant asks to recommend products after trigger products enter the cart, optionally with a percentage or fixed discount. The **Upsell** card in **Discount Widgets** opens the same form as the **Upsell** card in **Discount Templates**.

## Known templates

Opening **Discount Templates** loads a page titled **Select Discount Type**. It starts with a **Create with Dex** banner ("Describe your discount in plain English and let AI configure it"), then two grouped sections.

**Popular Ways to Create Discounts** (each opens with **Start creating**):

- **Custom Rule Builder**: Create highly flexible discounts with custom rules and conditions for products, customers, cart details, purchase type, and more.
- **Combined Multi Discounts**: Combine multiple discounts into one offer (eg: free gift + shipping + product discount), with flexible conditions.

**Explore more discount templates** (each opens with **Create**):

- **Free gifts**: Automatically add a gift or let customers choose their gift when they qualify. Opens a **Select type** page with **Simple free gifts** and **Tiered free gifts**.
- **Buy X Get Y (BOGO)**: Buy one, get one or mix-and-match offers.
- **Tiered Discount**: Offer tiered discounts based on quantity or cart value of items purchased.
- **Volume Discount / Bundle**: Create selectable bundle offers with optional gifts and shipping rewards.
- **Shipping Discount**: Offer free shipping or discounted shipping when conditions are met.
- **Upsell**: Recommend related products with an optional automatic discount widget.
- **Discount Specific Item**: Apply discount to Product / Variant / Collection. Show strike-through prices on the product & collection pages.
- **Reject Discount Codes**: Reject specific discount codes when the rules are met.

## Help and troubleshooting

<Card title="Limit an automatic discount to once per customer" icon="user-check" href="/help/limit-automatic-discount-once-per-customer">
  Use a customer tag and Shopify Flow when one automatic promotion should be redeemed once by each customer.
</Card>

## Navigation for AI agents

When answering questions about AIOD:

- First identify the merchant's intended promotion.
- Match the promotion to a template.
- Open the matching template page.
- Use the setting names exactly as they appear in the Shopify app.
- Mention where the setting appears in the form.
- State when a setting is conditional, disabled, or only visible after another option is enabled.

---

Source: https://aiodapp.com/docs/quickstart

---
title: "Quickstart for AI agents"
description: "Use these docs as an AIOD Discount & Gift knowledge base through Mintlify, MCP, or direct file access."
---

Use this guide when you connect an LLM, MCP client, or coding agent to these docs.

## Start here

Read `index.mdx` first. It explains how AIOD discounts are configured and maps common merchant requests to the right template.

Then open the matching page in `templates/` for setting-level details.

## Recommended retrieval flow

1. Identify the merchant's promotion goal.
2. Match the goal to an AIOD template.
3. Read the template page before answering.
4. Use exact setting names from the docs.
5. Mention the tab or section where each setting appears.
6. State when settings are conditional, disabled, or only visible after another option is enabled.

## Template pages

Current full template docs include:

- **Discount Specific Item**
- **Combined Multi Discounts**
- **Free Gift with Purchase**
- **Tiered free gifts**
- **Buy X Get Y (Discount)**
- **Buy X @ Fixed Price (Discount)**
- **Buy X Get Y (Gift)**
- **Tiered Discount**
- **Shipping Discount**
- **Custom Rule Builder**
- **Reject Discount Codes**

## Connect to the AIOD MCP server

These docs are one half of the picture. AIOD also runs an MCP server that gives an agent live access to a store's discounts — listing them, reading their configuration, reporting performance, and creating new ones.

Read [AIOD MCP server](/mcp-server) and the [MCP quickstart](/mcp-server/quickstart) to connect Claude, Cursor, VS Code, or any other MCP client.

---

Source: https://aiodapp.com/docs/app/home

---
title: "App home"
description: "Home page for AIOD Discount & Gift, including onboarding steps, summary metrics, the Dex AI assistant, ideas that need review, discount list, support cards, feedback."
---

Use **App home** when a merchant asks about the first screen of AIOD Discount & Gift or the app dashboard.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift**.

AIOD opens the app home page at the app root. The page title is **AIOD (All-In-One Discount) & Gifts** and the subtitle says: "One app to replace all other discount apps!"

The top right of the page has two controls:

- **Create discount** — starts a new discount. When the store already has discounts, it opens **Discount Templates**.
- A bell button that opens [**Latest updates**](#latest-updates).

## Latest updates

The bell button at the top right of the home page, to the right of **Create discount**, opens a **Latest updates** dropdown with AIOD announcements, such as security notices. A red dot on the bell means there is an update the merchant has not opened yet. Opening the dropdown clears the dot. The read state is remembered per browser.

The dropdown header shows **Latest updates** and the number of updates. Each entry shows:

- A tag: **Security**, **New**, or **Fixed**.
- The date.
- A title and the first line of the text.

Click an entry to expand it (**Read more**) or collapse it (**Show less**). An expanded entry can show a green callout, such as "Not affected. No action needed.", and a link to an external notice. The newest unread entry opens already expanded. The list ends with "You're all caught up".

Observed entries:

| Tag | Title | Callout |
| --- | --- | --- |
| **Security** | **AIOD (All-In-One Discount) & Gifts has the latest security fixes** (Node.js security release of October 21, 2026, installed on all AIOD servers) | "Updated. No action needed." |
| **Security** | **AIOD (All-In-One Discount) & Gifts is not affected by the PHP2Shell vulnerability** (AIOD doesn't use PHP) | "Not affected. No action needed." |

Treat entries as announcements, not settings. Neither entry requires merchant action.

## Connect MCP

The home page shows a **Connect to AI agents** card below **Your Discounts**: "Use your discounts from Claude, ChatGPT or any AI agent via MCP." Its **Connect MCP** button opens a dialog titled **Connect AIOD (All-In-One Discount) & Gifts to your AI assistant** for connecting the AIOD MCP server to an AI client.

The dialog has three tabs:

| Tab | What it shows |
| --- | --- |
| **Claude** | "Open the AIOD listing in Claude's connector directory and click **Connect**. Nothing to copy." An **Add to Claude** button opens the connector directory listing. |
| **ChatGPT** | Instructions to turn on ChatGPT **Developer mode** (**Settings → Security and login → Developer mode**), then add an app with the AIOD MCP server address. The address is shown with a **Copy** button. Available on paid ChatGPT plans. |
| **Other** | "Cursor, VS Code and other assistants take the address directly." Shows the AIOD MCP server address with a **Copy** button. |

The dialog explains that the merchant is sent back to Shopify admin to approve the connection, and that a connected assistant can read discounts and build new ones but can never make a discount live for shoppers.

Dialog buttons:

- **Setup guide** — opens the [MCP server quickstart](/mcp-server/quickstart).
- **Done** — closes the dialog.

Read [AIOD MCP server](/mcp-server) for what the MCP server does and [Quickstart](/mcp-server/quickstart) for the full connection steps.

## Onboarding Steps To Get Started

The home page shows an expandable **Onboarding Steps To Get Started** section with a completion count, such as `2/3 completed`.

When expanded, the observed onboarding steps are:

| Step | Label | Control observed |
| --- | --- | --- |
| **Step 1** | **Create a discount** | Shows a **Completed** badge when done. |
| **Step 2** | **Activate theme extension** | Shows **Enable Now** when the theme extension still needs activation, or a **Completed** badge when done. |
| **Step 3** | **Activate free trial** | Shows a **Completed** badge when done. |

The section also has a **Watch Demo Video** link.

Use **Enable Now** when a merchant needs to activate the AIOD theme extension from the home page.

## Dex, your AI discount assistant

**Dex** is AIOD's in-app AI assistant. The merchant describes a promotion in plain English, and Dex picks the template, fills the discount form, and opens it in the editor. Nothing goes live until the merchant saves and activates the discount.

The home page card is titled **Dex, your AI discount assistant**.

| Control | Behavior |
| --- | --- |
| Prompt textbox | Describe the promotion in plain English. Placeholder observed: `e.g. 10% off orders over $100, excluding sale items`. |
| Send button | Sends the message to Dex. It is disabled until the merchant enters a message. Dex answers in a side panel next to the dashboard. |

### Ask Dex panel

An **Ask Dex** button sits at the bottom-right of every AIOD page. It opens Dex in a panel docked on the right side of the page, so the merchant can keep working while Dex answers. Close it with the arrow at the top-right of the panel.

The panel header shows **Dex** with a **Beta** badge and a history control for past conversations. A new conversation opens with the greeting: "Hi, I'm Dex. I can set up a discount, improve the one you're editing, or dig into how your store is selling."

What the merchant can do in the panel:

| Task | How it works |
| --- | --- |
| Set up a discount | Describe the promotion. Dex proposes the discount first, then builds it and opens it in the editor for review. |
| Edit the open discount | When a discount editor is open, the panel shows **Ask AI to modify this discount.** Dex changes the form in place. The form shows "Applied to this discount form. Nothing is saved until you save." |
| Answer questions | When Dex needs a detail, it asks with options to pick from, plus a free-text answer. Product and collection questions open a catalog picker. |
| Store insights | Ask how the store is selling or how discounts performed. For projections and a staged plan, ask the same question in **Promo Planner**. |
| Attach a file | The paperclip button (**Attach a file**) adds a `.csv`, `.tsv`, `.txt`, `.md`, or `.json` file, such as a list of product SKUs or customer emails, up to 30,000 characters. |
| Next step | After Dex builds a discount, it may offer one follow-up with a single tap, such as **Yes, limit it to one use per customer** or **Yes, show strike-through prices**. |

After Dex changes a discount in the editor, it checks the storefront preview. It shows "I checked the storefront preview and it looks right.", or a **Something looks off in the preview** notice that lists what it found.

When a setting can only be turned on in the editor, Dex names the exact checkbox for the merchant to select, instead of saying it can't be done.

The panel footer shows which AI assistants are connected through the AIOD MCP server ("Also connected: …"). If none are connected, it shows "Use Dex's tools in Claude or ChatGPT." with a **Connect** link that opens the [Connect MCP](#connect-mcp) dialog.

### Full Dex page

Dex also has its own page. Open it from the AIOD app navigation (**Dex AI**). The page is titled **Dex**, with the subtitle "Tell Dex what kind of discount you want, and it will prepare the setup for you." It has two panels:

**Chat**

| Control | Behavior |
| --- | --- |
| Prompt textbox | Placeholder `Ask Dex…`, with a send button and an **Attach a file** button. |
| **New chat** | Starts a fresh conversation. |
| **History** | Opens past Dex conversations. |
| Sample prompt chips | Observed chips: **Flat 10% off storewide**, **Buy 2 get 1 free**, **Tiered discount**, **Free gift on orders above $150**, **VIP customer discount**, **Combined multi discounts**, **Free shipping above $50**, **Shipping discount**. Selecting one fills the prompt box with a sample. |

**Configuration**

Shows "Your discount configuration will appear here after the AI generates it." After Dex runs, the generated discount appears here for the merchant to review before opening it in the editor.

### Needs review

When Dex finds a discount idea in the store's order data, the home page shows a **Needs review** card: "Ideas Dex found in your store's data". Each row shows the proposed discount and why. Row actions:

- **Review with Dex** — opens the Dex panel with that idea, so the merchant can review it and create the discount.
- **Dismiss** — removes the idea.

**See all** opens the **Suggestions** page (titled **Suggestions from Dex**), which lists every open idea. Open it from the AIOD app navigation (**Suggestions**).

## Your Discounts

The **Your Discounts** section lists existing AIOD discounts and provides shortcuts to create or manage discounts.

Top controls:

- **Ask Dex**
- **Create New Discount**

The table columns are:

| Column | Meaning |
| --- | --- |
| Checkbox | Selects a discount row. |
| **Discount ID** | Merchant-facing identifier for the discount. |
| **Type** | Shows the discount type, such as **Auto**, **Code**, **Combined**, or **Volume Bundle**. |
| **Discount Code** | Shows the code for code-based discounts, or `-` for automatic discounts. |
| **Status** | Shows current state. Observed value: **Active**. The shared discount statuses are **Active**, **Testing mode**, and **Deactivate**. |
| **Actions** | Row action buttons. |

Observed row actions are icon-only buttons for editing, duplicating, and toggling or viewing discount status.

Click **Create New Discount** to start a manual discount from **Discount Templates**. Click **Ask Dex** to create a discount with [Dex](#dex-your-ai-discount-assistant).

### Bulk actions

Select one or more discount rows with the table checkboxes to show bulk actions above the table.

The bulk toolbar shows the selected count, such as `1 discount selected`, `2 discounts selected`, or `3 discounts selected`.

Observed bulk actions:

| Bulk action | What it does |
| --- | --- |
| **Activate Now** | Activates the selected discounts. |
| **Deactivate** | Deactivates the selected discounts. |
| **Delete** | Deletes the selected discounts. |

Use the header checkbox to select all visible discount rows.

### Discounts that use a deprecated function

AIOD flags discounts that still run on its deprecated discount function. These discounts will stop working soon and need to be switched to the latest function.

When at least one discount is affected, **Your Discounts** shows a critical banner titled **Action required: switch deprecated discounts**: "Discounts marked **Action required** below use a deprecated discount function and will stop working soon. Open each one, follow the instructions to switch to the latest function, and test it once afterward because behavior may vary slightly."

Each affected discount shows a red **Action required** badge next to its name. Hovering the badge shows "Duplicate this discount to switch to the latest function".

Opening an affected discount shows a critical banner titled **Switch to Latest Discount Function**: "This discount uses a deprecated discount function and will stop working soon. **Duplicate** it now and save it to auto switch to the latest discount function, and test it once afterward because behavior may vary slightly."

To switch a discount:

1. Open the discount and click **Duplicate**, or use the **Duplicate discount** row action in **Your Discounts**.
2. Save the copy. The saved copy uses the latest discount function.
3. Test the copy, for example in **Testing mode**, because behavior may vary slightly.
4. Duplicating does not change the original discount. Deactivate or delete the original once the copy works, so both don't run at the same time.

Discounts on the latest function show no badge.

## Book a free set up call

The home page can show a support card titled **Book a free set up call**.

The card says: "Setting up discounts can be tricky. We're here to help!"

Controls:

- **Schedule Meeting**
- **Dismiss book a call card**

Use **Schedule Meeting** when the merchant wants help from the AIOD team.

## Share your feedback

The home page can show a feedback card titled **Share your feedback**.

The card asks: "How would you describe your experience using our app?"

Controls:

- **Good**
- **Bad**
- **Dismiss share feedback card**

Use this card only for app experience feedback, not discount configuration.

## What's new card

Below the feedback card, the home page can show a dismissible announcement card, observed as **AIOD (All-In-One Discount) & Gifts now powered by Rust!** with the line "Enjoy faster, smoother performance on large carts and heavy discount setups." and a **New in this update** list. Treat it as a changelog notice, not a setting.

## Create Discount Widgets

The home page includes a **Create Discount Widgets** section.

It says: "Boost sales with high-converting discount widgets like Discount Callout, Price Strike-through, Progress Bar, Free Gift, and more."

The section shows widget previews such as:

- Discounted price strike-through.
- Progress bar.
- Discount callout.
- Free gift.

Read [Discount Widgets](/app/discount-widgets) for the full widget list and widget settings.

Read [**Show Discounted Price Crossout**](/app/common-template-settings#show-discounted-price-crossout) for the shared crossout pricing UI and placement details.

## Status cards

Below the widgets section, the home page shows three status cards:

| Card | What it shows |
| --- | --- |
| **App status (theme embed)** | Whether the AIOD theme app embed is active. When active, it shows an **Active** badge and says the **Latest Widget Manager** is on so embed-driven widgets can load on the storefront. Includes a refresh control. |
| **Theme blocks** | A count of manual Shopify app-block placements that are enabled, such as `0/6 enabled`, with a **View details** link. |
| **Active offers** | The number of published AIOD discounts currently turned on in the store. |

## Recommended Apps

The home page can show a dismissible **Recommended Apps** section: "Checkout our suite of apps to help you increase conversion rates and boost your sales." It lists third-party Shopify apps in a horizontal carousel, each with an **Install App** or **Start For Free** button. These are not AIOD features.

## Support

The preferred support method is the live chat bubble. It floats in the bottom-left of every AIOD app page and connects the merchant to instant human support. The **Ask Dex** button at the bottom-right is the AI assistant, not support.

The second support method is email: `aiod-app@dtcdevelopers.org`.

The third support method is booking a call. Merchants can find the **Book a call** button on the AIOD home tab and the **Pricing** tab.

---

Source: https://aiodapp.com/docs/app/pos-discounts

---
title: "POS discounts"
description: "How AIOD Discount & Gift discounts behave in Shopify POS and how to enable the AIOD POS tile extension."
---

Use **POS discounts** when a merchant asks how AIOD discounts work in Shopify Point of Sale, Shopify POS Pro, Shopify POS Lite, or the AIOD POS tile.

This page explains POS behavior only. The control for whether a discount applies on POS remains inside each discount template, usually in the **Sales channel** section of the discount settings.

## Where POS eligibility is configured

Configure POS eligibility from the discount template form.

In templates that support sales channels, use **Sales channel** to choose whether the discount applies to:

- **Online store**
- **POS**

When **POS** is enabled, AIOD can show a location selector such as **All locations**. Use that selector to control which POS locations can use the discount.

Do not use the AIOD POS tile to make a discount POS-eligible. The tile shows and applies discounts that are already configured for POS in the discount settings.

The AIOD POS tile extension is optional. It is not required for AIOD discounts to work on POS.

## POS behavior

AIOD discounts can appear in Shopify POS when the discount is configured for **POS** and the current POS cart meets the discount's rules.

POS behavior depends on the discount method:

| Discount method | POS behavior |
| --- | --- |
| **Automatic discount** | The discount can apply automatically in Shopify POS when the cart qualifies and the merchant is using POS Pro. |
| **Discount code** | The discount can appear in the AIOD POS tile with an **Apply code** button. Clicking **Apply code** attempts to apply the code to the POS cart. |

For code-based discounts, **Apply code** can fail or have no effect if the POS cart does not meet the discount requirements. For example, the cart may not contain the required products, customer, quantity, subtotal, location, date, or other conditions.

## Shopify POS Pro and POS Lite behavior

Automatic AIOD discounts work on **POS Pro** only.

Automatic discounts do not work on **POS Lite** because Shopify POS Lite does not support automatic discounts. This is a Shopify POS limitation, not an AIOD Discount & Gift limitation.

For POS Lite, merchants should not expect automatic AIOD discounts to apply automatically in the POS cart.

## Enable the AIOD POS tile extension

Enable the AIOD POS tile from Shopify admin.

The extension only makes POS discount use easier. It lets merchants see available AIOD discounts in one place and click **Apply code** for code-based discounts instead of manually typing the discount code.

1. In Shopify admin, find the left navigation.
2. Under **Sales Channels**, click **Point of Sale**.
3. Click **Open Editor**.
4. In the editor, click **Add tile**.
5. Click **Embedded apps**.
6. Choose **AIOD**.
7. Click the AIOD tile that appears.
8. Click **Save**.

After saving, the AIOD tile appears in the Shopify POS interface.

## What the AIOD POS tile does

Click the AIOD POS tile in Shopify POS to open a list of AIOD discounts that are applicable on POS.

The tile can list both:

- Automatic discounts.
- Code-based discounts.

For code-based discounts, the tile shows an **Apply code** button. Click **Apply code** to attempt to apply that discount code to the POS cart.

Automatic discounts do not need the **Apply code** button because they are not code-based. They only work automatically in Shopify POS when Shopify supports automatic discounts for the merchant's POS plan and the cart qualifies.

## Troubleshooting POS discounts

If a discount does not appear or does not apply in Shopify POS, check:

- The discount's **Status** is **Active**.
- **POS** is enabled in the discount template's **Sales channel** settings.
- The current POS location is included when location targeting is configured.
- The POS cart meets the discount's product, collection, variant, quantity, subtotal, customer, date, schedule, and advanced-rule requirements.
- For automatic discounts, the merchant is using **POS Pro**, not **POS Lite**.
- For code-based discounts, the merchant clicked **Apply code** from the AIOD POS tile and Shopify accepted the code for the current cart.

## Save

The AIOD POS tile setup is saved from the Shopify POS editor. Click **Save** after adding the tile.

Discount POS eligibility is saved separately inside each AIOD discount template form.

---

Source: https://aiodapp.com/docs/app/discount-widgets

---
title: "Discount Widgets"
description: "Overview of AIOD ready-made widgets, including template-backed widgets and standalone widget forms."
---

Use **Discount Widgets** when a merchant wants storefront UI for AIOD promotions, such as callouts, offer cards, progress bars, volume bundles, gift selectors, strike-through prices, discount-code inputs, BOGO add-on widgets, or Upsell recommendations.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Widgets**.

AIOD opens **Theme Widgets**, which lists existing widgets by **Widget ID**, **Widget Type**, **Status**, and **Actions**. Each row's **Status** is **VISIBLE** or **HIDDEN**, and **Actions** provides a delete control.

Click **Create New Widget** to open **Ready-Made Widgets**. This page says: "Grab a Widget, tweak it a bit - And you're all set!"

## Available widgets

| Widget | Type | What it does |
| --- | --- | --- |
| **Discount Callouts** | Standalone widget | Creates a short storefront callout banner, optionally linked to an active AIOD discount. |
| **Offer Message Widget** | Standalone widget | Creates a card-style list of available offers, with optional discount links and discount-code display. |
| **Discount Progress Bar** | Template-backed widget | Opens the **Tiered Discount** template. Use the template's widget and tier settings instead of creating separate widget data. |
| **Volume Bundle Widget** | Template-backed widget | Opens the **Volume Discount / Bundle** template, whose form title is **Volume Bundle**. Use the template's bundle offer and widget design settings. |
| **Free gift** | Template-backed widget | Opens the **Free Gift with Purchase** template. Use the free gift template and its widget settings instead of creating separate widget data. |
| **Discounted Price Strike-through** | Template setting | Does not open a separate widget form. Enable **Show Discounted Price Crossout** inside any applicable discount template. It is not used for **Free Gift with Purchase**. |
| **Discount Code Input** | Standalone widget | Creates a cart or side-cart discount-code input where customers can enter AIOD discount codes. |
| **Buy X Get Y** | Template-backed widget | Opens the **Buy X Get Y (Discount)** template. Use that template's widget and discount settings instead of creating separate widget data. |
| **Upsell** | Template-backed widget | Opens the **Upsell** template. Use its trigger, offer-product, optional discount, placement, and widget design settings. |

AIOD also shows **More widgets launching soon!** and says merchants can contact support with widget requests.

## Template-backed widgets

Some cards in **Discount Widgets** are shortcuts to discount templates. Document and answer those widgets from the template page.

| Widget card | Opens or belongs to | Where to read details |
| --- | --- | --- |
| **Free gift** | **Free Gift with Purchase** | [Free Gift with Purchase](/templates/free-gift-with-purchase) |
| **Discount Progress Bar** | **Tiered Discount** | [Tiered Discount](/templates/tiered-volume-discount) |
| **Volume Bundle Widget** | **Volume Discount / Bundle**; the form title is **Volume Bundle** | [Volume Discount / Bundle](/templates/volume-discount-bundle) |
| **Buy X Get Y** | **Buy X Get Y (Discount)** | [Buy X Get Y (Discount)](/templates/buy-x-get-y-discount) |
| **Upsell** | **Upsell** | [Upsell](/templates/upsell) |

Do not invent separate configuration for these widget cards. They use the linked template forms.

## Widgets configured only inside a template

Some templates have a storefront widget but no card in **Ready-Made Widgets**. Open the template from **Discount Templates** and use its widget tab.

| Widget | Template and tab | Where to read details |
| --- | --- | --- |
| Fixed-price bundle widget, such as "Buy 2 for just $75", with eligible items and cart progress | **Buy X @ Fixed Price (Discount)** > **Widget** tab | [Buy X @ Fixed Price (Discount): Widget tab](/templates/buy-x-fixed-price-discount#widget-tab) |
| Tiered gift widget that lists each tier's gifts and lets customers claim them | **Tiered Discount** > **Gift Widget** tab, shown when a tier uses the **Free gift** reward | [Tiered Discount: Gift Widget](/templates/tiered-volume-discount#gift-widget) |

## Discounted Price Strike-through

**Discounted Price Strike-through** is not a separate widget form in the observed UI.

Use it when a merchant asks how to show compare-at style strike-through pricing for an AIOD discount. The merchant enables **Show Discounted Price Crossout** inside the discount template they are configuring.

The strike-through setting can be used in applicable discount templates except **Free Gift with Purchase**.

## Standalone widget theme extension warning

Standalone widget forms can show this warning: **Required: Theme Extension Should Be Enabled**.

The warning says the **Activate theme extension** button automatically enables the **Latest Widget Manager** extension. The merchant must click **Save** in the theme editor after activation.

Use this warning when a merchant asks why a widget is not appearing on the storefront.

## Discount Callouts

Open **Discount Widgets** > **Discount Callouts**.

The page title is **Discount Callouts**.

Use this widget to show a short banner-style message on product pages, cart pages, or side cart drawers.

### Widget Specific Settings

Controls:

| Control | Observed behavior or default |
| --- | --- |
| **Linked Discount** | Optional dropdown. Used to display the widget only when the selected discount is active. Includes **Select a discount**, **None (Unlink from discount)**, and available discounts. |
| **Widget Name (For you to easily identify it)** | Internal name input. Placeholder: `Enter widget name`. |
| **Widget Text** | Customer-facing callout text. Observed default: `Get 10% OFF Your 1st Order!`. Helper text: "Select text to add a link, or click an existing link to edit it." Read [**Add a link to widget text**](/app/common-template-settings#add-a-link-to-widget-text) for information about this. |
| **Show Icon** | Checked by default. When checked, icon controls are visible. |
| **Icon** | Opens icon selection. |
| **Icon Color** | Color input. Default observed: `#2d8100`. |
| **Icon Size** | Slider. Default observed: `25px`. |
| **Icon Gap** | Slider. Default observed: `7px`. |
| **Icon Margin Left** | Slider. Default observed: `0px`. |

### Global Settings

AIOD says these settings apply to all widgets of this type.

Controls:

| Control | Default observed |
| --- | --- |
| **Background Color** | `#eeffe5` |
| **Border Color** | `#abd992` |
| **Border Radius** | `8px` |
| **Padding** | `8px` |
| **Text Size** | `14px` |
| **Text Color** | `#2d8100` |
| **Link Color** | `#2d8100`. Color of links added inside **Widget Text**. Appears below **Text Size** and **Text Color**. |
| **Bold Text** | Unchecked. |
| **Italic Text** | Unchecked. |

Click **Create Widget** to create the callout.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

The form includes **Banner Preview**.

## Offer Message Widget

Open **Discount Widgets** > **Offer Message Widget**.

The page title is **Offer Message Widget**.

Use this widget to show one or more offer cards, such as automatic offers or discount-code offers.

### Widget Specific Settings

Controls:

| Control | Observed behavior or default |
| --- | --- |
| **Widget Name (For you to easily identify it)** | Internal name input. Placeholder: `Enter widget name`. |
| **Widget Heading** | Heading shown above the offer cards. Placeholder and default observed: `Available offers`. |
| **Offer text** | Offer title. Placeholder: `Eg. 10% off on first order`. |
| **Subtext** | Supporting text. Placeholder: `Eg. Auto applied`. |
| **Link discount (optional)** | Optional discount dropdown. Linked offers only appear when that discount is active and eligible on the storefront. |
| **Discount code (optional)** | Optional code input. Placeholder: `Enter code`. |
| **+ Add offer** | Adds another offer block, such as **Offer 2**. |

### Widget Style

AIOD says these settings apply only to this offer message widget.

**Spacing** controls:

- **Margin Top** slider. Default observed: `5px`.
- **Margin Bottom** slider. Default observed: `5px`.

**Heading** controls:

- **Heading text size**.
- **Heading text color**.
- **Bold heading text**.
- **Italic heading text**.
- **Show icon**.
- **Icon**.
- **Icon Color**.
- **Icon Size**.
- **Icon Gap**.
- **Icon Margin Left**.

**Card** controls:

- **Background Color**.
- **Border Color**.
- **Border Radius**.
- **Padding**.

**Offer Copy** controls:

- **Offer text size**.
- **Offer text color**.
- **Subtext size**.
- **Subtext color**.
- **Discount code color**.

Click **Create Widget** to create the offer message widget.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

The form includes **Banner Preview**.

## Discount Code Input

Open **Discount Widgets** > **Discount Code Input**.

The page title is **Discount Code Input Widget**.

Use this widget to let customers enter AIOD discount codes on the cart page or side cart drawer.

### Customize Input Widget

Controls:

| Control | Default observed |
| --- | --- |
| **Translations** | Opens the **Translations** dialog. |
| **Button Text** | `Apply` |
| **Button Color** | `#005bd1` |
| **Placeholder Text** | `Discount Code` |

### Error Messages

Controls:

| Control | Default observed |
| --- | --- |
| **Invalid Code Message** | `Enter a valid discount code` |

AIOD describes this as the message shown when a code is invalid or inapplicable.

### Widget Visibility

The **Show widget on Cart Page, Slide Cart Drawer** checkbox controls whether the discount-code input is visible.

It is checked by default in the observed form. AIOD says that when it is disabled, the widget will be completely hidden from the website.

The form includes **Widget Preview with Error States**, showing:

- The discount code input.
- The **Apply** button.
- The invalid-code message.

Click **Create Widget** to create the discount code input widget.

### Translations

Click **Translations** to open a dialog titled **Translations**.

When no translations exist, AIOD shows **No translations added yet** and a **Select a language to add** dropdown. Read [Widget translations](#widget-translations) for the full dialog.

## Widget translations

These widgets have a **Translations** button that translates the widget text into the store's other languages:

| Widget | Where the button is |
| --- | --- |
| **Discount Code Input** | **Customize Input Widget** card. |
| **Free Gift with Purchase** widget | **Widget Settings** tab > **Content**. |
| **Tiered Discount** progress bar | **Progress Bar Widget** tab, next to the tier messages. |
| **Tiered Discount** gift widget | **Gift Widget** tab > **Content**. |
| **Buy X Get Y (Discount)** widget | **Widget Settings** tab, top of the widget text card. |
| **Buy X @ Fixed Price (Discount)** widget | **Widget** tab, top of the **Widget content** card. |
| **Upsell** widget | **Widget Settings** tab, top of the widget text card. |
| **Volume Discount / Bundle** widget | **Widget Settings** tab, next to the **Widget content** heading. |

Click **Translations** to open a dialog titled **Translations**:

1. When no translations exist, AIOD shows **No translations added yet**. Choose a language in **Select a language to add**.
2. AIOD adds a tab for the language. Each field starts with the widget's current text. Edit the fields that should change.
3. Use **Add Language** to add more languages. Click the **x** on a language tab to remove that language.
4. Close the dialog and click **Save** in the widget or template form.

The language list comes from the store's Shopify languages. If the store has only one language, AIOD shows **No additional languages are configured for your store.** and asks the merchant to create a market in Shopify admin's **Markets** and assign it a new language.

On the storefront, customers see the translation for their store language. Customers browsing in a language without a translation see the widget's original text.

A new language starts with a copy of the widget's text at the time it was added. Editing the widget's own text later does not change languages that were already added, so update each translation too.

## Support

The widget page and widget forms show **Contact support:** followed by the AIOD support email.

---

Source: https://aiodapp.com/docs/app/common-template-settings

---
title: "Common template settings"
description: "Shared AIOD settings for discounted price crossout, widget placement, Shopify discount combinations, same cart line product discount stacking, sales channels (online store, POS, Tapcart mobile app), and the 100-collection limit per discount."
---

Use this page for settings that appear in multiple **AIOD Discount & Gift** template forms. A template page links here when the controls and behavior are shared.

## Show Discounted Price Crossout

Use **Show Discounted Price Crossout** when a merchant wants AIOD to show strikethrough discounted pricing on storefront surfaces for eligible discounts.

This shared setting appears inside applicable discount template forms. **Discount Widgets** also references it as **Discounted Price Strike-through**, but that card does not open a separate widget form.

### Where the setting appears

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**, open an applicable template, and find **Show Discounted Price Crossout** near the lower part of the discount form.

For widget discovery, open **Apps** > **AIOD Discount & Gift** > **Discount Widgets** and select **Discounted Price Strike-through**. AIOD directs the merchant back to the discount template setting.

### Top-level controls

| Control | Observed behavior |
| --- | --- |
| **Show strikethrough discounted pricing** | Main checkbox for enabling strikethrough discounted pricing. It was checked in the observed UI. |
| **Always show strikethrough regardless of discount rules** | Shows strikethrough pricing even when discount rules would not otherwise control the display. It was unchecked in the observed UI. |

Use **Show strikethrough discounted pricing** for normal discount-aware behavior. Use **Always show strikethrough regardless of discount rules** only when the merchant explicitly wants the display to ignore whether the discount rules match.

### Placement sections

After the top-level checkboxes, AIOD shows placement accordions for storefront surfaces.

| Placement section | Observed status | What it controls |
| --- | --- | --- |
| **1. On product page** | **Added** | Shows strikethrough discounted pricing on product pages. |
| **2. On collection page** | **Added** | Shows strikethrough discounted pricing on collection pages. |
| **3. On rest of the pages (homepage, search, etc.)** | Support action required | Covers collection-card pricing across other storefront pages, such as the homepage and search pages. |

Open **1. On product page** and add the **Product Page Crossout** app block to all required product pages or templates. Move the app block below the **Price** element, then click **Save** in the theme editor.

Open **2. On collection page** and add the **Collection Cards Crossout** app block to the required collection pages. Click **Save** in the theme editor. If the crossout does not appear, continue to the third section for code setup or support.

Open **3. On rest of the pages (homepage, search, etc.)** and click **Contact support** when the merchant needs strikethrough pricing on collection cards outside product and collection pages.

### Important behavior

- This setting changes storefront price display. It does not create a discount.
- The template still controls eligibility, targets, discount value, dates, channels, and status.
- Some templates or draft states can gate, disable, or hide the setting until the merchant provides enough valid discount context, such as target items and a discount value.
- **Discounted Price Strike-through** in **Discount Widgets** is a reference to this template setting, not a separate widget configuration form.

After changing this setting, click **Save** in the discount template form.

## Where should the widget appear?

**Where should the widget appear?** controls the storefront locations where an AIOD widget appears. Older versions of the form called this section **Widget display locations**.

The common location controls are:

| Location | Behavior |
| --- | --- |
| **Side Cart Drawer/ Cart Page** | Shows the widget in the side cart drawer or on the cart page. |
| **All product pages** | Shows the widget on every product page. |
| **Specific product pages** | Reveals **Select products**. The picker shows **No products selected** until the merchant selects products. |
| **Product Pages of Specific Collections** | Reveals **Select collections**. The picker shows **No collections selected** until the merchant selects collections. |

Some templates add or remove locations to match their widget:

- **Tiered Discount** also shows **Collection Pages**.
- **Volume Discount / Bundle** shows only **All product pages**, **Specific product pages**, and **Product Pages of Specific Collections**. It has no **Side Cart Drawer/ Cart Page** location and does not appear on collection pages.
- **Buy X @ Fixed Price (Discount)** shows **Side Cart Drawer/ Cart Page**, **All product pages**, and one eligible-pages toggle with no picker: **Product Pages of Eligible Collections** when the offer targets collections, or **Eligible Product Pages** when it targets products or variants. AIOD takes those pages from the offer's selected items. Read [Buy X @ Fixed Price (Discount): Where should the widget appear?](/templates/buy-x-fixed-price-discount#where-should-the-widget-appear).

Observed defaults vary by template:

| Template | Observed default locations |
| --- | --- |
| **Buy X Get Y (Gift)** | **Side Cart Drawer/ Cart Page** and **All product pages** were enabled. |
| **Tiered Discount** | **Side Cart Drawer/ Cart Page** was enabled. The **Gift Widget** tab has its own locations, also starting with **Side Cart Drawer/ Cart Page** enabled. |
| **Buy X @ Fixed Price (Discount)** | For a new discount, **Product Pages of Eligible Collections** or **Eligible Product Pages** is enabled. **Side Cart Drawer/ Cart Page** and **All product pages** are off. |
| **Volume Discount / Bundle** | **All product pages** was enabled. Turning on **Specific product pages** switched it off. |
| **Upsell** | **Side Cart Drawer/ Cart Page** and **All product pages** were enabled. |
| **Discount Callout** and **Offer Message Widget** | **Side Cart Drawer/ Cart Page** and **All product pages** were enabled. |

AIOD notes in **Tiered Discount** that the widget must be placed once manually for cart, product, and collection pages. AIOD places the side cart drawer widget automatically. Click **Place on cart page** to start manual cart-page placement.

The placement controls appear in the right-hand column of the **Offer** tab or the template's widget tab (**Widget Settings**, **Widget**, **Progress Bar Widget**, or **Gift Widget**), depending on the template. After changing the locations, click **Save** in the template form.

## Add a link to widget text

Several widget text fields (for example **Title**, **Unlocked title**, and **Sub text**) let the merchant turn part of the text into a link. The field shows the helper text: "Select text to add a link, or click an existing link to edit it."

To add a link:

1. Select (highlight) the words that should become the link.
2. A small toolbar appears above the selection with a link icon, a **Type or paste URL** input, and a checkmark button.
3. Enter the URL and click the checkmark to apply it.

Click an existing link inside the text to reopen the same toolbar and edit or remove its URL.

This is the same link-insertion control across every widget text field that supports it — document it once here and link to this section instead of repeating the steps on each template page.

## This discount can be combined with

**This discount can be combined with** controls Shopify discount stacking. Some forms shorten the heading to **Combinations** or describe these controls as the combines-with settings.

The available discount classes are:

| Option | Behavior |
| --- | --- |
| **Product Discount** or **Product discounts** | Allows the AIOD discount to combine with eligible product discounts. By default Shopify does not stack multiple product discounts on the same cart line; only the highest-value applicable product discount is applied. On Shopify Plus, [**Tags this discount stacks with**](/app/common-template-settings#tags-this-discount-stacks-with) can lift that limit for chosen discounts. |
| **Order Discount** or **Order discounts** | Allows the AIOD discount to combine with eligible order discounts. |
| **Shipping Discount** or **Shipping discounts** | Allows the AIOD discount to combine with eligible shipping discounts. |

Availability and observed defaults can vary by template:

| Template behavior | Observed values |
| --- | --- |
| **Discount Specific Item**, **Buy X @ Fixed Price (Discount)**, **Buy X Get Y (Discount)**, **Buy X Get Y (Gift)**, **Custom Rule Builder**, **Free Gift with Purchase**, and **Tiered Discount** | All three discount classes were available and checked. |
| **Shipping Discount** | **Product Discount** and **Order Discount** were available and checked. **Shipping Discount** was not shown as a combination option. |
| **Volume Discount / Bundle** | **Product discounts** was checked. **Order discounts** and **Shipping discounts** were unchecked. |

AIOD can show a compatibility summary such as `This discount currently combines with 2 existing discounts at checkout.` The exact count depends on the store's existing discounts. A discount in that list is badged **Same cart line** when it can also share a cart line with this one.

After changing the combination options, click **Save** in the template form.

### Tags this discount stacks with

**Tags this discount stacks with** lets two product discounts apply to the same cart line. Shopify normally applies only one product discount per line, so without tags the second discount is skipped on that line even when both discounts are set to combine.

This control appears indented under the **Product discounts** checkbox, above the help text `Only one product discount applies per cart line unless both discounts allow each other's tags.`

Tag matching works in both directions. Two discounts share a cart line only when:

- This discount lists one of the other discount's tags here, and
- The other discount lists one of this discount's [**Discount tags**](/app/common-template-settings#discount-tags).

Enter a tag and click **Add tag**. Added tags appear as removable chips. Tag matching ignores letter case.

| Requirement | Behavior |
| --- | --- |
| Shopify plan | Shopify Plus only. The control is hidden on other plans. |
| **Product discounts** | Must be checked. Clearing it hides the control, and the saved tags stop being applied. |
| Discount class | Product discounts only. The control does not appear on the **Shipping Discount** template. |

If tags are listed here but the discount has no **Discount tags** of its own, AIOD shows the warning `Also add a tag under Discount tags, or no other discount can allow this one onto the same cart line.` Matching fails in that state because the other discount has no tag of this one to allow.

On **Buy X Get Y** discounts, Shopify stacks only on the customer-gets products. The customer-buys products are not affected.

After changing the tags, click **Save** in the template form.

## Discount tags

**Discount tags** holds the tags this discount carries. Other product discounts refer to these tags when they decide what may share a cart line with this discount.

The card contains one control, **Tags on this discount**. Enter a tag and click **Add tag**. Added tags appear as removable chips.

Tags do nothing on their own. They only take effect when another product discount lists one of them under its own [**Tags this discount stacks with**](/app/common-template-settings#tags-this-discount-stacks-with), and this discount lists one of that discount's tags in return.

### Where the setting appears

On the **Discount Specific Item** and tiered discount forms, **Discount tags** appears in the right-hand column of the form. On the gift and **Buy X Get Y** forms it appears in the main form column near **Combinations**.

The card follows the same requirements as [**Tags this discount stacks with**](/app/common-template-settings#tags-this-discount-stacks-with): Shopify Plus, **Product discounts** checked, and a product discount class. It is hidden otherwise.

### Example

Two discounts that should both apply to the same shirt:

| Discount | Discount tags | Tags this discount stacks with |
| --- | --- | --- |
| `Bundle 20% off` | `bundle` | `sitewide` |
| `Sitewide 10% off` | `sitewide` | `bundle` |

Each discount allows a tag the other carries, so both apply to the same cart line. If `Sitewide 10% off` left its stacking tags empty, only one of the two would apply.

After changing the tags, click **Save** in the template form.

## Exclude items from conditions

**Exclude items from conditions** hides selected items while AIOD checks whether the discount qualifies.

Excluded items do not count towards a cart quantity, cart subtotal, item quantity, or item subtotal requirement, and they cannot satisfy a product, collection, or variant condition. A reward applied to the items a condition matched skips them too.

This setting does not control which items receive the discount. Use the template's discount target section for that, and **Exclude already discounted items from discount (whose compare at price > selling price)** for already discounted items.

### Controls

| Control | Behavior |
| --- | --- |
| **Exclude items (optional)** | Checkbox that reveals the exclusion options. It is unchecked until items are excluded. |
| **Exclude selected products** | Reveals a **Products** picker. |
| **Exclude selected variants** | Reveals a **Variants** picker. |
| **Exclude selected collections** | Reveals a **Collections** picker. |

The three options are radio buttons, so one item type is excluded at a time. Switching to another option clears the current selection. Clearing the checkbox drops the excluded items.

On tiered templates, the exclusion is written to every tier.

After changing the exclusion, click **Save** in the template form.

## Apply this discount on the compare at price

**Apply this discount on the compare at price** measures the discount against the item's compare at price instead of the price the customer is currently paying. On an item the merchant has already marked down, AIOD applies only the part of the discount that the markdown has not already covered.

Use it when a merchant advertises a percentage or amount off the compare at price and does not want sale items discounted twice.

### How AIOD calculates it

AIOD works out the target price from the compare at price, then applies the difference between the current selling price and that target.

| Compare at price | Selling price | Discount | Applied | Customer pays |
| --- | --- | --- | --- | --- |
| `100` | `80` | `30%` | `10` | `70` |
| `100` | `60` | `30%` | `0` | `60` |
| `100` | `80` | `$30` | `10` | `70` |
| None | `80` | `30%` | `24` | `56` |

An item already priced at or below the target gets no discount from this rule, because the advertised discount is already met. An item with no compare at price, or whose compare at price is not above its selling price, is unaffected and receives the full discount.

### Where the setting appears

The checkbox sits next to **Exclude already discounted items from discount (whose compare at price > selling price)**, or in the block's **Additional Rules & Limits** card on **Combined / Multi Discounts**.

The two settings are different choices about the same items:

| Setting | Effect on an already discounted item |
| --- | --- |
| **Exclude already discounted items from discount (whose compare at price > selling price)** | The item receives no discount at all. |
| **Apply this discount on the compare at price** | The item stays eligible and receives a smaller discount, so it lands on the advertised price. |

## Move overlapping tier discounts to other eligible items

**Move overlapping tier discounts to other eligible items** decides what happens when two unlocked tiers want to discount the same item. Shopify applies only one tier's discount to each cart line, so without this option the later tier's discount on that line is lost.

### Where the setting appears

On **Tiered Discount** and **Tiered free gifts**, the checkbox is inside the **Reward behavior** card on the **Offer** tab. It appears only while **Stack all unlocked tiers** is selected. It is unchecked by default.

On **Combined Multi Discounts**, the checkbox is in **Advanced Settings**. It appears only while **Allow Stacking Of Discounts** is unchecked, and each discount block counts as a tier. Read [Combined Multi Discounts](/templates/combined-multi-discounts#move-overlapping-tier-discounts-to-other-eligible-items).

Help text: "When two tiers pick the same item, the lower-numbered tier keeps it and the later tier is applied to the remaining quantity or a different eligible item instead of being lost."

### How AIOD applies it

- Tiers claim items in tier order, lowest tier number first.
- A later tier never takes units an earlier tier claimed. It applies to the units left on a shared line, or to another item it can discount.
- Tier order decides priority, not discount value. A later tier worth more can get fewer units than it would on its own.

Example: a cart line has 3 units of one product. **Tier 1** gives 100% off 1 unit. **Tier 2** gives 50% off up to 3 units. With the option on, **Tier 1** makes 1 unit free and **Tier 2** gives 50% off the remaining 2 units.

### Don't count discounted items toward later tiers

**Don't count discounted items toward later tiers** is a nested checkbox under **Move overlapping tier discounts to other eligible items**. It appears only while that option is checked. It is unchecked by default.

Help text: "Items a lower-numbered tier already discounted are used up: they no longer count toward the conditions of the tiers after it, such as minimum quantity or spend."

Use it when each item should count once. Example: **Tier 1** gives one product A free, and **Tier 2** requires buying 2 of product A. With 2 units of A in the cart, **Tier 1** uses one unit, so only 1 unit counts toward **Tier 2** and **Tier 2** does not unlock. Without this option, both units count and **Tier 2** unlocks.

Used-up items are removed from quantity counts, subtotals, and item conditions of later tiers.

Storefront and checkout previews, such as the tiered progress bar, do not account for either option. What they show can differ from what the discount applies at checkout.

After changing either option, click **Save** in the template form.

## Collection limit per discount

One AIOD discount can use at most `100` unique collections. Shopify sets this limit, not AIOD.

AIOD counts each collection once across the whole discount:

- Collection conditions, including **Offer-Wide Conditions**.
- Collection targets, such as **Apply Discount to Specific Collection** and **Apply Discount Excluding Collection**.
- Collections in [**Exclude items from conditions**](#exclude-items-from-conditions).
- Every tier or discount block on tiered and combined templates.

The same collection used in several places counts once.

When the count goes above `100`, the form scrolls to a red banner titled **Too many collections selected**. It says: "A discount can use a maximum of 100 total unique collections (This limit is set by Shopify, not by us). Remove some collections before saving." It also shows how many collections are currently selected. **Save** is disabled until the count is `100` or fewer.

To stay under the limit, use fewer, broader collections, or split the offer into more than one discount.

The limit applies to every discount template form, including product, gift, tiered, combined, and shipping discounts.

## Get Instant Help

A **Get Instant Help** link appears in the top-right corner of the **Select Discount Type** page, the BOGO and Advanced-Rules **Select type** pages, and inside discount template forms. It opens AIOD's support chat. It is not a discount setting; mention it only when a merchant asks how to reach support from within a template form.

### Limitations

- The setting applies to percentage and fixed amount discounts. Fixed final price and combo price rewards already set an exact price, so they ignore it.
- The setting is not shown for shipping discounts. A delivery option has no compare at price.
- On tiered and combined templates the setting applies to the whole campaign, not to one tier or block. Changing it from any block changes it everywhere.

This checkbox is off by default. After changing it, click **Save** in the template form.

## Sales channel

The **Sales channel** section controls where the discount applies. AIOD describes it as: "This discount will apply to the selected sales channels."

| Option | Applies the discount to |
| --- | --- |
| **Online store** | The Shopify online store. |
| **Tapcart mobile app** | Carts in the merchant's Tapcart mobile app. Shown only after Tapcart is turned on in [**Settings** > **Tapcart**](/app/settings#tapcart), or when the discount already has a Tapcart choice saved. |
| **POS** | Shopify POS. When checked, **All locations** opens a location selector with a `Search store` input, an **All Locations** checkbox, and the store's locations. Read [POS discounts](/app/pos-discounts). |

**Online store** and **POS** are checked by default. **Simple free gifts** and **Buy X Get Y (Gift)** do not show **POS**; **Tiered free gifts** does.

At least one channel stays selected. For example, unchecking **Online store** while **Tapcart mobile app** is unchecked selects **POS** instead, and unchecking **Tapcart mobile app** while **POS** is off re-selects **Online store**.

### App-exclusive discounts in Tapcart

To make a discount that applies only in the Tapcart mobile app, check **Tapcart mobile app** and uncheck **Online store** (and **POS**). AIOD shows this help text under the option: "Needs the AIOD Channel block in your Tapcart app (Settings → Tapcart). Uncheck Online store to make the discount app-exclusive."

AIOD tells an app cart from a website cart through the **AIOD Channel** block in the Tapcart app. Without that block, app carts are treated as online store carts. Free gifts are added in the app's cart by the **AIOD Free Gift** block. Read [**Tapcart**](/app/settings#tapcart) for the setup steps.

Discounts saved before Tapcart was turned on treat Tapcart app carts as online store carts. Their **Tapcart mobile app** checkbox shows the same state as **Online store** until the merchant changes it and saves.

---

Source: https://aiodapp.com/docs/app/analytics

---
title: "Analytics"
description: "Analytics tab for reviewing AIOD-influenced revenue, discount totals, discounted orders, order details, and CSV exports."
---

Use **Analytics** when a merchant wants to review orders and revenue influenced by AIOD discounts.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Analytics**.

The page title is **Analytics**.

## Top-level filters

Use the controls at the top of the page to choose which analytics data appears.

| Control | Default observed | What it does |
| --- | --- | --- |
| **Specific discount** | **All discounts** | Filters analytics to all AIOD discounts or one selected discount. |
| Date range button | **Last 30 days** | Opens the date range picker. |

The **Specific discount** dropdown includes **All discounts** and the store's current AIOD discount names.

## Date range picker

Click the date range button, such as **Last 30 days**, to open the date range picker.

Preset options observed:

- **Today**
- **Yesterday**
- **Last 14 days**
- **Last 7 days**
- **Last 30 days**
- **Last 60 days**
- **Last 90 days**
- **Last month**
- **Last 12 months**
- **Month to date**
- **Quarter to date**
- **Year to date**
- **All time**

The custom date controls are:

- **Since**
- **Until**
- Previous month button, shown as **Show previous month, {month} {year}**.
- Next month button, shown as **Show next month, {month} {year}**.
- Two visible calendar months.
- **Cancel**
- **Apply**

AIOD marks the selected start date as **Start of range** and the selected end date as **End of range**. If the end date is today, the calendar can label it **Today**.

## Summary metrics

Analytics shows four metric cards after the filters.

| Metric | Tooltip text observed |
| --- | --- |
| **Total Revenue** | Total revenue from orders influenced by the current AIOD filter set. |
| **Discount granted** | Total discount value granted by the current filter set. |
| **Discounted orders** | Orders containing at least one matching AIOD discount. |
| **Average order value** | Average influenced revenue per discounted order. |

Each metric card shows the value for the current **Specific discount** and date range filters.

## Revenue over time

The **Revenue over time** section shows a chart of daily net revenue from orders that match the active filters.

The section includes:

- A summary sentence with the total for the selected range.
- A chart labeled for influenced revenue by day.
- Date markers on the x-axis.
- Revenue markers on the y-axis.
- A **Peak day** value below the chart.

## Orders

The **Orders** section lists orders matching the active analytics filters.

Each order row shows:

- Order number.
- Order date.
- Item count.
- **Total**.
- **Discount**.
- **Discounts** used on the order.

Click an order row to expand **Products** for that order.

The expanded product table has these columns:

| Column | Meaning |
| --- | --- |
| **Product** | Product title from the order. |
| **Variant** | Variant title. |
| **SKU** | Variant SKU. |
| **Quantity** | Quantity purchased. |
| **Unit price** | Product unit price. |
| **Total** | Line total after pricing effects shown by the order row. |
| **Discount** | Discount amount shown for the product line. |

## Sort orders

Use **Sort orders** to change the order list sorting.

Observed sort options:

- **Newest first**
- **Oldest first**
- **Highest order value**
- **Lowest order value**
- **Highest discount value**
- **Lowest discount value**
- **Most items**
- **Fewest items**

The default observed sort is **Newest first**.

## Export and pagination

Click **Export to CSV** to download the current analytics order data as a CSV.

Pagination appears below the order list. It includes:

- **Previous page**
- Numbered page buttons.
- **Next page**
- A range summary such as `Showing 1-10 of 48 orders`.

The bottom of the page shows **Grand total** for the current filter set. The observed summary fields are:

- Order count.
- **Total**.
- **Discount**.
- **Avg order value**.

## Support

The bottom of the page shows **Contact support:** followed by the AIOD support email.

---

Source: https://aiodapp.com/docs/app/promo-planner

---
title: "Promo Planner"
description: "Promo Planner tab in AIOD: ask an AI analyst about the store's Shopify sales data and get a promotion plan with projected sales, promo spend, and incremental revenue."
---

Use **Promo Planner** when a merchant wants help deciding what to discount, how deep, and for which event, based on the store's own sales history. It also answers questions about sales, customers, stock, and past promotions.

Promo Planner is a planning and analysis tool. It does not create a live discount by itself. The merchant reviews the planned discount in the AIOD discount editor and saves it there.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Promo Planner**.

The page title is **Promo planner**. The subtitle says: "Ask about your sales, customers, stock or a promotion. The AI investigates your Shopify data and answers with evidence."

## Data Promo Planner reads

Promo Planner reads the store's data live from Shopify each time the merchant asks a question:

- Shopify Analytics sales history, such as weekly sales per product, store daily totals, discounts, and recorded cost of goods sold.
- The product catalog, shop currency, and country from Shopify admin.

AIOD needs access to Shopify Analytics for this. If the app does not have it yet, Promo Planner answers: "I need access to Shopify Analytics to read your sales history. Reopen the app from your Shopify admin to approve it, then try again."

Other messages the merchant can see:

| Situation | Message shown |
| --- | --- |
| No orders in the last year | "There are no sales for this store in the last year, so there's nothing to plan from yet. Come back once you have a few weeks of orders." |
| Shopify Analytics is rate-limited | "Shopify Analytics didn't respond just now (it limits how often it can be read). Try again in a minute." |
| The catalog could not be read | "I couldn't read your product catalog from Shopify. Try again shortly." |
| Large sales history | "Your sales history is large; only the most recent weeks were read." |
| Large catalog | "Your catalog is large; only the first 1,000 products were considered." |

## Start a conversation

Before the first question, the page shows a card titled **What do you want to know?** It says Promo Planner digs into Shopify Analytics (sales by category, channel and customer, trends, traffic and conversion, what sells together, stock, margins, and past promotions) and builds a promotion with projected results when the merchant wants one.

The card shows suggested questions as buttons. AIOD builds them from the store's data, such as an upcoming event and how it sold last year, recent movers, overstock, best sellers about to run out, discounts that barely lift demand, and thin margins. Hover a suggestion to see why it was suggested. While AIOD looks for these, the card shows "Looking for questions in your data…".

If no store-specific suggestions are available, the default questions are:

- **Help me create a promo for Thanksgiving**
- **Why were sales down last month?**
- **What's tying up cash in my stock?**
- **Which products should I bundle together?**

Click a suggestion, or type a question in the message box and click **Send**. Press Enter to send; Shift+Enter adds a new line. The message box placeholder is `Help me create a promo for Thanksgiving` before the first question and `Refine it: keep margins above 25%, leave dairy out, fewer items…` after it.

Click **New conversation** at the top of the page to clear the conversation and start again.

## Answers

While Promo Planner works, it lists each analysis as it runs, with "Working out what to look at…" before the first and "Writing up what I found…" at the end.

Each answer can include:

- A summary and a list of findings.
- A strategy for the promotion.
- **How I got here**, which expands to show the analyses Promo Planner ran.
- Follow-up question buttons that name a specific product, category, code, or number from the answer. Only the newest answer shows them.
- A promotion plan, when the merchant asked for one.

## Promotion plan

A plan lists the products to discount. Each product row shows:

- The product image, title, and category.
- A role badge when relevant, such as **Traffic driver** or **Clearance**, and a short reason the product was picked.
- The regular price (struck through), the promo price, and the discount percentage.
- A tooltip with the projected units, and whether stock limits them.

The plan shows the first 8 products. Click **N more items in this promotion** to show the rest, and **Show fewer** to collapse the list.

Below the products, three tiles show projections as a likely value with a range:

| Tile | Meaning |
| --- | --- |
| **Projected sales** | Projected sales for the planned products during the promotion. |
| **Projected promo spend** | Projected cost of the discounts. |
| **Incremental revenue** | Projected revenue above what the products would sell without the promotion. |

A chart breaks the plan down by product category. A summary line shows the promotion dates, the discount depths used (for example `20% off ×12`), and the projection confidence with notes.

Projections are estimates from the store's past sales, not guarantees.

### Refine the plan

- Click **Remove** on a product row to drop it from the plan. Removed products stay out of later answers in the same conversation.
- Ask a follow-up, for example to keep margins above a level, leave a category out, or use fewer items.

Only the newest plan in the conversation can be edited and turned into a discount.

## Review in editor

Under the newest plan, edit **Discount name** (defaults to the event name followed by `promo`) and click **Review in editor**.

AIOD drafts one automatic **Combined Multi Discounts** discount from the plan and opens it in the discount editor:

- One block per discount depth (Promo Planner uses 10%, 15%, 20%, and 30% off), each listing its products. Each product gets exactly one depth.
- The promotion's start and end dates, in the store's time zone.
- **Online store** and **POS** sales channels.

Nothing is saved until the merchant saves the discount in the editor. Review the products, dates, combinations, and status there, then save. Read [Combined Multi Discounts](/templates/combined-multi-discounts) for the editor's settings.

If the draft fails AIOD's checks, Promo Planner shows: "The discount didn't pass verification. Our team has been notified."

## Availability

Promo Planner appears in the AIOD Discount & Gift app navigation for every store. It needs Shopify Analytics access and sales history to build a plan.

---

Source: https://aiodapp.com/docs/app/settings

---
title: "Settings"
description: "Settings tab for AIOD widget selectors, free gift behavior and popup translations, custom CSS or JavaScript, global storefront settings, and the Tapcart mobile app integration."
---

Use **Settings** when a merchant wants to configure global AIOD storefront behavior rather than a single discount template.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Settings**.

The **Settings** hub shows five settings areas:

| Area | Description shown in AIOD |
| --- | --- |
| **Widget Selector Settings** | Select exact locations to display widgets. |
| **Free gift settings** | Configure gift messages and more. |
| **Custom JS / CSS** | Add custom JavaScript or CSS to your store. |
| **Global Settings** | Configure settings that apply across your store. |
| **Tapcart** | App-exclusive discounts and free gifts in your Tapcart app. |

Click a settings area to open its form. Subpages include a back control, observed as **Go back** or **Go to Home Screen**, that returns to the settings hub.

## Widget Selector Settings

Open **Settings** > **Widget Selector Settings**.

Use this page to add CSS selectors that control where AIOD widgets appear on the storefront. AIOD shows this note:

"NOTE: Here you can add the specific selectors to display the widgets at those locations in your store. It's recommended that you take help of a Developer to get the correct selectors or contact our support team."

### Global placement selectors

The first sections set general placement targets.

| Section | Field | Placeholder observed | Position default observed |
| --- | --- | --- | --- |
| **Product Page** | **CSS Selector** | `e.g: .product-form__buttons` | **Below** |
| **Cart Page** | **CSS Selector** | `e.g: .cart__footer` | **Above** |
| **Side Cart Header** | **CSS Selector** | `e.g: .cart-drawer__header` | **Below** |
| **Side Cart Footer** | **CSS Selector** | `e.g: .cart-drawer__footer` | **Above** |
| **Shadow DOM Selector (Side Cart Drawer)** | **CSS Selector** | `e.g: #upCart` | No position dropdown observed. |

Each **Position** dropdown has:

- **Above**
- **Below**
- **Inside top**
- **Inside bottom**

### Widget Specific Selectors

The **Widget Specific Selectors** section contains expandable widget groups.

Observed groups:

- **Gift Banner**
- **Progress Bar**
- **Discount Callout**
- **Offer Message Widget**
- **Volume Bundle Widget**
- **BXGY Widget**
- **Upsell Widget**

Click a group heading to reveal its selector fields.

A group is collapsed when it has no configured selector. If at least one selector in a group is already configured, AIOD opens that group automatically.

### Gift Banner selectors

When **Gift Banner** is expanded, AIOD shows:

| Field | Placeholder observed | Position default observed |
| --- | --- | --- |
| **PDP Selector** | `e.g: .product-form__buttons` | **Below** |
| **Side Cart Selector** | `e.g: .cart-drawer__footer` | **Above** |
| **Cart Page Selector** | `e.g: .cart__footer` | **Above** |

### Progress Bar selectors

When **Progress Bar** is expanded, AIOD shows:

| Field | Placeholder observed | Position default observed |
| --- | --- | --- |
| **Side Cart Selector** | `e.g: .cart-drawer__footer` | **Below** |

### Discount Callout selectors

When **Discount Callout** is expanded, AIOD shows:

### Offer Message Widget selectors

When **Offer Message Widget** is expanded, AIOD shows:

### Volume Bundle Widget selectors

When **Volume Bundle Widget** is expanded, AIOD shows:

| Field | Placeholder observed | Position default observed |
| --- | --- | --- |
| **PDP Selector** | `e.g: .product-form__buttons` | **Below** |

### BXGY Widget selectors

When **BXGY Widget** is expanded, AIOD shows:

### Upsell Widget selectors

When **Upsell Widget** is expanded, AIOD shows:

### Save Widget Selector Settings

Click **Save Settings** to save selector changes.

The observed **Save Settings** button is disabled until a setting changes. When a change is made, Shopify also shows an **Unsaved changes** toolbar with **Discard** and **Save**.

## Gift Settings

Open **Settings** > **Free gift settings**.

The page title is **Gift Settings**.

Use this page to control global gift add/remove popup messages, popup styling, typography, manual gift quantity behavior, and cart auto reload behavior (both during and after the reload) for gifts.

### Gift Messages

The **Gift Messages** section says: "Configure the popup messages shown when a gift is added or removed from the cart. NOTE: Changes apply to all gifts."

Controls:

| Control | Observed value or behavior |
| --- | --- |
| **Disable gift add/remove popup messages** | Checkbox. When checked, the gift message fields and popup style controls are hidden. |
| **Gift Added Message** | Text input. Placeholder observed: `Free gift added to your cart!`. |
| **Gift Removed Message** | Text input. Placeholder observed: `Free gift removed from cart as you no longer qualify.` |
| **Translations** | Button at the top right of the **Gift Messages** card. Shown only while popup messages are enabled. Opens the [**Translations**](#gift-message-translations) modal. |

### Gift message translations

Use **Translations** when the store sells in more than one language and the gift popups should match the shopper's language.

Click **Translations** on the **Gift Messages** card. AIOD opens a **Translations** modal:

- With no translations yet, the modal shows **No translations added yet** and a **Select a language to add** dropdown (placeholder **Choose a language...**) listing the store's languages.
- After a language is added, it appears as a chip. Click a chip to edit that language, or its **x** to remove it. Use the **Add Language** dropdown to add another.
- For the selected language, enter **Gift Added Message** and **Gift Removed Message**.

If the store has no additional languages, the modal shows "No additional languages are configured for your store." and asks the merchant to create a market in Shopify admin **Markets** and assign it a new language first.

Close the modal, then click **Save Settings** on **Gift Settings** to save the translations.

On the storefront, the popup uses the translation for the shopper's Shopify locale. AIOD tries the exact locale first, then the language without its region (for example `fr` for `fr-CA`). If a language or a message has no translation, the popup shows the default **Gift Added Message** or **Gift Removed Message**.

### Popup Styles

The **Popup Styles** section customises the gift notification banner shown to customers.

The section is visible only when **Disable gift add/remove popup messages** is unchecked.

#### Gift added popup

The **Gift added popup** section is shown when a free gift is added to the cart.

Controls:

- **Live preview**
- **Background color**
- **Border color**
- **Text color**
- **Border radius (px)** slider

Observed defaults:

| Setting | Default observed |
| --- | --- |
| **Background color** | `#d4edda` |
| **Border color** | `#c3e6cb` |
| **Text color** | `#155724` |
| **Border radius (px)** | `10px` |

#### Gift removed popup

The **Gift removed popup** section is shown when a free gift is removed from the cart.

Controls:

- **Live preview**
- **Background color**
- **Border color**
- **Text color**
- **Border radius (px)** slider

Observed defaults:

| Setting | Default observed |
| --- | --- |
| **Background color** | `#d1ecf1` |
| **Border color** | `#bee5eb` |
| **Text color** | `#0c5460` |
| **Border radius (px)** | `10px` |

### Typography

The **Typography** section says: "These settings apply to both popups."

Controls:

| Control | Default observed |
| --- | --- |
| **Text size** slider | `14px` |
| **Bold text** | Unchecked. |

This section is visible only when **Disable gift add/remove popup messages** is unchecked.

### Manual gift quantity

The **Allow quantity increase for manual gifts** checkbox appears on **Gift Settings**.

AIOD explains: "Will allow the user to increase the quantity but discount will only be applied according to the rules."

This checkbox remains visible when **Disable gift add/remove popup messages** is checked.

### Instant gift add and remove

AIOD adds or removes an automatic free gift in the same cart request as the shopper's own change, such as **Add to cart** or a quantity change in the cart. The theme's cart then shows the right gifts without waiting for a second update. This is on by default for every store and has no setting on **Gift Settings**.

When AIOD cannot predict the result of a cart request, the request goes through unchanged and AIOD adds or removes the gift right after it, as before.

To turn instant gifts off, add this line under **Custom JavaScript** on **Settings** > **Custom JS / CSS**:

```js
window.AIOD_INLINE_GIFT_MUTATION = "off";
```

### Cart auto reload function

The **Cart auto reload function (For Developers)** field appears on **Gift Settings**.

Use this field to provide JavaScript that AIOD calls after a gift is added to or removed from the cart. Merchants or theme developers can use it to refresh the cart page, cart drawer, or cart UI without requiring a full page reload after each gift add or delete action.

Example code pattern:

```js
window.cart.reload()
```

This is only an example. The exact function depends on the merchant's theme and cart drawer implementation.

AIOD explains: "This function will be called to update/reload the cart each time the gift is added or removed."

### After cart auto reload function

The **After cart auto reload function (For Developers)** field appears directly below **Cart auto reload function**. Placeholder observed:

```js
window.cart.open()
```

AIOD explains: "This function will be called after the cart is updated when gift is added or removed." Use it for behavior that must run once the cart refresh from **Cart auto reload function** has finished, such as opening the cart drawer.

### Save Gift Settings

Click **Save Settings** to save gift setting changes.

## Custom JS / CSS

Open **Settings** > **Custom JS / CSS**.

The page title is **Custom JS / CSS (For Developers)**.

Use this page to add global custom storefront CSS or JavaScript for AIOD behavior.

Controls:

| Field | Placeholder observed |
| --- | --- |
| **Custom CSS** | `/* Your custom CSS here */` |
| **Custom JavaScript** | `// Your custom JavaScript here` |

AIOD warns: "JavaScript will run on your store on each load. Use with caution."

Click **Save Settings** to save custom CSS or JavaScript.

The observed **Save Settings** button is disabled until a setting changes.

## Global Settings

Open **Settings** > **Global Settings**.

Use this page to configure storefront behavior that applies across AIOD rather than to one discount template.

### Set custom locale

**Set custom locale** controls how currency is formatted in the strikethrough widget.

| Field | Placeholder observed | Behavior |
| --- | --- | --- |
| **Locale** | `For example, en-US` | Enter the locale AIOD should use for currency formatting. The field is blank when no custom locale is configured. |

The value is saved without leading or trailing spaces. Clearing the field removes the custom locale.

### Cart offer evaluation notice

**Cart offer evaluation notice** is a toggle, unchecked by default. AIOD describes it as: "This banner appears on the storefront while cart changes and offers are evaluated."

When enabled, AIOD shows a storefront banner while it recalculates offers after a cart change. The settings page shows a live preview of the banner below the description.

Turning the toggle on shows these controls:

| Control | Default |
| --- | --- |
| **Message** | `Evaluating offers for this cart`. Up to 200 characters. |
| **Screen position** | **Top right**. Options: **Top left**, **Top center**, **Top right**, **Bottom left**, **Bottom center**, **Bottom right**. |
| **Background color** | `#FC5358` |
| **Text color** | `#ffffff` |
| **Spinner color** | `#ffffff` |
| **Text size** slider | `14px` (10 to 32 px). |
| **Corner radius** slider | `8px` (0 to 32 px). |

### Defer discount engine on non-commerce pages

**Defer discount engine on non-commerce pages** is a toggle, off by default.

AIOD explains: "Loads the discount engine immediately on product, collection, and cart pages. On other pages, it loads after the main page content. This can improve page-load performance."

Turn it on when the merchant wants faster loading on pages such as the homepage, blog, or static pages. Product, collection, and cart pages are not affected.

### Side cart initialization delay

**Side cart initialization delay** tells AIOD how long to wait after detecting the side cart before it initializes widgets.

| Field | Input | Behavior |
| --- | --- | --- |
| **Delay** | Number with an `ms` suffix | Enter `0` or a positive whole number of milliseconds. The field is blank when no custom delay is configured. |

### Clear AIOD cache

**Clear AIOD cache** removes AIOD data cached in the current browser.

AIOD describes this section as: "Clears locally cached data in this browser. Saved discounts and other settings are not affected."

Click **Clear AIOD Cache** to clear cached AIOD data in the current browser. Saved discounts and other AIOD settings are not affected.

### Save Global Settings

Click **Save Settings** to save global settings.

## Tapcart

Open **Settings** > **Tapcart**.

Use this page when the merchant sells through a Tapcart mobile app and wants AIOD discounts and free gifts in the app, including discounts that apply only in the app.

The page title is **Tapcart**. Its back control is **Settings**.

### Turn on Tapcart

The card **App-exclusive discounts and free gifts in your Tapcart app** explains: "The AIOD blocks in your Tapcart app mark app carts, so AIOD can tell an app order from a website order, and add free gifts in the app's cart. They talk to Shopify directly. Turning this on lets your app read your AIOD gift rules (your theme already shows them to shoppers)."

Click **Turn on Tapcart**. When Tapcart is on, the button changes to **Turn off Tapcart**.

Turning Tapcart on also adds the **Tapcart mobile app** option to the **Sales channel** section of discount templates. Read [**Sales channel**](/app/common-template-settings#sales-channel).

### Setup in Tapcart

When Tapcart is on, AIOD shows **Setup in Tapcart** with these steps:

1. Add the **AIOD Channel** block (no visible UI) to the Home, Product and Cart screens.
2. Add the **AIOD Free Gift** block to the Cart screen and set its **Rules namespace** to `aiod`.
3. In each AIOD discount, tick **Tapcart mobile app** under **Sales channel**. Untick **Online store** to make it app-exclusive.

AIOD also notes: "Tapcart must use Shopify checkout (web checkout and the Cart API). Ask your Tapcart account manager if you are not sure."

## Support

Settings pages show **Contact support:** followed by the AIOD support email.

---

Source: https://aiodapp.com/docs/mcp-server

---
title: "AIOD MCP server"
description: "Connect AIOD Discount & Gift to Claude, ChatGPT, Cursor, VS Code, or any AI agent so it can read, build, and report on your Shopify discounts."
---

The AIOD MCP server lets an AI assistant work with the discounts on your Shopify store.

Once it is connected, you can just ask. "What discounts am I running?" "How much did the BOGO make last month?" "Set up 20% off the Summer collection for July." The assistant reads your real discounts, builds new ones against AIOD's actual rules, and hands you a link to review and save.

<Info>
  **Using Claude?** AIOD is in the connector directory — open the [**AIOD Discounts & Free Gift** listing](https://claude.ai/directory/aiod-discounts-free-gift) and click **Connect**.

**ChatGPT, Cursor, VS Code or anything else?** Paste `https://aiod-automatic-discount.com/mcp` into your client. The [Quickstart](/mcp-server/quickstart) has the steps for each one.
</Info>

## What it feels like to use

<CodeGroup>
```text You
Which of my discounts made the most money in June?
```
</CodeGroup>

The assistant lists your discounts, pulls the numbers for each one, and answers — with real order counts and revenue from the same data as your AIOD **Analytics** tab.

<CodeGroup>
```text You
Set up a free tote bag for anyone spending over $75.
```
</CodeGroup>

The assistant reads AIOD's gift rules, builds the offer, checks it against a simulated cart, and gives you a link. You open it, look it over, and save. **Nothing goes live until you say so.**

## What it can do

Five things it can read:

| | |
| --- | --- |
| **List your discounts** | Every AIOD discount on the store, with its name, status, and type. |
| **Read one in detail** | Exactly what a discount requires and what it gives. This is what answers "why isn't this applying at checkout?" |
| **Report performance** | Orders, revenue, and margin given away, for any date range. |
| **Read AIOD's rules** | The templates and field shapes a discount has to be built against. |
| **Search these docs** | Setup, widgets, stacking, POS, and troubleshooting. |

Two things it can write:

| | |
| --- | --- |
| **Draft a discount** | Builds the offer and gives you a link. **Creates nothing in Shopify.** |
| **Create in test mode** | Creates a real Shopify discount that only applies to your test email address. |

Full detail in the [tool reference](/mcp-server/tools).

## What it cannot do

This matters more than the list above, so it is worth being blunt.

- **It cannot make a discount live.** Everything it creates stays in test mode until you open it in AIOD and switch it on yourself. There is no tool that flips that switch.
- **It cannot delete a discount.**
- **It cannot see your orders, customers, or products.** Performance figures come back as totals only — never individual orders or customer records.
- **It only reaches the one store you connected.** Connect each store separately.
- **It only covers AIOD's automatic discounts.** Discount codes, and discounts you made directly in Shopify or with another app, are invisible to it.

## Is it safe?

Short version: yes, and here is why.

**You approve it inside your own Shopify admin.** The connection is not established by anything you type into your AI client. It is established when you log into Shopify and approve it there. That is the only thing that decides which store gets connected.

**Read the approval screen.** It shows the name of the app asking *and* the web address your access will be sent to. The name is chosen by whoever built the client and is not verified by anyone. The address is checked against a registered list and cannot be faked. If you did not just start this from your AI client, or you do not recognise the address, close the page.

**Access expires.** Sign-in tokens last an hour and are refreshed automatically. Nothing is ever stored in a readable form.

**Uninstalling AIOD ends it.** So does asking support to revoke your store's access.

The [Claude connector page](/mcp-server/claude) has the full detail on what data leaves your store, what is stored, and for how long.

## Get started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/docs/mcp-server/quickstart">
    Connect Claude, ChatGPT, Cursor, or VS Code. About five minutes.
  </Card>
  <Card title="Claude connector" icon="message-circle" href="/docs/mcp-server/claude">
    The Claude-specific walkthrough, plus data handling and security in full.
  </Card>
  <Card title="What you can build" icon="sparkles" href="/docs/mcp-server/use-cases">
    Free gifts, BOGO, volume breaks, conditional offers — and how to ask for each.
  </Card>
  <Card title="Examples" icon="terminal" href="/docs/mcp-server/examples">
    Real requests, and exactly what the assistant does with them.
  </Card>
</CardGroup>

<Note>
  Building your own agent or MCP client? The [Agent guide](/mcp-server/agent-guide) is the workflow to follow, and the [tool reference](/mcp-server/tools) has every parameter and response shape.
</Note>

## Technical summary

For anyone wiring this up by hand:

| | |
| --- | --- |
| Server URL | `https://aiod-automatic-discount.com/mcp` |
| Transport | Streamable HTTP, stateless — `POST` only |
| Authentication | OAuth 2.1 with PKCE (`S256`), dynamic client registration |
| Scope | `aiod:discounts` |
| Protocol revisions | `2025-06-18`, `2025-03-26`, `2024-11-05` |
| Tool timeout | 60 seconds |

Your client can discover everything else on its own from `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server`. You should not need to configure anything beyond the server URL.

A few things that trip people up: `GET /mcp` returns `405` because the server never opens an event stream, and JSON-RPC batched requests (a JSON array) are rejected. Both are expected.

---

Source: https://aiodapp.com/docs/mcp-server/quickstart

---
title: "Quickstart"
sidebarTitle: "Quickstart"
description: "Connect AIOD to Claude, ChatGPT, Cursor, or VS Code in about five minutes."
---

Connect your AI assistant to AIOD so it can work with the discounts on your store.

## What you need

- A Shopify store with **AIOD Discount & Gift** installed.
- A Shopify login for that store with access to the AIOD app. You approve the connection inside your Shopify admin, so you need to be able to sign in there.
- An AI client that supports remote MCP servers — Claude, ChatGPT, Cursor, VS Code, and most others do.

You will need this once, in step 1:

<Info>
  `https://aiod-automatic-discount.com/mcp`
</Info>

One connection covers one store. If you run several stores, connect each one separately.

## Step 1 — Add the server to your AI client

The AIOD app home page also has a **Connect MCP** button that opens a dialog with per-client instructions and a **Copy** button for the server address. See [App home](/app/home#connect-mcp).

Pick your client.

<Tabs>
  <Tab title="Claude">
    AIOD is in Claude's connector directory, so there is nothing to paste.

Open the [**AIOD Discounts & Free Gift** listing](https://claude.ai/directory/aiod-discounts-free-gift) and click **Connect**.

Full walkthrough: [AIOD connector for Claude](/mcp-server/claude).
  </Tab>

<Tab title="ChatGPT">
    ChatGPT needs developer mode switched on first, and it's available on paid plans only.

1. Open **Settings** → **Security and login** and turn on **Developer mode**. On a Business or Enterprise workspace, an admin enables it under **Workspace Settings** → **Permissions & Roles**.
    2. Use the **+** button to create a developer-mode app for a remote MCP server.
    3. Give it a name, and paste the server URL — including the `/mcp` at the end.

You can then toggle individual tools on and off from the app's settings page.
  </Tab>

<Tab title="Claude Code">
    ```bash
    claude mcp add --transport http aiod https://aiod-automatic-discount.com/mcp
    ```

Then run `/mcp` and choose **Authenticate** for the `aiod` server.
  </Tab>

<Tab title="Cursor">
    Create or edit `~/.cursor/mcp.json` for all projects, or `.cursor/mcp.json` for just this one:

```json
    {
      "mcpServers": {
        "aiod": {
          "url": "https://aiod-automatic-discount.com/mcp"
        }
      }
    }
    ```

Open **Settings** → **MCP**. Cursor will prompt you to sign in.
  </Tab>

<Tab title="VS Code">
    Create `.vscode/mcp.json` in your project:

```json
    {
      "servers": {
        "aiod": {
          "type": "http",
          "url": "https://aiod-automatic-discount.com/mcp"
        }
      }
    }
    ```

Start the server from the editor, sign in when prompted, then use AIOD from agent mode.
  </Tab>

<Tab title="Something else">
    Any client that supports remote MCP servers with OAuth will work. Give it the server URL and let it discover the rest — it reads `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server` automatically.

You should not need to configure a client ID, a secret, or any endpoint by hand.
  </Tab>
</Tabs>

## Step 2 — Sign in

Your client opens a browser tab. Three quick screens:

<Steps>
  <Step title="Type your store domain">
    `your-store.myshopify.com`, or just the store handle.

This only decides which Shopify admin you get sent to. It grants nothing by itself — anyone could type any store here and get no further.
  </Step>

<Step title="Approve in your Shopify admin">
    Shopify signs you in and shows the AIOD approval screen. **This is the step that actually connects your store.**

Before you click Connect, read the screen. It names the app that is asking, and the web address your access will be sent to. The name is chosen by whoever built the client and nobody verifies it. The address is checked against a registered list and cannot be faked.

<Warning>
      If you did not just start this from your AI client, or you do not recognise the address, close the page. Nothing is granted until you click Connect.
    </Warning>
  </Step>

<Step title="Back to your client">
    Approving sends you straight back, connected. If your browser blocks the redirect, the screen gives you a link to click instead.
  </Step>
</Steps>

## Step 3 — Check it works

Ask your assistant:

<CodeGroup>
```text You
List the discounts on my store.
```
</CodeGroup>

You should get back your actual AIOD discounts, each with its name, status, and type. If you do, you are done.

Try a couple more:

<CodeGroup>
```text You
How did my best discount perform last month?
```

```text You
Draft 15% off the Summer collection for July, but don't create anything yet.
```
</CodeGroup>

## What to do next

<CardGroup cols={2}>
  <Card title="What you can build" icon="sparkles" href="/docs/mcp-server/use-cases">
    Free gifts, BOGO, volume breaks, conditional offers — and how to ask for each.
  </Card>
  <Card title="Examples" icon="terminal" href="/docs/mcp-server/examples">
    Real requests and exactly what the assistant does with them.
  </Card>
</CardGroup>

## If something goes wrong

<AccordionGroup>
  <Accordion title="The assistant says it isn't authorized, or asks me to sign in again">
    Your sign-in expired or was revoked. Reconnect from your client — the same three screens, and it will be quick because you are already signed into Shopify.
  </Accordion>

<Accordion title="The assistant can't see any discounts, but I have some">
    Two likely causes. Either you connected a different store than you expected — check which store the approval screen named — or your discounts were created directly in Shopify rather than in AIOD. The connector only sees AIOD's own automatic discounts.
  </Accordion>

<Accordion title="Tools return an error about the app session">
    This usually means AIOD was uninstalled from the store, or its Shopify session expired. Reinstall AIOD, then reconnect.
  </Accordion>

<Accordion title="A request times out">
    A single tool call has to finish within 60 seconds. Try again, and if you asked for something broad ("check every discount"), narrow it down.
  </Accordion>

<Accordion title="My client complains about GET requests or batching">
    Both are expected. The server accepts `POST` only and never opens an event stream, so `GET` returns `405`. It also rejects JSON-RPC batched requests, which were removed from the spec. Any current MCP client handles this correctly.
  </Accordion>
</AccordionGroup>

## Disconnecting

Remove the connector in your AI client and it stops being used.

To revoke access on the AIOD side too, email [aiod-app@dtcdevelopers.org](mailto:aiod-app@dtcdevelopers.org) and your store's access is cut off immediately.

Uninstalling AIOD from Shopify also ends all access automatically.

---

Source: https://aiodapp.com/docs/mcp-server/claude

---
title: "AIOD connector for Claude"
sidebarTitle: "Claude connector"
description: "Connect AIOD Discount & Gift to Claude, and understand exactly what Claude can see and do with your store."
---

The AIOD connector lets Claude work with the discounts in your Shopify store — look them up, explain how they are set up, check what they earned, and build new ones for you to review.

It connects to one store at a time, and it can do seven specific things and nothing else. It is not a general bridge into your Shopify admin.

<Info>
  **In the Claude connector directory:** [AIOD Discounts & Free Gift](https://claude.ai/directory/aiod-discounts-free-gift)

**Server URL** (only needed for a manual custom connector): `https://aiod-automatic-discount.com/mcp`
</Info>

## Connect it

<Steps>
  <Step title="Add the connector">
    AIOD is listed in Claude's connector directory. Open the [**AIOD Discounts & Free Gift** listing](https://claude.ai/directory/aiod-discounts-free-gift) and click **Connect** — there is nothing to copy or paste.

You can also find it from **Settings** → **Connectors** inside Claude, or add it as a custom connector with the server URL above.

Claude works out the rest on its own and opens a browser tab.
  </Step>

<Step title="Type your store domain">
    `your-store.myshopify.com`, or just the store handle. This only decides which Shopify admin you get sent to.
  </Step>

<Step title="Approve inside your Shopify admin">
    Shopify signs you in and shows the AIOD approval screen. **This is the step that connects your store** — nothing you typed earlier did.

Read it before approving. It names the app that is asking and the address your access will be sent to. The name is self-reported and unverified; the address is checked against a registered list and cannot be faked.

<Warning>
      If you did not just start this from Claude, or you do not recognise the address, close the page.
    </Warning>
  </Step>

<Step title="Back to Claude">
    You are returned with the connection live. If your browser blocks the redirect, click the link on screen.
  </Step>
</Steps>

## What Claude can do

Seven tools, and no general Shopify access behind them.

| What you can ask for | Tool |
| --- | --- |
| "What discounts am I running?" | [Find discounts](/mcp-server/tools/shopify-discount-find) |
| "How is the free gift offer set up?" | [Read a discount](/mcp-server/tools/shopify-discount-get) |
| "How much did the BOGO make in June?" | [Discount performance](/mcp-server/tools/shopify-discount-performance) |
| "How do AIOD discounts stack with codes?" | [Search the docs](/mcp-server/tools/shopify-discount-docs-search) |
| — used automatically when building an offer — | [Read the discount schema](/mcp-server/tools/shopify-discount-config-schema) |
| "Set up 20% off the Summer collection." | [Draft a discount](/mcp-server/tools/shopify-discount-draft) |
| "Create it so I can test it on the storefront." | [Create in test mode](/mcp-server/tools/shopify-discount-publish) |

## The two write tools, explained plainly

This is the part worth reading carefully.

### Drafting creates nothing

When Claude drafts a discount, it builds the configuration, checks it against AIOD's rules, runs it through a simulated cart, and gives you a link. **No discount exists in Shopify.** Nothing exists until you open that link and save it yourself.

This is what Claude does by default. If you would rather it never touch your store at all, just say "draft it, don't create it".

### Creating puts a real discount in test mode

If you ask Claude to create the discount, it makes a genuine Shopify discount — but in **test mode**.

Test mode is not a dry run. The discount really exists and Shopify really evaluates it at checkout. What makes it safe is that AIOD attaches an email condition when it creates it, so it **only ever applies to your store's test email address**. Claude tells you that address. Real shoppers are unaffected.

It stays that way until a person opens it in AIOD and switches it to active. **Claude cannot do that** — there is no tool that makes a discount live.

<Warning>
  One case to know about: if you ask Claude to update an *existing* discount by creating it again, that replaces the discount's rule and puts it back into test mode. A discount that was live for shoppers stops applying. Claude will ask before doing this, but it is worth recognising when it does.
</Warning>

## What Claude cannot do

- It cannot make a discount live, or take one out of test mode.
- It cannot delete a discount.
- It cannot read your orders, customers, or products. Performance comes back as totals only.
- It cannot reach any store other than the one you approved.
- It cannot see discount codes, or discounts you made directly in Shopify or with another app.

## What data leaves your store

Only what those seven tools return: your AIOD discount setups (names, templates, conditions, rewards, dates, status) and aggregate revenue and order-count figures.

**No customer personal data.** Performance reporting returns totals and a chart series — never orders and never customer records. There is no tool that can list either.

One honest exception: if *you* configured a discount with something personal in it — a customer segment name, an email condition — then reading that discount returns those values, because they are part of the discount.

### Who else sees it

- **Anthropic.** Tool results become part of your Claude conversation and are handled under Anthropic's terms and your organization's Claude settings.
- **Documentation search.** When Claude searches these docs, your search words go to AIOD's documentation site. Search words only — no store data is attached.

Nobody else.

### What AIOD keeps

| Data | How long |
| --- | --- |
| Your access token (stored as a one-way hash) | 1 hour, then it expires |
| Your refresh token (stored as a one-way hash) | 30 days, replaced every time it is used |
| The connector's registered name and addresses | Until you remove the connector |
| Connection timestamps — created, last used, revoked | Kept for audit |
| Discounts Claude drafted, including the request you asked it to record | Kept with your AIOD account data |

Tokens are never stored in a readable form and cannot be recovered after they are issued — only revoked. Sign-in codes are single-use and expire in five minutes.

## Security

- **You approve inside Shopify.** The approval screen runs in your own Shopify admin under AIOD's normal login. That session is the only thing that decides which store is connected — not the domain you typed, and not anything Claude sent.
- **One token, one store.** Each connection maps to a single Shopify session. There is no way to point a request at a different store.
- **Modern OAuth, no shared secrets.** OAuth 2.1 with PKCE, `S256` only — the server refuses weaker methods outright, so a client cannot negotiate down. No client secret is issued, so none can leak.
- **Return addresses are checked twice** — when the connector registers, and again on every sign-in. They must be secure (`https`) or local.
- **Refresh tokens rotate.** Using one immediately invalidates it. A stolen one stops working the moment your real client next refreshes.
- **Short sessions.** Access expires after an hour.

## Good to know

- A single request has to finish within 60 seconds.
- Supported MCP protocol revisions: `2025-06-18`, `2025-03-26`, `2024-11-05`.
- If AIOD is uninstalled or its Shopify session breaks, tools tell you to reconnect rather than failing silently.

## Disconnecting

Remove the connector in Claude and it stops being used.

To revoke access on the AIOD side too, email [aiod-app@dtcdevelopers.org](mailto:aiod-app@dtcdevelopers.org). Access is cut off immediately.

Uninstalling AIOD from Shopify ends all access automatically — the stored session is deleted and every token with it.

## Support

Questions, security reports, or revocation requests: [aiod-app@dtcdevelopers.org](mailto:aiod-app@dtcdevelopers.org).

---

Source: https://aiodapp.com/docs/mcp-server/use-cases

---
title: "What you can build"
sidebarTitle: "Overview"
description: "The promotions an AI agent can create and manage on your Shopify store through the AIOD MCP server."
---

Once AIOD is connected, you can describe a promotion in plain language and your assistant will build it — reading AIOD's real rules, checking the result against a simulated cart, and handing you a link to review.

Here is what it can build.

<CardGroup cols={2}>
  <Card title="Automatic discounts" icon="tag" href="/docs/mcp-server/use-cases/automatic-discounts">
    Percentage off, amount off, or a fixed final price — on a product, a collection, or everything.
  </Card>
  <Card title="Free gifts" icon="gift" href="/docs/mcp-server/use-cases/free-gifts">
    Gift with purchase, added automatically or picked by the shopper.
  </Card>
  <Card title="Quantity discounts" icon="chart-no-axes-column-increasing" href="/docs/mcp-server/use-cases/quantity-discounts">
    Volume breaks, spend-more-save-more ladders, and selectable bundle offers.
  </Card>
  <Card title="Buy X Get Y" icon="percent" href="/docs/mcp-server/use-cases/buy-x-get-y">
    BOGO, mix-and-match, and bundles at one flat combined price.
  </Card>
  <Card title="Conditional discounts" icon="workflow" href="/docs/mcp-server/use-cases/conditional-discounts">
    Rules based on customer, country, date, or cart contents — plus exclusions.
  </Card>
</CardGroup>

## Beyond creating offers

Your assistant can also:

- **Look up what you're running.** "What discounts are live right now?" — and then explain any of them in detail, which is usually what answers "why isn't this applying at checkout?"
- **Change existing discounts.** "Raise the free shipping threshold to $75." It reads the current setup and patches just that field.
- **Report performance.** "How much did the BOGO make in June?" — orders, revenue, margin given away, average order value, and a chart series.
- **Schedule promotions.** Dates are part of a discount, so a seasonal sale can be built now and dated for later.
- **Answer setup questions.** Stacking, widgets, POS behaviour, troubleshooting — it searches these docs.

## What it can't build

- **Discount codes.** AIOD's tools cover automatic discounts only. Codes, and anything you made directly in Shopify or with another app, are invisible to it.
- **Anything live.** It can create discounts in test mode, but only you can switch one on.
- **Deletions.** It can't remove a discount.
- **[Upsell widgets](/templates/upsell).** That template has to be set up by hand.

It also can't read your orders, customers, or products.

## How a promotion gets built

Whatever you ask for, the same thing happens under the hood:

1. **Find** the discount, if you're changing an existing one.
2. **Read AIOD's rules** — the templates and field shapes.
3. **Read the current setup**, if you're changing something.
4. **Draft it** — validated and cart-simulated, then staged. You get a link.
5. **Create it**, only if you asked. Real Shopify discount, test mode.

The [Examples](/mcp-server/examples) page walks through real requests end to end. If you're building your own agent, the [Agent guide](/mcp-server/agent-guide) has the full workflow.

---

Source: https://aiodapp.com/docs/mcp-server/use-cases/automatic-discounts

---
title: "Automatic discounts"
sidebarTitle: "Automatic discounts"
description: "Create percentage, fixed-amount, and fixed-price Shopify discounts through an AI agent connected to AIOD."
---

An AI agent connected to AIOD can create automatic Shopify discounts for you: a percentage off, an amount off, or a fixed final price — on one product, one variant, a collection, or everything in the store.

*Automatic* means it applies in the cart and at checkout with no code for the shopper to type.

## Just ask

<CodeGroup>
```text You
20% off everything in the Summer collection.
```

```text You
Take $10 off the Classic Tee.
```

```text You
Sell the starter kit at a flat $49.
```

```text You
Free shipping on all orders.
```

```text You
10% off sitewide for the whole of July.
```
</CodeGroup>

## Which template gets used

| Template | When |
| --- | --- |
| `specific_item` | The discount always applies to one target, with no separate eligibility rule. |
| `custom_discount` | There's a real condition attached, or more than one target in the same rule. |
| `custom_shipping` | It applies to shipping rather than to products or order value. |

The moment a genuine gate appears — "only for VIP customers", "only over $100" — it moves from `specific_item` to `custom_discount`. See [Conditional discounts](/mcp-server/use-cases/conditional-discounts).

For the settings themselves, the merchant-facing pages are [Discount Specific Item](/templates/discount-specific-item), [Custom Rule Builder](/templates/custom-rule-builder), and [Shipping Discount](/templates/shipping-discount).

## What the agent does

1. Reads AIOD's template contracts, then the reward shapes.
2. Picks `specific_item` for a plain target, or `custom_discount` as soon as there's a real condition.
3. Sets the reward: the items being discounted and the value. A condition is an eligibility gate, never a stand-in for the target.
4. Sets active dates if you mentioned a period.
5. Drafts it — validated and cart-simulated — and hands you a link.
6. Creates it in test mode only if you asked.

## Worth knowing

- `specific_item` targets exactly one of: a product, a variant, a collection, or all items.
- A single rule is locked to one discount type — all product-level, all order-level, or all shipping. Never mixed. For several reward kinds in one offer, it uses `combined_discount`.
- Shipping rewards use shipping method targets (all methods, specific ones, or all except selected ones), never product targets.

---

Source: https://aiodapp.com/docs/mcp-server/use-cases/free-gifts

---
title: "Free gifts"
sidebarTitle: "Free gifts"
description: "Create gift-with-purchase offers on Shopify through an AI agent connected to AIOD."
---

An AI agent connected to AIOD can set up gift-with-purchase offers: a genuinely free item added to the cart separately from what the shopper is buying — either dropped in automatically, or picked by the shopper from a gift picker.

## Just ask

<CodeGroup>
```text You
Give a free tote bag when someone spends over $75.
```

```text You
Buy 2 shirts, get a free cap.
```

```text You
Let customers choose one free sample from these three when they spend $50.
```

```text You
Add a free gift to every order this weekend.
```
</CodeGroup>

## Gift or BOGO?

This is the one distinction that matters, and it's easy to get wrong.

| What happens | What it is |
| --- | --- |
| The app adds the line, or the shopper picks it from a gift picker | A **gift** (`unified_free_gift`) |
| The shopper adds every line themselves, and one is price-reduced | A **BOGO** (`bxgy`) — see [Buy X Get Y](/mcp-server/use-cases/buy-x-get-y) |

A gift is never something the customer has to add to their own cart. And a gift is always 100% free — a partially discounted add-on is a BOGO, not a gift.

Merchant-facing settings: [Free Gift with Purchase](/templates/free-gift-with-purchase).

## What the agent does

1. Reads the `unified_free_gift` contract.
2. Picks a **specific** gift — a variant ideally, or a product. A collection or "all items" can't be a gift, because nothing could decide which one to add.
3. Sets the unlock condition: cart subtotal, cart quantity, item quantity, or anything else AIOD supports.
4. Sets how many gifts, whether the offer repeats as the condition is met again, and whether the shopper chooses or AIOD adds it automatically.
5. Drafts it and hands you a link.

## Worth knowing

- **The gift has to be a specific item.** If the gift needs to come from the same collection as the trigger, that's a BOGO instead — a collection trigger can't decide which variant to insert.
- Tiered promotions can hand out gifts per tier too. See [Quantity discounts](/mcp-server/use-cases/quantity-discounts).

---

Source: https://aiodapp.com/docs/mcp-server/use-cases/quantity-discounts

---
title: "Quantity discounts"
sidebarTitle: "Quantity discounts"
description: "Create volume breaks, tiered spend ladders, and bundle offers on Shopify through an AI agent connected to AIOD."
---

An AI agent connected to AIOD can set up quantity and tiered promotions: volume breaks, wholesale and bulk pricing, spend-more-save-more ladders, tiered free gifts and shipping rewards, and selectable bundle offers on the product page.

## Just ask

<CodeGroup>
```text You
Spend $50 get 10% off, spend $100 get 20% off.
```

```text You
Buy 2 get 10% off, buy 4 get 20% off.
```

```text You
Wholesale pricing: 5+ units 15% off, 10+ units 25% off.
```

```text You
Three bundle options on the product page — 1 at full price,
2 for 10% off, 3 for 20% off plus free shipping.
```

```text You
Spend $75 get free shipping, spend $150 get free shipping and a free gift.
```
</CodeGroup>

## Which template gets used

All three are "tiered", but they behave differently — and picking the wrong one isn't cosmetic, because each allows a different set of fields.

| Template | When |
| --- | --- |
| `tiered_unified` | A straight ladder. Every tier uses the same kind of condition — cart quantity, item quantity, cart subtotal, or item subtotal — and only the number goes up. Rewards can differ per tier. |
| `volume_bundle` | Quantity-only tiers on **one shared scope**, shown to shoppers as selectable bundle cards or a table. |
| `combined_discount` | Tiers with genuinely different conditions, or a mix of reward kinds that doesn't fit a ladder. |

Merchant-facing settings: [Tiered Discount](/templates/tiered-volume-discount), [Volume Discount / Bundle](/templates/volume-discount-bundle), [Combined Multi Discounts](/templates/combined-multi-discounts).

## What the agent does

1. Reads the contracts — the three tiered templates differ in exactly the fields it's about to write.
2. Picks by the shape of the tiers: same condition with a rising number → `tiered_unified`; one shared scope shown as bundle cards → `volume_bundle`; genuinely different per-tier conditions → `combined_discount`.
3. Writes every tier out in full, each with its condition and its reward.
4. Decides stacking: by default the **highest unlocked tier wins**. Stacking every unlocked tier only happens if you explicitly ask.
5. Drafts it and hands you a link.

## Worth knowing

- **Tiers have a specific shape.** Each one needs a condition and a reward. An agent that invents its own tier format gets everything stripped and the draft rejected — which is why reading the contract first matters.
- **By default only the best tier applies.** If you want every unlocked tier to stack, say so.
- **Exclusions behave differently between templates.** In `tiered_unified` an exclusion is campaign-wide — the editor shows one control and applies it to every tier. In `combined_discount` it's genuinely per-tier.
- **In `volume_bundle`, every tier shares one scope** and only the quantity changes. Adding a free gift to an offer needs its own matching gift tier. Widget copy, badges, styling, and layout can't be set through MCP — configure those in the app.

---

Source: https://aiodapp.com/docs/mcp-server/use-cases/buy-x-get-y

---
title: "Buy X Get Y"
sidebarTitle: "Buy X Get Y"
description: "Create BOGO, mix-and-match, and fixed-price bundle offers on Shopify through an AI agent connected to AIOD."
---

An AI agent connected to AIOD can set up buy-X-get-Y promotions: BOGO, buy-one-get-one-half-price, mix-and-match, and bundles sold at one flat combined price.

## Just ask

<CodeGroup>
```text You
Buy one t-shirt, get one 50% off.
```

```text You
Buy 2 pairs of socks, get the third free.
```

```text You
Buy any hoodie, get 20% off any beanie.
```

```text You
Any 3 items from the Sale collection for $99.
```

```text You
Mix and match: buy 2 from Outerwear, get 1 from Accessories free.
```
</CodeGroup>

## Which template gets used

| Template | When |
| --- | --- |
| `bxgy` | The shopper adds both the qualifying item and the reward item themselves, and the reward is a price cut on a line already in the cart — percentage off, amount off, or fully free. |
| `bxgy_fixed_price` | A set of items sold together at one flat combined price, like "any 3 for $99". |

Merchant-facing settings: [Buy X Get Y (Discount)](/templates/buy-x-get-y-discount) and [Buy X @ Fixed Price (Discount)](/templates/buy-x-fixed-price-discount).

<Note>
  If the reward item is **added by the app** or picked from a gift picker rather than by the shopper, it's a gift, not a BOGO. See [Free gifts](/mcp-server/use-cases/free-gifts). AIOD has a [Buy X Get Y (Gift)](/templates/buy-x-get-y-gift) form in the app for exactly that.
</Note>

## What the agent does

1. Reads the `bxgy` or `bxgy_fixed_price` contract.
2. Confirms the shopper adds every line. If not, it switches to a gift template before writing anything.
3. Sets the buy side: which items qualify, and how many.
4. Sets the get side: which items get discounted, by how much, and how many units per qualification.
5. Drafts it and hands you a link.

## Worth knowing

- **The counting is the tricky part.** When the qualifying and rewarded items are the *same* thing — "buy 2 get 1 free on t-shirts" — the rule needs a quantity of **3**, not 2: two paid, plus the next one discounted. When they're different things, the quantity is just the buy-side count.
- **Repeating is a choice.** "Buy 2 get 1 free" can apply once per cart or once per group of three. If you don't say, a good agent will ask.
- **Nothing is auto-added.** Every line in a BOGO is one the shopper put there.

---

Source: https://aiodapp.com/docs/mcp-server/use-cases/conditional-discounts

---
title: "Conditional discounts"
sidebarTitle: "Conditional discounts"
description: "Create Shopify discounts gated by customer, country, date, or cart contents — and exclude products and collections — through an AI agent connected to AIOD."
---

An AI agent connected to AIOD can build promotions that only apply when something is true: about the cart, the customer, the destination, or the date. It can also exclude products and collections, schedule promotions, and block specific discount codes.

## Just ask

<CodeGroup>
```text You
10% off, but only for customers tagged VIP.
```

```text You
Free shipping over $75, Canada only.
```

```text You
20% off the Winter collection, excluding anything already on sale.
```

```text You
15% off for subscription orders only.
```

```text You
Run the Black Friday sale from November 27 to December 1.
```

```text You
Block the code WELCOME10 when the cart already has a bundle in it.
```
</CodeGroup>

## What a condition can check

| Kind | Examples |
| --- | --- |
| Cart value and size | Cart subtotal, cart quantity, item subtotal, item quantity |
| Catalog | Specific products, variants, or collections in the cart |
| Customer | Customer tags and customer segments |
| Geography | Market and location |
| Purchase type | One-time versus subscription |
| Schedule | Start and end dates |

Conditions combine with AND and OR, so several can apply at once.

## Which template gets used

| Template | When |
| --- | --- |
| `custom_discount` | The general-purpose builder — any real eligibility rule, or several targets in one discount. |
| `combined_discount` | Several tiers, each with its own condition and its own reward kind. |
| `custom_shipping` | The reward is shipping, gated by cart, customer, or destination. |
| `reject_codes` | Blocking named discount codes when conditions are met. It gives no reward of its own. |

Merchant-facing settings: [Custom Rule Builder](/templates/custom-rule-builder), [Combined Multi Discounts](/templates/combined-multi-discounts), [Shipping Discount](/templates/shipping-discount), [Reject Discount Codes](/templates/reject-discount-codes).

## Two kinds of exclusion

These sound the same and aren't:

- **Excluding items from the reward** — those items don't get discounted.
- **Excluding items from the condition** — those items don't count toward the threshold that unlocks the discount.

"Spend $100 excluding sale items, get 10% off" is the second one: sale items must not count toward the $100. A good agent will check which you meant if it's ambiguous.

## Customer-specific offers

Customer tags and segments are just conditions, so a VIP-only or wholesale-only discount is an ordinary conditional discount. Nothing special is needed.

## Scheduled promotions

Dates are part of the discount, so a seasonal sale can be built now and dated for later. It still has to be switched on by a person before real shoppers see it.

## What the agent does

1. Reads the template contracts **and** the condition syntax — the contracts alone don't cover how conditions are written.
2. Separates the gate from the target: the condition decides *whether* the discount applies, the reward decides *what* gets discounted.
3. Keeps the reward type consistent — one rule can't mix product, order, and shipping rewards. Several reward kinds in one offer means `combined_discount`.
4. Drafts it. Conditions are cart-simulated, so a rule that would never fire gets caught before you see it.

## Worth knowing

- **Conditions are simulated, not just validated.** AIOD runs the merged rule against a test cart, which catches shapes that pass a schema check but wouldn't actually work.
- **One rule, one discount type.** All product-level, all order-level, or all shipping.
- **`reject_codes` gives nothing.** It only blocks the codes you name, when your conditions are met.

---

Source: https://aiodapp.com/docs/mcp-server/examples

---
title: "Examples"
sidebarTitle: "Examples"
description: "Real requests to an AI agent connected to AIOD, and exactly what happens for each one."
---

What you say, and what the assistant actually does with it.

---

## "Spend $100, get 10% off — but not sale items"

<CodeGroup>
```text You
Create a discount where customers spending $100 get 10% off,
but exclude products in the Sale collection.
```
</CodeGroup>

**What happens**

<Steps>
  <Step title="It reads AIOD's rules">
    First the template contracts, then the condition syntax — it needs both to write a spend threshold and an exclusion.
  </Step>
  <Step title="It picks a template">
    There's a real eligibility rule, which rules out the simple one. There's a single reward, which rules out the multi-tier one. So: the custom rule builder.
  </Step>
  <Step title="It sets the spend condition">
    Cart subtotal of $100.
  </Step>
  <Step title="It sets the reward">
    10% off, applied at product level.
  </Step>
  <Step title="It works out which exclusion you meant">
    "Excluding sale items" from a *spend threshold* means sale items shouldn't count toward the $100 — not that they shouldn't be discounted. A good assistant will confirm this if it's ambiguous.
  </Step>
  <Step title="It drafts it">
    Validated, cart-simulated, and staged. You get a link.
  </Step>
  <Step title="It hands you the link">
    And tells you the discount isn't live until you open it and save.
  </Step>
</Steps>

---

## "Free tote over $75"

<CodeGroup>
```text You
Give a free tote bag when someone spends over $75.
```
</CodeGroup>

**What happens**

1. It reads the free gift contract.
2. It confirms the tote is **added by the app**, not by the shopper. It is — so this is a gift, not a BOGO.
3. It works out which tote variant you mean, or asks. A gift has to be a specific item; "the Sale collection" can't be a gift because nothing could decide which one to add.
4. It sets the $75 cart subtotal condition and a gift quantity of one.
5. It drafts it and hands you the link.

---

## "Buy 2 get 1 free"

<CodeGroup>
```text You
Buy 2 t-shirts, get the third one free.
```
</CodeGroup>

**What happens**

1. It reads the BOGO contract.
2. The shopper adds all three shirts themselves and the third is price-reduced — so BOGO, not a gift.
3. **It sets the quantity to 3, not 2.** The qualifying and rewarded items are the same thing, so the rule needs two paid plus the next one discounted.
4. It sets the reward: 100% off one t-shirt per qualification.
5. It asks whether the offer should repeat for every group of three, if you didn't say.
6. It drafts it and hands you the link.

<Warning>
  Miscounting is the most common mistake on this kind of offer. "Buy 2 get 1 free" on the same product needs a quantity of **3**.
</Warning>

---

## "Spend more, save more"

<CodeGroup>
```text You
Spend $50 get 10% off, spend $100 get 20% off, spend $200 get 20% off
plus free shipping.
```
</CodeGroup>

**What happens**

1. It reads the tiered contract.
2. Every tier uses the same kind of condition — cart subtotal — with only the number rising. That makes it a straight ladder, not the multi-condition template. Different reward kinds per tier are fine here.
3. It writes all three tiers out in full, each with its own condition and reward.
4. It leaves stacking off: **the highest unlocked tier wins**. It only stacks every tier if you ask.
5. It drafts it and hands you the link.

---

## "Raise the threshold on my existing offer"

<CodeGroup>
```text You
Raise the free-shipping threshold on my summer offer from $50 to $75.
```
</CodeGroup>

**What happens**

<Steps>
  <Step title="It finds the discount">
    Usually by listing everything rather than searching — "my summer offer" rarely matches the stored name exactly. It'll confirm which one it means before touching anything.
  </Step>
  <Step title="It reads the current setup">
    Because the change is a patch onto what's there, not a replacement. It needs to know the current values.
  </Step>
  <Step title="It changes only the threshold">
    Everything else stays exactly as it was.
  </Step>
  <Step title="It hands you the link">
    Nothing is saved until you open it and save.
  </Step>
</Steps>

---

## When something is wrong with the request

Sometimes a draft gets rejected. That's the system working — AIOD checks the discount against a simulated cart before staging anything, so mistakes get caught before you ever see them.

The rejection names the exact field at fault and includes the correct syntax, so the assistant fixes that one field and tries again. Usually you never notice.

The one case worth knowing about: if you ask for a setting that a particular template genuinely doesn't support, the assistant should **tell you that** rather than keep retrying. If it does, the answer is usually a different template — ask it which one would work.

---

## "Create it so I can test it"

<CodeGroup>
```text You
Go ahead and create the BOGO so I can test it on the storefront.
```
</CodeGroup>

**What happens**

1. You explicitly asked for it to be created, so the assistant publishes rather than drafts. (A successful draft on its own is not a reason to publish.)
2. The same validation and cart simulation runs. If it fails, nothing is created.
3. A real Shopify discount is created — **in test mode**.
4. The assistant tells you three things:
   - The discount genuinely exists in Shopify.
   - It only applies to your test email address, which it gives you. Real shoppers see nothing.
   - You have to open it and switch it to active yourself. No tool can do that.

<Warning>
  If you ask it to *replace* an existing discount this way, that discount goes back into test mode — so one that was live for shoppers stops applying. The assistant should confirm before doing it, and most clients will ask you too.
</Warning>

---

## "How did it do?"

<CodeGroup>
```text You
How did my BOGO do last month, and is it worth re-running for Black Friday?
```
</CodeGroup>

**What happens**

1. It finds the discount.
2. It pulls the numbers for your date range: order count, revenue, margin given away, and average order value.
3. To compare against another offer, it looks that one up separately — there's no all-at-once report.
4. If a recent discount shows zero orders, it should say attribution lags checkout by a short while rather than telling you the discount is broken.

---

Source: https://aiodapp.com/docs/mcp-server/agent-guide

---
title: "Agent guide"
sidebarTitle: "Agent guide"
description: "The workflow an AI agent should follow when reading, creating, or changing AIOD discounts over MCP."
---

If you are building or configuring an agent that uses the AIOD MCP server, follow this workflow rather than improvising one. AIOD's configuration shapes are checked strictly and cannot be guessed, so the order below is what makes the difference between one clean call and five rejections.

## The workflow

<Steps>
  <Step title="Find the discount">
    Use `shopify_discount_find`. Merchants refer to discounts in words; every other tool needs the `id` it returns. Never construct an id.
  </Step>
  <Step title="Read the schema before writing anything">
    Use `shopify_discount_config_schema` for the template contracts. If this is an edit, also use `shopify_discount_get` for the values your patch is written against.
  </Step>
  <Step title="Pick the right template">
    One template per promotion, chosen from the contracts — not from what the promotion sounds like. See below.
  </Step>
  <Step title="Only set fields that template allows">
    Every template has an allowlist. Anything outside it is silently dropped before validation.
  </Step>
  <Step title="Validate before changing anything">
    Send it to `shopify_discount_draft`. It runs the same checks as publishing, and writes nothing.
  </Step>
  <Step title="Hand over the link">
    A draft is not live. Say so, every time.
  </Step>
  <Step title="Publish only when asked">
    `shopify_discount_publish` creates a real Shopify discount, in test mode. It is not the natural next step after a successful draft.
  </Step>
</Steps>

## Picking a template

Read `contracts_1` and `contracts_2` before deciding. The short version:

| The merchant wants | Template |
| --- | --- |
| A discount that always applies to one target, with no real eligibility rule | `specific_item` |
| A free item added separately from what the shopper is buying | `unified_free_gift` |
| Buy X get Y, where the shopper adds both X and Y and Y is price-reduced | `bxgy` |
| A set of items sold together at one flat price | `bxgy_fixed_price` |
| Anything applied to shipping or delivery | `custom_shipping` |
| A threshold ladder — same condition, only the value rising | `tiered_unified` |
| Quantity-only tiers on one shared scope, shown as bundle cards | `volume_bundle` |
| Several tiers with genuinely different conditions and reward kinds | `combined_discount` |
| A real eligibility condition, or several targets in one rule | `custom_discount` |
| To block named discount codes when conditions are met | `reject_codes` |

### The two distinctions agents get wrong

**Gift or BOGO?** `unified_free_gift` is for a line the *app* inserts, or that the shopper picks from a gift picker. If the shopper adds every line themselves and Y is price-reduced, it's `bxgy`. A gift is never something the customer has to add.

**Tiered or combined?** `tiered_unified` is a ladder: same condition family, only the value changes. The moment tiers carry genuinely different, non-threshold conditions, it's `combined_discount`.

<Note>
  **Upsell** is a real AIOD template with no contract and no editable fields, so no tool can create or edit it. When it's the right fit, say so plainly and point the merchant at [setting it up by hand](/templates/upsell). Never silently force the request into a different template.
</Note>

## Writing a configuration

- **Send only what you're setting.** Configurations are sparse.
- **Creating needs a `template`. Editing needs only the changed fields** — they merge onto the stored configuration rather than replacing it.
- **These shapes are AIOD's own.** They are not Shopify's native discount API shapes and can't be inferred from them.
- **Condition and reward syntax lives in `conditions` and `actions_and_rules`**, not in the template contracts.

## Editing an existing discount

<Steps>
  <Step title="Find it">
    `shopify_discount_find`, usually with no `query` — the merchant's wording rarely matches the stored title. Match on meaning, then confirm which discount you mean before changing anything.
  </Step>
  <Step title="Read it">
    `shopify_discount_get`. The *saved* discount's template decides which fields you may change — not your guess.
  </Step>
  <Step title="Patch it">
    `shopify_discount_draft` with `targetDiscountId` and only the fields that change.
  </Step>
  <Step title="Hand over the link">
    Nothing is saved until the merchant opens it and saves.
  </Step>
</Steps>

## When a call is rejected

A `4xx` here is a result to read, not a broken connection.

- **Fix only the fields named in `issues`.** Don't rewrite the configuration.
- **The repair material comes with the rejection** — `schemaReference` or `fieldSyntaxReference`. Use it instead of re-fetching the schema.
- **`template_field_out_of_scope` means stop.** The setting genuinely isn't editable for that template. Tell the merchant; don't retry with those fields.
- **`edit_changed_nothing` means your patch missed the point.** Re-read the current configuration and send the change you actually meant.

Full list on the [tools overview](/mcp-server/tools#rejections-are-useful-not-fatal).

## Reporting back to the merchant

- **A draft creates nothing.** Never describe it as live, created, or set up.
- **A publish creates a real discount in test mode**, applying only to the returned `testModeEmail`. Always surface that address, and always say a person has to switch it to active.
- **Zero orders on a new discount is normal.** Attribution lags checkout briefly and the response says so. Don't report it as broken.
- **Pass links through verbatim.** They're deep links into the merchant's own Shopify admin.

## What to say no to

Say these plainly rather than working around them:

- It cannot make a discount live, activate one, or delete one.
- It cannot read orders, line items, customer records, or products.
- It cannot report store-wide sales, sessions, or conversion — only per-discount totals.
- It cannot reach any store other than the one that was approved.
- It cannot see discount codes, or discounts created directly in Shopify or by another app.

## Safety

- Treat `shopify_discount_publish` with `targetDiscountId` as destructive — it takes a live discount out of service. Confirm in words first.
- Prefer drafting whenever the merchant hasn't explicitly asked for the discount to be created.
- Never invent a setting, a template id, or a field name. If the schema doesn't have it, say so.

---

Source: https://aiodapp.com/docs/mcp-server/tools

---
title: "Tool reference"
sidebarTitle: "Overview"
description: "The seven tools the AIOD MCP server exposes, what each one is for, and the conventions they share."
---

The AIOD MCP server exposes seven tools. Five read, two write. There is no general Shopify API access behind them.

Most people never need this page — your assistant picks the right tool on its own. It is here for anyone building an agent, debugging a call, or wanting to know exactly what a tool returns.

## The tools

<CardGroup cols={2}>
  <Card title="Find discounts" icon="search" href="/docs/mcp-server/tools/shopify-discount-find">
    Lists the store's discounts. Start here — every other tool needs an id from this one.
  </Card>
  <Card title="Read a discount" icon="file-text" href="/docs/mcp-server/tools/shopify-discount-get">
    The full setup of one discount. Answers "why isn't this applying?"
  </Card>
  <Card title="Discount performance" icon="chart-line" href="/docs/mcp-server/tools/shopify-discount-performance">
    Orders, revenue, and margin given away, for a date range.
  </Card>
  <Card title="Read the discount schema" icon="file-json" href="/docs/mcp-server/tools/shopify-discount-config-schema">
    AIOD's templates and field shapes. Read before building anything.
  </Card>
  <Card title="Search the docs" icon="book-open" href="/docs/mcp-server/tools/shopify-discount-docs-search">
    Setup, widgets, stacking, POS, troubleshooting.
  </Card>
  <Card title="Draft a discount" icon="pencil" href="/docs/mcp-server/tools/shopify-discount-draft">
    Builds an offer and returns a review link. Writes nothing to Shopify.
  </Card>
  <Card title="Create in test mode" icon="rocket" href="/docs/mcp-server/tools/shopify-discount-publish">
    Creates a real Shopify discount that only applies to your test email.
  </Card>
</CardGroup>

## At a glance

| Tool | Touches your store | Writes to Shopify |
| --- | --- | --- |
| `shopify_discount_config_schema` | No | No |
| `shopify_discount_docs_search` | No | No |
| `shopify_discount_find` | Reads | No |
| `shopify_discount_get` | Reads | No |
| `shopify_discount_performance` | Reads | No |
| `shopify_discount_draft` | Reads | No — stages a draft only |
| `shopify_discount_publish` | Reads | **Yes, in test mode** |

Every read tool is marked read-only, so most clients allow them without asking. `shopify_discount_publish` is marked **destructive**, which means well-behaved clients will ask you before every single call.

<Note>
  Why is creating a discount "destructive"? Because of its update path. Creating a *new* discount is harmless. But passing an existing discount's id replaces that discount's rule and forces it back into test mode — so a discount that was live for shoppers stops applying. That is destructive, and it deserves a prompt.
</Note>

## Things that apply to every tool

### Discount ids

Every store-scoped tool needs an AIOD discount id, and the only place to get one is [Find discounts](/mcp-server/tools/shopify-discount-find). It is not a Shopify discount GID. Never build one by hand.

### Configurations are sparse

Both write tools take a `config` object containing **only the fields you are setting**.

- **Creating** — the config must name a `template`.
- **Editing** — send only what changes. It is merged *onto* the stored configuration, not swapped in for it. So read the discount first: you cannot safely change a field without knowing its current value.

These shapes belong to AIOD. They are **not** Shopify's native discount API shapes and cannot be guessed from them. Anything invented gets rejected rather than quietly fixed.

### Rejections are useful, not fatal

When a tool returns a `4xx`, that is not a broken connection. It is a result to read.

A rejected draft or publish comes back with an `issues` list naming the exact fields at fault, and it carries the relevant reference material inline — so you can fix those fields and call again without starting over or re-fetching the schema.

| Code | What it means | What to do |
| --- | --- | --- |
| `unsupported_template` | The template is missing or not a real one. | Pick one from the list attached to the rejection. |
| `edit_changed_nothing` | Your patch matched the saved discount exactly. | The change you meant to make wasn't in it. Look at the current config again. |
| `template_field_out_of_scope` | Every field you sent is uneditable for this template. | Stop. Tell the merchant the setting isn't available here. Don't retry. |
| `tier_has_no_action` | A tier ended up empty. | Each tier needs `conditions` and `actions` in the shapes from the reference. |
| `config_shape_parse_failed` | A condition or action field has the wrong shape. | Fix that one field. The exact syntax comes back with the error. |
| `saved_rule_unavailable` | The discount you're editing couldn't be read safely. | Nothing was staged. Don't retry blindly. |

And the HTTP statuses:

| Status | Meaning |
| --- | --- |
| `400` | Missing or unusable input. |
| `404` | That id isn't one of this store's discounts. |
| `422` | The discount being edited couldn't be loaded. |
| `200` with `ok: false` | Validation or simulation rejected it. Read `issues`. |

If AIOD's session for the store breaks — usually after an uninstall — every tool returns an error asking you to reconnect, rather than failing opaquely.

### Timeouts

One tool call, 60 seconds.

### Old tool names

The tools were renamed when they were namespaced. Clients are only ever offered the current names, but the old ones still work if you have them written down.

| Old | Current |
| --- | --- |
| `get_aiod_context` | `shopify_discount_config_schema` |
| `search_aiod_docs` | `shopify_discount_docs_search` |
| `find_discounts` | `shopify_discount_find` |
| `get_discount` | `shopify_discount_get` |
| `get_discount_performance` | `shopify_discount_performance` |
| `save_discount_draft` | `shopify_discount_draft` |
| `publish_discount` | `shopify_discount_publish` |

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-find

---
title: "Find discounts"
sidebarTitle: "Find discounts"
description: "shopify_discount_find lists the AIOD discounts on your Shopify store and returns the id every other tool needs."
---

Lists the discounts AIOD is running on the store.

<Info>
  **Tool name:** `shopify_discount_find` · **Previously:** `find_discounts` · **Read-only**
</Info>

## When to use it

Whenever someone refers to a discount in words rather than by id — "my summer BOGO", "the free gift offer", "the 10% off tees".

**Start here.** Every other store tool needs the `id` this returns, and there is nowhere else to get one.

It gives you setup and status only. For the money, use [Discount performance](/mcp-server/tools/shopify-discount-performance). For the full rule, use [Read a discount](/mcp-server/tools/shopify-discount-get).

## Parameters

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `query` | string | No | Filters by name, case-insensitive substring. Leave it out to list everything. |
| `first` | integer | No | How many to return. Defaults to `10`, capped at `50`. |

<Tip>
  Usually, don't pass `query`. A merchant's "my summer sale" rarely matches the stored "Summer 2026 — 20% sitewide", so filtering returns nothing while listing everything lets you match on meaning.
</Tip>

## What comes back

```json
{
  "results": [
    {
      "id": "clx8n2k9a0001abcd",
      "title": "Summer BOGO — tees",
      "status": "ACTIVE",
      "discountType": "automatic",
      "template": "bxgy",
      "editUrl": "https://admin.shopify.com/store/your-store/apps/aiod-automatic-discounts/app/bogo/clx8n2k9a0001abcd"
    }
  ],
  "pageInfo": { "hasNextPage": false, "hasPreviousPage": false }
}
```

| Field | What it is |
| --- | --- |
| `id` | The AIOD discount id. This is what every other tool wants. Not a Shopify GID. |
| `title` | The discount's display name. |
| `status` | Active, draft, or test mode. |
| `discountType` | `automatic`, `gift`, `shipping`, or `tiered`. |
| `template` | Which AIOD template it was built from. |
| `editUrl` | A link straight into the AIOD editor in the Shopify admin. Safe to hand to a merchant. |

Newest first. The underlying scan is bounded, so a store with a very large number of discounts may not have every single one represented — narrow with `query` if that happens.

## Things people ask that land here

- "What discounts are running right now?"
- "Do I have a free gift offer live?"
- "Find my Black Friday discount."
- "List everything and tell me which ones expire this month."

## Limits

- Covers only the automatic discounts AIOD manages. Discount codes, and discounts created directly in Shopify or by another app, are not included.
- Reads no orders, products, or customers.
- Reaches exactly one store — the one that was approved when the connector was set up.

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-get

---
title: "Read a discount"
sidebarTitle: "Read a discount"
description: "shopify_discount_get returns one AIOD discount's full setup — its conditions, rewards, dates, and how it combines with other discounts."
---

Returns everything about how one discount is set up.

That means: which products, variants or collections it covers; the cart subtotal or item quantity it needs; the customer tags, segments, markets and locations it is limited to; the purchase type; its start and end dates; and what it actually gives — a percentage or amount off, a free gift, free or discounted shipping, or a tier ladder. Plus how it combines with other Shopify discounts.

<Info>
  **Tool name:** `shopify_discount_get` · **Previously:** `get_discount` · **Read-only**
</Info>

## When to use it

Two situations.

**Explaining a discount.** This is what answers "how is this offer set up?" and "why isn't my discount applying at checkout?" — the conditions it returns are precisely what a cart has to satisfy.

**Before editing one.** [Draft a discount](/mcp-server/tools/shopify-discount-draft) and [Create in test mode](/mcp-server/tools/shopify-discount-publish) both take a patch that gets merged onto this configuration. You cannot safely change a field without first knowing what it currently is. Read, then patch.

## Parameters

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `id` | string | **Yes** | A discount id from [Find discounts](/mcp-server/tools/shopify-discount-find). |

## What comes back

```json
{
  "id": "clx8n2k9a0001abcd",
  "title": "Summer BOGO — tees",
  "status": "ACTIVE",
  "discountType": "automatic",
  "template": "bxgy",
  "config": {
    "template": "bxgy",
    "name": { "value": "Summer BOGO — tees" },
    "condition": [ ... ],
    "action": [ ... ],
    "discountAppliesOn": "product",
    "limitQuantity": "1"
  }
}
```

`config` is the full stored rule as an object. `template` is the important one for editing — the *saved* discount's template decides which fields you are allowed to change, regardless of what you send.

## Errors

| Status | Body |
| --- | --- |
| `400` | `{ "error": "Missing id" }` |
| `404` | `{ "error": "Discount not found" }` — that id isn't one of this store's discounts. |

## Things people ask that land here

- "Why isn't my free shipping discount applying?"
- "What products does the summer sale cover?"
- "What's the minimum spend on my tiered discount?"
- "Show me the current end date before you extend it."

## Limits

- Setup only. No revenue, no orders, no customer records.
- If a merchant configured a discount with something personal in it — a customer segment, an email condition — that comes back, because it is part of the discount.

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-performance

---
title: "Discount performance"
sidebarTitle: "Discount performance"
description: "shopify_discount_performance reports one AIOD discount's orders, revenue, margin given away, and revenue over time."
---

Reports what one discount earned over a date range.

<Info>
  **Tool name:** `shopify_discount_performance` · **Previously:** `get_discount_performance` · **Read-only**
</Info>

## When to use it

This is what answers "is this promotion working?", "how much has the BOGO made?", "did the free shipping threshold lift average order value?", and "which discounts are worth running again for Black Friday?"

To compare offers, call it **once per discount**. There is no all-at-once version.

## Parameters

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `id` | string | **Yes** | A discount id from [Find discounts](/mcp-server/tools/shopify-discount-find). |
| `startDate` | string | No | Inclusive, `YYYY-MM-DD`. Defaults to the AIOD dashboard's usual window. |
| `endDate` | string | No | Inclusive, `YYYY-MM-DD`. Defaults to the AIOD dashboard's usual window. |

## What comes back

```json
{
  "id": "clx8n2k9a0001abcd",
  "title": "Summer BOGO — tees",
  "status": "ACTIVE",
  "startDate": "2026-06-01",
  "endDate": "2026-06-30",
  "orderCount": 214,
  "influencedRevenue": 18420.5,
  "totalDiscountValue": 2610.75,
  "averageOrderValue": 86.08,
  "currencyCode": "USD",
  "revenueOverTime": [{ "date": "2026-06-01", "revenue": 612.4 }],
  "note": null
}
```

| Field | What it is |
| --- | --- |
| `orderCount` | Orders attributed to this discount in the range. |
| `influencedRevenue` | Total revenue of those orders. |
| `totalDiscountValue` | The margin the discount gave away. |
| `averageOrderValue` | Revenue divided by orders, or `0` when there are none. |
| `currencyCode` | The currency for every figure here. |
| `revenueOverTime` | A chart series, at a granularity picked from the length of the range. Empty when there are no orders. |
| `note` | Only set when `orderCount` is `0`, explaining why. |

These are the same figures as the in-app [Analytics](/app/analytics) tab, so an assistant's numbers and the dashboard's numbers agree.

## Errors

| Status | Body |
| --- | --- |
| `400` | `{ "error": "Missing id" }` |
| `404` | `{ "error": "Discount not found" }` |

## Things people ask that land here

- "How is my BOGO performing this month?"
- "Compare the free gift offer and the volume discount for June."
- "How much margin did the sitewide 20% give away?"
- "Which promotion should I re-run for Black Friday?"

## Limits

- **Totals only.** No orders, no line items, no customer records.
- **One discount at a time.** Store-wide sales, sessions, and discounts AIOD doesn't manage are out of scope.
- **Zero orders on a new discount is normal.** Attribution lags checkout by a short while, and `note` says so. Report the zero with that caveat rather than calling the discount broken.

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-config-schema

---
title: "Read the discount schema"
sidebarTitle: "Discount schema"
description: "shopify_discount_config_schema returns AIOD's discount templates, condition operators, and reward shapes — read it before building any discount."
---

Returns the rules a discount has to be built against: the templates, the condition operators, and the reward shapes.

<Info>
  **Tool name:** `shopify_discount_config_schema` · **Previously:** `get_aiod_context` · **Read-only, touches no store data**
</Info>

## When to use it

**Before writing any configuration**, every time.

These shapes belong to AIOD. They are not Shopify's native discount API shapes, and they cannot be worked out from them. A guessed configuration gets rejected, not quietly corrected — so reading first is faster than guessing and retrying.

This is static reference text. It reads nothing from the store.

## Parameters

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `section` | string | No | Which part to read. Defaults to `contracts_1`. |

### The sections

| Section | What's in it |
| --- | --- |
| `contracts_1` | **Start here.** The templates, and which fields each one lets you set. |
| `contracts_2` | The rest of the templates. |
| `conditions` | How to express a condition: cart subtotal and quantity, products, variants, collections, customer tags and segments, market, location, purchase type, dates. |
| `actions_and_rules` | How to express a reward: percentage and amount off, free and discounted gifts, shipping rewards, tier ladders. |
| `schema` | The overall shape a configuration takes. |
| `examples_1`, `examples_2` | Worked configurations. |
| `core` | The in-app assistant's own system prompt. Almost no schema in it — exposed only for completeness. |

<Warning>
  The underlying route defaults to `core` when no section is given, which is nearly useless for building a discount. The MCP tool overrides that to `contracts_1`. Pass a section explicitly whenever you want something else.
</Warning>

## What comes back

```json
{
  "section": "contracts_1",
  "availableSections": ["core", "contracts_1", "contracts_2", "conditions", "actions_and_rules", "schema", "examples_1", "examples_2"],
  "context": "### unified_free_gift — Free gift with purchase\n..."
}
```

`context` is Markdown reference text, not JSON. It comes in sections because the whole thing is several times larger than one tool response can carry.

## The templates

Each contract gives you the template's id, its discount type, exactly which fields you may set, any values that are fixed for you, and its constraints.

| Template id | What it's for | Type |
| --- | --- | --- |
| `specific_item` | A discount that always applies to one target | `automatic` |
| `unified_free_gift` | A free item added separately from what the shopper is buying | `gift` |
| `bxgy` | Buy X get Y, where the shopper adds every line themselves | `automatic` |
| `bxgy_fixed_price` | A set of items for one flat combined price | `automatic` |
| `custom_shipping` | Anything applied to shipping or delivery | `shipping` |
| `custom_discount` | The general-purpose builder, for real eligibility conditions | `automatic` |
| `reject_codes` | Blocking named discount codes when conditions are met | `automatic` |
| `tiered_unified` | A threshold ladder — same condition, rising values | `tiered` |
| `volume_bundle` | Quantity tiers on one shared scope, shown as bundle cards | `tiered` |
| `combined_discount` | Several tiers with genuinely different conditions and rewards | `tiered` |

<Note>
  **Upsell** is a real AIOD template, but it has no contract and no editable fields, so no tool can create or edit it. When Upsell is the right answer, say so and point the merchant at [setting it up by hand](/templates/upsell) — don't force the request into a different template.
</Note>

## Things to watch out for

- **Read `contracts_1` before choosing**, and read the chosen template's contract before writing a single field.
- **Only fields on a template's allowlist survive.** Everything else is silently dropped before validation — which is how an edit ends up rejected for "changing nothing".
- **Condition and reward syntax is not in the contracts.** It's in `conditions` and `actions_and_rules`. Fetch those when a simulation failure names a field shape.

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-docs-search

---
title: "Search the docs"
sidebarTitle: "Search the docs"
description: "shopify_discount_docs_search searches the AIOD product documentation, or reads one page in full."
---

Searches this documentation, or reads one page of it.

<Info>
  **Tool name:** `shopify_discount_docs_search` · **Previously:** `search_aiod_docs` · **Read-only, touches no store data**
</Info>

## When to use it

For the "how does AIOD behave?" questions that surround a promotion:

- Installing and enabling AIOD in the theme
- Plans and pricing
- How discounts stack with Shopify discount codes and other automatic discounts
- Behaviour in the cart, at checkout, and in [Shopify POS](/app/pos-discounts)
- Scheduling a sale
- The storefront [widgets](/app/discount-widgets) — progress bars, gift drawers, bundle and upsell widgets, strike-through pricing
- Troubleshooting a discount that isn't showing or isn't applying

**Not for building a config.** Field shapes come from [Read the discount schema](/mcp-server/tools/shopify-discount-config-schema), and the store's own discounts from [Find discounts](/mcp-server/tools/shopify-discount-find).

## Parameters

Pass either `query` or `page`. Passing neither returns nothing.

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `query` | string | No | Search terms. Returns ranked pages with excerpts. |
| `page` | string | No | A page path from a search result, to read it in full. Wins over `query` if both are set. |
| `section` | string | No | A heading within `page`, to read just that part. |

The intended pattern is search, then read: get a path from a search result rather than guessing one.

## What comes back

Searching:

```json
{
  "results": [
    {
      "title": "Free Gift with Purchase",
      "page": "templates/free-gift-with-purchase.mdx",
      "excerpt": "Use this template to auto-add gifts, let customers choose gifts..."
    }
  ]
}
```

Up to 8 results, with excerpts trimmed to fit a combined budget of about 6,000 characters.

Reading a page:

```json
{
  "page": "templates/free-gift-with-purchase.mdx",
  "content": "---\ntitle: \"Free Gift with Purchase\"\n...",
  "truncated": false
}
```

`content` is `null` if the page can't be read. With `section` set, the read starts at that heading and returns the part that follows; a heading that doesn't match falls back to the whole page.

## Things people ask that land here

- "How do AIOD discounts combine with Shopify discount codes?"
- "Why isn't my volume bundle widget showing on the product page?"
- "Do automatic discounts work on Shopify POS Lite?"
- "What does 'Show discounted price crossout' do?"

## Limits

- Search words are sent to AIOD's documentation site to run the search. **Words only** — no store data goes with them.
- This is product documentation, not the configuration schema. Don't build a `config` from it.

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-draft

---
title: "Draft a discount"
sidebarTitle: "Draft a discount"
description: "shopify_discount_draft builds an AIOD discount and returns a prefilled editor link. It creates nothing in Shopify."
---

Builds a discount and returns a link to review it in the AIOD editor.

Works for anything AIOD can do: a BOGO, a free gift with purchase, tiered or volume quantity breaks, a fixed bundle price, free shipping over a spend threshold, a percentage or amount off a product or collection, a scheduled seasonal sale.

The same call proposes *changes* to an existing discount when you pass `targetDiscountId` — raising a threshold, extending an end date, swapping the gift, re-shaping a tier ladder.

<Warning>
  **Nothing is created in Shopify.** No discount exists and no shopper can receive one until the merchant opens the returned link and saves it there. Say so when you report back — a staged draft is not a live discount.
</Warning>

<Info>
  **Tool name:** `shopify_discount_draft` · **Previously:** `save_discount_draft` · **Writes nothing to Shopify**
</Info>

## When to use it

**This is the default.** Because it touches nothing, it covers building an offer all the way up to the moment the merchant looks at it.

[Create in test mode](/mcp-server/tools/shopify-discount-publish) is the tool that makes a real discount, and it only applies once the merchant has actually asked for that.

## Parameters

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `config` | object | **Yes** | The discount, sparse — only the fields you're setting. |
| `targetDiscountId` | string | No | An existing discount to propose an edit against. Leave it out to create something new. |
| `userMessage` | string | No | The merchant's request in their own words. Stored with the draft so the editor and history show what was asked for. |

### About `config`

Shapes come from [Read the discount schema](/mcp-server/tools/shopify-discount-config-schema) and are checked strictly.

**Creating** needs a `template` id. **Editing** needs only the fields that change — they're merged onto the stored configuration, not swapped in for it, which is why you should [read the discount](/mcp-server/tools/shopify-discount-get) first.

## What comes back

### When it works

```json
{
  "ok": true,
  "url": "https://admin.shopify.com/store/your-store/apps/aiod-automatic-discounts/app/ai-draft/clx9conv0001",
  "conversationId": "clx9conv0001",
  "config": { "...": "the merged configuration" },
  "warnings": [],
  "message": "Draft staged. The merchant must open the link to review the prefilled discount and save it."
}
```

Give the merchant `url` exactly as it comes — it's a direct link into the AIOD editor in their Shopify admin. The `config` comes back enriched with product titles and thumbnails, so it reads the way the editor will render it.

### When it's rejected

```json
{
  "ok": false,
  "issues": [
    { "level": "error", "code": "config_shape_parse_failed", "message": "..." }
  ],
  "simulation": [ ... ],
  "schemaReference": "...",
  "message": "The merged discount did not pass validation. Correct only the affected editable paths, then retry with a sparse patch."
}
```

**The rejection contains its own fix.** Depending on what failed it carries either `schemaReference` (the template's contract) or `fieldSyntaxReference` (exact condition and reward syntax) — one or the other, never both, to stay within the response budget. Use it instead of fetching the schema again.

The [rejection codes are listed on the tools overview](/mcp-server/tools#rejections-are-useful-not-fatal).

| Status | When |
| --- | --- |
| `400` | Missing or invalid `config`, or an unsupported template. |
| `404` | `targetDiscountId` isn't one of this store's discounts. |
| `422` | The discount being edited couldn't be loaded safely. |

## What it checks before staging

Every draft goes through the same gate, in order:

1. **Shape repair.** Common near-misses — object-wrapped conditions, string operators — are fixed automatically before anything is validated.
2. **Field policy.** For an edit, the *saved* discount's template decides which fields you may change, not the one you sent. Anything outside that allowlist is dropped.
3. **No-op check.** A patch that merges back to an identical rule is rejected — it means the change you meant to make wasn't actually in there.
4. **Empty tier check.** A tier left with nothing meaningful in it is rejected rather than staged silently.
5. **Validation and cart simulation.** Errors or a failed simulation reject the draft. Warnings alone don't.

## Things people ask that land here

- "Set up 20% off the Summer collection for July."
- "Draft a buy 2 get 1 free on t-shirts so I can look at it."
- "Raise the free-shipping threshold on my existing offer from $50 to $75."
- "Extend the Black Friday discount through Cyber Monday."

## Getting it right

- **Always say the draft isn't live** and that the merchant has to open the link and save.
- **Fix only what the rejection names.** Don't rewrite the whole configuration.
- **Never retry a `template_field_out_of_scope` rejection with the same fields.** That setting genuinely isn't editable for that template — say so instead.
- **Put the merchant's own words in `userMessage`**, not a paraphrase of your plan. It's stored and shown back to them.

---

Source: https://aiodapp.com/docs/mcp-server/tools/shopify-discount-publish

---
title: "Create in test mode"
sidebarTitle: "Create in test mode"
description: "shopify_discount_publish creates a real Shopify discount that only applies to your store's test email address."
---

Creates the discount in Shopify for real — in **test mode**.

<Info>
  **Tool name:** `shopify_discount_publish` · **Previously:** `publish_discount` · **Writes to Shopify** · Marked destructive, so most clients will ask before every call
</Info>

## When to use it

Only when the merchant has actually asked for the discount to be created, or wants to try it on the live storefront before opening it to shoppers.

[Draft a discount](/mcp-server/tools/shopify-discount-draft) covers everything up to that point and touches nothing. **A successful draft is not a reason to publish.**

## What "test mode" really means

It is not a dry run.

The discount genuinely exists in Shopify, and Shopify genuinely evaluates it at checkout. What makes it safe is that AIOD attaches an email condition when creating it, so it **only ever applies to the store's test email address** — returned to you as `testModeEmail`. Real shoppers are unaffected.

It stays that way until a person opens it in the AIOD editor and switches it to active. **No tool here can make that switch, activate a discount, or delete one.**

<Warning>
  **Passing `targetDiscountId` overwrites.** It replaces that discount's rule in Shopify and re-creates it in test mode — so a discount that was live for shoppers stops applying. That's why this tool is marked destructive. Confirm with the merchant, in words, before doing it.
</Warning>

## Parameters

| Name | Type | Required | What it does |
| --- | --- | --- | --- |
| `config` | object | **Yes** | The discount, sparse. Same shape as [Draft a discount](/mcp-server/tools/shopify-discount-draft). |
| `targetDiscountId` | string | No | An existing discount to overwrite. Leave it out to create something new. |

There is no `mode` parameter. Test mode is fixed in the server — nothing a caller sends can push a chat-authored discount live.

## What comes back

### When it works

```json
{
  "ok": true,
  "discountId": "clx8n2k9a0001abcd",
  "url": "https://admin.shopify.com/store/your-store/apps/aiod-automatic-discounts/app/bogo/clx8n2k9a0001abcd",
  "shopifyDiscountId": "gid://shopify/DiscountAutomaticNode/123456789",
  "title": "Summer BOGO — tees",
  "status": "TEST_MODE",
  "testModeEmail": "aiod-test-a1b2c3@example.com",
  "warnings": [],
  "message": "Created in TEST MODE. It is live in the store but only applies for the test email above — tell the merchant they must open it and switch it to active before real shoppers see it."
}
```

| Field | What it is |
| --- | --- |
| `discountId` | The AIOD id, usable with every other tool. |
| `url` | Where the merchant goes to switch it from test mode to active. |
| `shopifyDiscountId` | The Shopify discount that was created. |
| `testModeEmail` | The only address the discount applies for. **Always show this.** |
| `warnings` | Validation warnings that didn't block it. |

### When it's rejected

```json
{
  "ok": false,
  "issues": [ { "level": "error", "code": "...", "message": "..." } ],
  "simulation": [ ... ],
  "message": "The discount did not pass validation or cart simulation, so nothing was created. Correct the affected paths and retry."
}
```

If validation or simulation fails, **nothing is created or changed.**

| Status | When |
| --- | --- |
| `400` | Missing or invalid `config`, unsupported template, or the publish itself failed. |
| `404` | `targetDiscountId` isn't one of this store's discounts. |
| `200` with `ok: false` | Validation or simulation rejected it. |

## What it checks first

Exactly the same gate as drafting — shape repair, field policy, empty tier check, then validation and cart simulation. **An unverified configuration is never published.** The [rejection codes](/mcp-server/tools#rejections-are-useful-not-fatal) are the same too.

## Things people ask that land here

- "Create it — I want to test the BOGO on the storefront."
- "Go ahead and publish the free gift offer in test mode."
- "Replace the tier ladder on my volume discount with these three tiers."

## Getting it right

Report all three of these, every time:

1. The discount is genuinely created in Shopify, in test mode.
2. It only applies for `testModeEmail`. Real shoppers see nothing.
3. The merchant must open `url` and switch it to active themselves. No tool can do it for them.

And remember this only covers AIOD's automatic discounts — not discount codes, and not discounts created directly in Shopify or by another app.

---

Source: https://aiodapp.com/docs/templates/discount-specific-item

---
title: "Discount Specific Item"
description: "Template for discounting specific collections, products, variants, or all items in AIOD."
---

Use **Discount Specific Item** when a merchant wants to discount selected products, selected variants, selected collections, or all items.

The template card says: "Apply discount to Product / Variant / Collection. Show strike-through prices on the product & collection pages." The example shown in AIOD is "20% off on shirts."

## When to use this template

Use this template for:

- A percentage discount on selected items.
- A fixed amount discount on selected items.
- A fixed final price for selected items.
- A discount that applies to all items.
- A simple sitewide or storewide discount, because **Apply Discount to All** discounts all items directly.
- Item-level discounts that may need customer, channel, date, purchase type, or cart-condition limits.

Use another template for free gifts, BOGO, volume tiers, shipping discounts, or bundles of multiple discounts.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

Click **Create** on the **Discount Specific Item** card. AIOD opens a form titled **Specific Product/Collection**.

## Top-level controls

| Setting | Location | What it does |
| --- | --- | --- |
| **Use Custom Rule Builder** | Header | Opens the custom rule builder when the merchant needs more control than this template form provides. |
| **Discount ID (For your reference)** | First form section | Internal identifier for the discount. The input placeholder is `eg: GET 20% OFF`. AIOD shows a 64-character counter. |

If no **Title** is set for an automatic discount, the **Discount ID** can be shown to customers instead.

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

## Discount method

The **Discount Method** section has two modes.

### Automatic discount

Choose **Automatic discount** when the discount should apply automatically at cart or checkout.

Settings shown in this mode:

- **Title**: Customer-facing discount title.
- **Keep same as identifier**: Copies the **Discount ID** into the title.

AIOD explains that customers see the title in their cart and at checkout.

### Discount code

Choose **Discount code** when customers must enter a code at checkout.

Settings shown in this mode:

- **Discount Code**: Code input.
- **Generate random code**: Generates a code.
- **Copy discount code**: Copies the current code.
- **Add bulk discount codes**: Opens a bulk-code dialog.
- **Maximum Discount Code Uses**: Usage limits that only appear for code discounts.

The bulk-code dialog has two modes:

- **Enter manually**: Enter comma-separated codes. Example format: `SUMMER10, VIP2026, SAVE20`.
- **Generate**: Generate many codes with **Prefix (optional)**, **Suffix (optional)**, and **How many codes**. The maximum shown is 10,000 codes. AIOD shows sample generated codes before review.

Usage limit settings:

- **Limit number of times this discount can be used in total**: Reveals a numeric input.
- **Limit to one use per customer**: Restricts each customer to one use.

## Select items to apply discount on

The **Select items to apply discount on** section controls the discount target.

| Target option | Picker shown | Empty state |
| --- | --- | --- |
| **Apply Discount to Specific Collection** | **Select collections** | **No collections selected** |
| **Apply Discount to Specific Product** | **Select products** | **No products selected** |
| **Apply Discount to Specific Variant** | **Select variants** | **No variants selected** |
| **Apply Discount to All** | No picker | None |

The collection picker opens a searchable Shopify resource picker. It shows collection rows, product counts, and checkboxes.

## Discount value

The **Discount Type** dropdown controls how AIOD interprets **Discount Value**.

| Discount type | Meaning |
| --- | --- |
| **Percentage** | Discount value is a percent off the target items. |
| **Fixed Discount** | Discount value is a fixed amount off the target items. |
| **Fixed Final Price** | Discount value is the final price for every single quantity of the selected item. |

When **Fixed Final Price** is selected, AIOD shows this helper text: "Final price of every single quantity of the above selected item."

## Sales channel

Read [**Sales channel**](/app/common-template-settings#sales-channel) for the channels (**Online store**, **Tapcart mobile app**, **POS**), their defaults, and POS locations.

## Customer segment

The **Customer Segment** section restricts the discount to selected customer segments.

AIOD describes this section as: "This discount will be only applicable for customers in the selected segments."

Use **Customer segments** to choose eligible Shopify customer segments. If the store has no available segments, the list can appear empty.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

## Schedule

The **Schedule** section (renamed from **Active Dates**) controls when the discount starts and ends. AIOD-751 replaced the old date-time component with this shared **Schedule** card in every discount editor.

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.

## Advanced settings

Click **Show** in **Advanced Settings (Optional)** to reveal advanced controls.

### When to apply discount

The **When to apply discount** section controls conditions. The default is **Always**.

The condition picker contains these options:

| Category | Conditions |
| --- | --- |
| General | **Always** |
| Cart/Order Details | **Cart Subtotal Amount**, **Order Weight**, **Cart Quantity** |
| Product Details | **Product**, **Collection**, **Variant**, **Variant Whose Metafield**, **Purchase Type** |
| Shipping Address | **Country** |
| Customer Details | **Customer Tags**, **Number of past orders**, **Customer Should Be Logged In** |

Use these conditions when the discount should apply only for a qualifying cart, item, customer, purchase type, or destination.

#### Exclude items from conditions

At the bottom of the **When to apply discount** card, **Exclude items (optional)** hides selected products, variants, or collections while the conditions are checked.

Read [**Exclude items from conditions**](/app/common-template-settings#exclude-items-from-conditions) for information about this.

### Where to apply the discount

The **Where to apply the discount** section has two radio options:

- **Product Level**: Applies the discount to individual line items.
- **Order Level**: Applies the discount to the whole order total once at the end.

**Product Level** is selected by default.

### Discount rules and limits

The **Discount Rules & Limits** section includes optional constraints.

| Setting | Behavior |
| --- | --- |
| **Maximum Discount Amount** | Reveals a numeric input for the maximum discount amount. |
| **Limit Quantity of Discounted Items** | Reveals a numeric quantity input. The default shown is `1`. |
| **Apply discount on the LEAST expensive items** | Available after **Limit Quantity of Discounted Items** is enabled. If disabled, AIOD states the discount applies to the most expensive items. |
| **Combo Discount** | Available after **Limit Quantity of Discounted Items** is enabled. |
| **Multiply based on condition** | Disabled in the observed default state. Helper example: "Buy 2 get 1, buy 4 get 2." |
| **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**](/app/common-template-settings#apply-this-discount-on-the-compare-at-price) for information about this. |

### Purchase type eligibility

The **Purchase Type Eligibility** dropdown controls whether subscription and one-time purchase items qualify.

Options:

- **One-time purchase**
- **Subscription**
- **Both**

**Both** is selected by default.

AIOD explains that the discount only applies to the selected purchase type items.

Enable **Limit the number of subscription cycles the discount will apply to.** to reveal a numeric cycle-count input.

## Show discounted price crossout

Read [**Show Discounted Price Crossout**](/app/common-template-settings#show-discounted-price-crossout) for the shared storefront strikethrough pricing controls and placement steps.

## Save and rule size

The form has a **Save** button.

AIOD also shows Shopify function rule size information, such as:

- **Rule Size: 1.10 KB / 10 KB**
- **NOTE: This limit is set by Shopify**

Mention the rule size when a merchant asks about Shopify limits or why a discount cannot include unlimited logic.

## AI answering guidance

When an AI answers a merchant question about this template:

- Refer to the app page as **Specific Product/Collection**.
- Use **Discount Specific Item** as the template name.
- Ask whether the merchant wants **Automatic discount** or **Discount code** if the prompt does not say.
- Ask what the target is: collection, product, variant, or all items.
- Ask for discount type and value.
- Ask about channels, customer segments, combinations, dates, and advanced limits only when relevant.
- Do not claim the strikethrough option is always enabled. State that it appears in this template and can be gated by valid discount configuration. Link to [Show Discounted Price Crossout](/app/common-template-settings#show-discounted-price-crossout) for the shared UI details.

---

Source: https://aiodapp.com/docs/templates/combined-multi-discounts

---
title: "Combined Multi Discounts"
description: "Template for creating any number of product, gift, shipping, or order discount blocks under one AIOD discount."
---

Use **Combined Multi Discounts** when a merchant wants multiple discounts under one AIOD discount.

This template is mainly for combining many discount actions into one automatic discount or one discount code. Each action is configured as its own discount block, such as **Discount #1**, **Discount #2**, and additional blocks added with **Add discount**.

Each discount block can be any one of these types:

- **Product Discount**
- **Free Gift**
- **Shipping Discount**
- **Order Discount**

Merchants can add any number of these blocks under the same combined discount. For example, one combined discount can include a product discount, a free gift, a shipping discount, and another product discount with a different condition.

The template card says: "Combine multiple discounts into one offer (eg: free gift + shipping + product discount), with flexible conditions." It appears under **Popular Ways to Create Discounts** on the **Select Discount Type** page and opens with **Start creating**.

## When to use this template

Use this template for:

- Multiple discounts controlled by one automatic discount.
- Multiple discounts unlocked by one discount code.
- Product discount plus free gift.
- Product discount plus shipping discount.
- Free gift plus order discount.
- Several discount blocks where each block has its own condition, target, value, or limit.

Use another template when the merchant only needs one simple discount action, such as one item discount, one free gift flow, one BOGO offer, one volume tier, or one shipping discount.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

On the **Select Discount Type** page, click **Start creating** on the **Combined Multi Discounts** card (under **Popular Ways to Create Discounts**). AIOD opens a form titled **Combined Discount**.

## Core concept

A combined discount has one top-level discount wrapper and multiple child discount blocks.

The top-level wrapper controls:

- **Discount ID (For your reference)**
- **Automatic discount** or **Discount code**
- Customer eligibility
- Offer-wide conditions for the whole combined discount
- Sales channel
- Discount combinations
- Schedule
- Advanced settings
- Save behavior

Each discount block controls one discount action:

- The block type: **Product Discount**, **Free Gift**, **Shipping Discount**, or **Order Discount**.
- When that block applies.
- What the block applies to.
- The block's discount value or gift quantity.
- The block's own rules and limits.

The observed default form started with two blocks:

| Discount block | Default type | Default value |
| --- | --- | --- |
| **Discount #1** | **Product Discount** | `5%` |
| **Discount #2** | **Product Discount** | `10%` |

Click **Add discount** to add more blocks. A new block starts as a **Product Discount** with the **Always** condition and a **Percentage** discount type with no value entered. Change the block type from the block's type dropdown if the new block should be a **Free Gift**, **Shipping Discount**, or **Order Discount**.

## Status mode

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

## Discount method

The top-level **Discount Method** controls how customers get the combined discount.

| Method | Use it for |
| --- | --- |
| **Automatic discount** | Apply all eligible blocks automatically in cart or checkout. |
| **Discount code** | Require customers to enter one code that can unlock all eligible blocks. |

Automatic discounts show **Title** and **Keep same as identifier**.

Discount-code mode shows:

- **Discount Code**
- **Generate random code**
- **Copy discount code**
- **Add bulk discount codes**
- **Maximum Discount Code Uses**
- **Limit number of times this discount can be used in total**
- **Limit to one use per customer**

## Discount block types

### Product Discount

Use **Product Discount** for product, collection, variant, metafield, all-item, eligible-item, or exclusion-based product discounts.

Common controls:

- **When to apply this discount**
- **Apply discount to**
- **Discount Value**
- **Rules & Limits**

Discount value options:

- **Percentage**
- **Fixed Discount**
- **Fixed Final Price**

### Free Gift

Use **Free Gift** to add gift variants as one block inside the combined discount.

Common controls:

- **When to apply this discount**
- **Select gift items**
- **Select variants**
- **Quantity of each gift to be added**

AIOD tells merchants to ensure variants are active, in stock, and have a price greater than `0`.

### Shipping Discount

Use **Shipping Discount** to add a shipping reward as one block inside the combined discount.

Shipping target options:

- **To all shipping methods**
- **To specific shipping methods**
- **To all shipping methods excluding these**

Discount value options:

- **Percentage**
- **Fixed Discount**
- **Fixed Final Price**

### Order Discount

Use **Order Discount** to add an order-level discount as one block inside the combined discount.

Common controls:

- **When to apply this discount**
- **Apply discount to**
- **Discount Value**
- **Rules & Limits**

## Block conditions

Each discount block has its own **When to apply this discount** section. It is a single searchable dropdown, the same pattern used on [Custom Rule Builder](/templates/custom-rule-builder#when-should-this-discount-apply).

Use block-level conditions when only that block should depend on a condition. For example, one block can always apply, while another block only applies after a cart subtotal, product, customer, or shipping condition is met.

The default condition is **Always**.

Condition categories include:

- **Cart/Order Details**
- **Product Details**
- **Shipping Address**
- **Customer Details**

Only one condition can be selected per block. The form does not show **AND condition** or **OR condition** controls; choosing a different condition replaces the current one.

## Rules and limits

Each discount block has **Rules & Limits**.

Available controls:

- **Limit Quantity of Discounted Items**
- **Apply discount on the LEAST expensive items**
- **Combo Discount**
- **Multiply based on condition**

Some controls are disabled until another option is enabled. For example, **Apply discount on the LEAST expensive items** is disabled until quantity limiting is enabled.

### Additional Rules & Limits

Each non-gift block also has an **Additional Rules & Limits** card, collapsed by default. Click anywhere on the card's header row — the title text as well as the chevron — to expand or collapse it. It holds the block's quantity and multiplier controls, **Apply this discount on the compare at price**, and **Purchase Type eligibility**.

**Apply this discount on the compare at price** applies to the whole combined discount, not to one block. Every block shows the same value, and changing it from any block changes it for all of them. It is not shown on shipping blocks. Read [**Apply this discount on the compare at price**](/app/common-template-settings#apply-this-discount-on-the-compare-at-price) for information about this.

**Purchase Type eligibility** is set per block (not once for the whole combined discount). Options: **Both** (default), **Subscription**, **One time purchase**, plus a **Limit number of subscription cycles** input — leave it blank to allow all subscription cycles.

### Discount message

Each block has a **Discount message (optional)** text field at the bottom of the block, below **Additional Rules & Limits**. It is the per-block discount title (label) customers see in the cart and at checkout.

- Placeholder: `Eg: Buy 2 get 10% off`.
- Helper text: "Shown to customers when this discount applies. Falls back to the offer title when empty."
- Leave it empty to show the combined discount's **Title** for that block.
- Variables such as `{{...}}` are not supported. A message containing `{{` shows the error "Variables can NOT be used in discount message".
- The field is shown only when **Discount Method** is **Automatic discount**. With **Discount code**, customers see the discount code instead, and the field is hidden.

When **Allow Stacking Of Discounts** is checked, blocks of the same kind (for example, two product discount blocks) are sent to Shopify as one discount. Customers then see one message for them: the first non-empty block message.

## Top-level settings

These settings apply to the combined discount as a whole:

- **Customer Eligibility Rules (Optional)**
- **Offer-Wide Conditions**
- [**Sales channel**](/app/common-template-settings#sales-channel)
- **Combinations**
- **Schedule**
- **Advanced Settings**
- [**Show Discounted Price Crossout**](/app/common-template-settings#show-discounted-price-crossout)

A combined discount can use up to `100` unique collections across all of its blocks and offer-wide conditions. Read [**Collection limit per discount**](/app/common-template-settings#collection-limit-per-discount) for information about this.

Use **Offer-Wide Conditions** (renamed from **Extra Conditions**) when the whole combined discount should depend on a condition, via an **Add condition** button. Use block-level **When to apply this discount** when only one block should depend on a condition.

### Combinations

The **Combinations** section shows inline controls rather than only a link-out: a **Product discounts** checkbox (reveals **Tags this discount stacks with** when checked), **Order discounts**, **Shipping discounts**, and a **View the discounts it can combine with** link.

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for the shared combination behavior, and [**Tags this discount stacks with**](/app/common-template-settings#tags-this-discount-stacks-with) for the stacking-tags field. A **Discount tags** card also appears in the right-hand column of the form — read [**Discount tags**](/app/common-template-settings#discount-tags) for information about this.

### Schedule

The **Schedule** section (renamed from **Active Dates**) controls when the combined discount starts and ends: **Run continuously** (default) or **Set a schedule**.

## Show discounted price crossout

## Advanced settings

Click **Show** in **Advanced Settings** to reveal:

- **Exclude already discounted items from discount (whose compare at price > selling price)**
- **Allow Stacking Of Discounts**
- **Move overlapping tier discounts to other eligible items** — shown only while **Allow Stacking Of Discounts** is unchecked.

### Move overlapping tier discounts to other eligible items

Read [**Move overlapping tier discounts to other eligible items**](/app/common-template-settings#move-overlapping-tier-discounts-to-other-eligible-items) for how this option and its nested **Don't count discounted items toward later tiers** checkbox work.

On **Combined Multi Discounts**:

- Each discount block is a tier. Blocks claim items in block order: **Discount #1** first, then **Discount #2**, and so on.
- Block conditions still look at the whole cart, unless **Don't count discounted items toward later tiers** is checked.
- The checkbox is shown only while **Allow Stacking Of Discounts** is unchecked, because stacked discounts already apply together on the same items. Saved discounts that never had it stay unchecked and keep their earlier behavior.

**Purchase Type Eligibility** is no longer here. It moved to each block's own [**Additional Rules & Limits**](#additional-rules--limits) card — see that section.

## Save

Click **Save** after configuring the discount method, all discount blocks, block conditions, top-level eligibility, channels, combinations, dates, advanced settings, and **Show Discounted Price Crossout** when applicable.

---

Source: https://aiodapp.com/docs/templates/free-gift-with-purchase

---
title: "Free Gift with Purchase"
description: "Template for auto-adding gifts, letting customers choose gifts, unlocking gifts with a discount code, or requiring a code before the customer chooses a gift."
---

Use **Free Gift with Purchase** when a merchant wants to offer gift products after the customer qualifies.

In the app, this template is the **Simple free gifts** inner template under the **Free gifts** card. The **Free gifts** card says: "Automatically add a gift or let customers choose their gift when they qualify." The example shown in AIOD is "Buy 2 shirts, get 1 cap free." The **Simple free gifts** card says: "Give free gift/s when customers meet a condition (Spend $50 -> Get Gift)"

## When to use this template

Use this template for:

- Buy qualifying items and get a free gift.
- Spend a qualifying amount and get a free gift.
- Let customers choose from available gifts.
- Auto-add a gift when the cart qualifies.
- Unlock a gift with a discount code.
- Require customers to enter a valid discount code before they can choose a gift from the widget.
- Offer a gift at a special discounted price instead of fully free.

Use another template for direct item discounts, BOGO pricing, volume tiers, shipping discounts, or multi-discount bundles.

Use [Tiered free gifts](/templates/tiered-free-gifts) when different gifts unlock at different spend or quantity levels, such as "Spend `$50` get Gift A, spend `$100` get Gift B".

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

1. Click **Create** on the **Free gifts** card. Older versions of the app named this card **Free Gift with Purchase**.
2. AIOD opens a **Select type** page with **Simple free gifts** and **Tiered free gifts**.
3. Click **Simple free gifts**. AIOD opens a form titled **Free Gift**.

**Tiered free gifts** opens a different form. Read [Tiered free gifts](/templates/tiered-free-gifts).

## Form layout

The **Free Gift** form has three tabs:

- **Offer**
- **Advance settings**
- **Widget Settings**

It also includes **Switch to legacy template** and a top-right status dropdown.

## Status mode

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

| Status | Meaning |
| --- | --- |
| **Active** | The offer is live for customers. |
| **Testing mode** | The offer is visible to the merchant for testing, but it is not live for customers. |
| **Deactivate** | The offer is turned off. |

## Theme extension requirement

AIOD can show this warning: **Required: Theme Extension Should Be Enabled**.

Use this section when a merchant asks why the gift widget is not appearing on the storefront.

## Offer tab

Use **Offer** to choose gifts, define how customers receive them, configure qualification rules, set the customer-facing title, and schedule the offer.

### Select gift products

The **Select gift products** section chooses the products offered as gifts.

AIOD notes that gift variants should be active, in stock, and have a price greater than `0`.

Click **+ Select gift products** to choose gift products.

### Gift adding method

The **Gift adding method** section controls how the gift reaches the cart.

| Method | Behavior | Extra settings |
| --- | --- | --- |
| **Auto-added** | AIOD automatically adds the gift to the cart when the customer qualifies. | Shows **Quantity per gift**. |
| **Customer chooses** | Customers can select their preferred gift from the options provided. | Shows **Total gifts customer can choose**. |
| **Trigger with discount code** | AIOD adds the gift only when customers enter a specific discount code. | Shows discount code fields, usage limits, discount URL, and coupon widget settings. |
| **Code + customer chooses** | Customers enter the discount code first. If the code is valid, AIOD shows the gift claim widget so the customer can choose and claim a gift. | Shows discount code fields, usage limits, discount URL, coupon widget settings, and **Total gifts customer can choose**. |

### Gift quantity

For **Auto-added** and **Trigger with discount code**, AIOD shows **Quantity per gift**.

For **Customer chooses** and **Code + customer chooses**, AIOD shows **Total gifts customer can choose**.

Both controls use a numeric input. The default shown is `1`.

Enable **Multiply Gift Quantity based on "When" rules** when the gift quantity should scale with the qualification rule. AIOD gives this example: buy 2 get 1 gift, buy 4 get 2 gifts, and so on.

### Free gift settings

The **Free gift settings** section defines when the customer qualifies.

The first choice is what the customer buys:

- **Quantity of items**
- **Purchase amount**

Then choose **Any items from**:

| Option | Behavior |
| --- | --- |
| **All products** | Counts all products. |
| **Specific products** | Reveals **+ Select products**. |
| **Specific collections** | Reveals **+ Select collections**. |
| **Specific variants** | Reveals **+ Select variants**. |

For **Quantity of items**, AIOD shows:

- **Condition**: **Minimum**, **Maximum**, or **Equals**.
- **Quantity** numeric input.

For **Purchase amount**, AIOD shows:

- **Condition**: **Minimum**, **Maximum**, or **Equals**.
- **Amount $** numeric input.

Click **AND condition** to add another qualification block. AIOD adds a second condition group and a **Delete AND condition** control.

#### Exclude items from conditions

At the bottom of the **Free gift settings** card, **Exclude items (optional)** hides selected products, variants, or collections while the purchase requirement is checked. The gift items themselves are unaffected.

Read [**Exclude items from conditions**](/app/common-template-settings#exclude-items-from-conditions) for information about this.

### Discount code

This section appears when **Trigger with discount code** or **Code + customer chooses** is selected.

Settings:

- **Discount Code** input.
- **Generate random code**.
- **Copy discount code**.
- **Add bulk discount codes**.
- **Maximum Discount Code Uses**.

AIOD notes that the customer must enter this code in the **AIOD Discount Input** widget. The widget can be placed on the cart page and side cart drawer. Read [Discount Code Input](/app/discount-widgets#discount-code-input) for the widget settings.

Bulk-code options:

- **Enter manually**: Enter comma-separated codes.
- **Generate**: Generate many codes with optional prefix, optional suffix, and a code count.

Usage limit settings:

For **Code + customer chooses**, the customer enters the code first. AIOD shows the gift claim widget only after the code is valid.

When a code-based gift method is active, the summary can show:

- **Discount URL**: A storefront URL that applies the discount code automatically.
- **Discount Code Input Widget**: A shortcut to **Coupon Widget Settings**.

### Discount title

The **Discount title** field is shown for non-code gift methods.

AIOD says this title is shown to customers in cart and checkout.

### Schedule

The **Schedule** section controls when the gift offer runs.

Options:

- **Run continuously**: No start/end schedule.
- **Set a schedule**: Reveals **Start date**, **Start time**, **End date**, and **End time**.

## Advance settings tab

Use **Advance settings** for customer eligibility, markets, purchase type, combinations, purchase amount calculation, gift pricing, and cart behavior.

### Customer eligibility

The **Customer eligibility** section controls who can use the offer.

Options:

- **All customers**
- **Specific customers**

When **Specific customers** is selected, AIOD shows a condition builder.

Customer condition types:

- **Customer tags**
- **Customer past orders**
- **Customer email**
- **Customer should be logged in**

For **Customer tags**, operators include:

- **matches any of**
- **matches all of**
- **does not match any of**

The tag input placeholder is `eg- VIP, Gold`.

Optional controls:

- **Apply discount in cart/website without validation & later validate customer eligibility on checkout**.
- **Add condition**.

### Markets

The **Markets** section controls where the offer is available.

Options:

- **All markets**
- **All markets except specific selected countries**
- **Specific selected countries**

The selected-country modes show a **Countries** selector and **Browse** button.

Also included, independent of the market option chosen:

- **Limit by city (Only works on checkout)** checkbox.
- **Limit by zipcode (Only works on checkout)** checkbox.

### Purchase type eligibility

The **Purchase Type eligibility** section controls whether subscription and one-time purchase items qualify.

Options:

- **Both**
- **Subscription**
- **One time purchase**

The section also includes **Limit number of subscription cycles**. Leave it blank to allow all subscription cycles.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this. When **Product discounts** is checked, AIOD also shows a **Tags this discount stacks with** field and a **Discount tags** card — read [**Tags this discount stacks with**](/app/common-template-settings#tags-this-discount-stacks-with) and [**Discount tags**](/app/common-template-settings#discount-tags) for information about those.

### How to calculate purchase amount

This setting matters when the offer uses a purchase amount rule.

Options:

- **Subtotal before discount**
- **Subtotal after discount**

**Subtotal after discount** was selected by default in the observed form.

### Offer pricing

The **Offer pricing** section controls whether the gift is free or discounted.

Options:

- **Offer as free gift**
- **Offer at a discounted price**

When **Offer at a discounted price** is selected, AIOD shows **Discount percentage %**. The observed default value was `50`.

Also included: **Exclude AIOD-attributed items from condition calculation** checkbox.

### Cart refresh and behavior

The **Cart refresh and behavior** section controls cart-side behavior.

Settings:

- **Auto remove**: Automatically removes free gifts if the customer is no longer eligible.
- **Allow gift opt-out**: Allows customers to manually remove free gifts from the cart.

AIOD also shows an **Instant cart refresh** notice. It says the side cart drawer should auto-refresh when a gift is added or removed. If it does not, contact support so theme support can be added.

For global cart reload code, use [**Settings** > **Free gift settings** > **Cart auto reload function (For Developers)**](/app/settings#cart-auto-reload-function). AIOD calls this function each time a gift is added or removed. The code is theme-specific, so developers should add the reload function required by the merchant's theme.

## Widget Settings tab

Use **Widget Settings** to configure the storefront gift widget.

### Content

The **Content** sub-tab controls customer-facing widget text and behavior.

Main fields:

- **Banner title**. Default: `Unlock a Free Gift`.
- **Eligible text**. Default: `Meet the offer requirements to unlock your free gift.` Observed with a quantity-based qualification rule, the default becomes `Add {{QUANTITY}} items to unlock your free gift.`
- **Translations**.
- **View available variables**.

**Banner title** and **Eligible text** support turning selected text into a link. Read [**Add a link to widget text**](/app/common-template-settings#add-a-link-to-widget-text) for information about this.

Gift display options:

- **Show gift image**.
- **Show currency symbol**.
- **Gift icon type**: **Emoji** or **Custom image URL**.
- **Emoji** input. Default: `🎁`.
- **Image URL** input for custom image URLs. The URL must start with `https://` or `http://`.
- **Icon Size** slider.

Advanced behavior settings:

- **Enable Icon Animation**.
- **Keep Dropdown Open**.
- **Only Show When Valid**.
- **Hide Once Claimed**.
- **Show Banner By Skipping Customer Conditions**.

### Styling

The **Styling** sub-tab controls the banner container.

Settings:

- **Background type**: **Solid color** or **Gradient**.
- **Background color**.
- **Border color**.
- **Border radius**.
- **Shadow style**: **None**, **Light**, **Medium**, **Heavy**, or **Glow Effect**.
- **Internal padding**.

### Typography

The **Typography** sub-tab controls text styling.

Sections:

- **Banner title typography**: title font size, title font weight, title color.
- **Subheading typography**: subheading font size, subheading font weight, subheading color.
- **Gift name typography**: gift name font size, gift name font weight, gift name color.

Font weight options shown were **Normal** and **Bold**.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

The widget preview says **Select Gift Items** until gift products are selected.

## Discount summary and rule size

The right-side **Discount Summary** changes as settings change.

It can show:

- How the customer applies the discount.
- Discount type, such as **Free gift** or **Discounted gift**.
- Gift quantity.
- Discount details.
- Combinations.
- Discount URL for code-triggered gifts.
- Coupon widget settings for code-triggered gifts.

AIOD also shows Shopify function rule size information, such as:

- **Rule Size: 1.28 KB / 10 KB**
- **NOTE: This limit is set by Shopify**

Mention rule size when a merchant asks why a gift offer cannot include unlimited logic.

## AI answering guidance

When an AI answers a merchant question about this template:

- Use **Free Gift with Purchase** as the template name. In the app it is **Simple free gifts** under the **Free gifts** card.
- Refer to the app page as **Free Gift**.
- Ask how the gift should be added: **Auto-added**, **Customer chooses**, **Trigger with discount code**, or **Code + customer chooses**.
- Ask which product or products should be used as gifts.
- Ask what qualifies the customer: quantity of items or purchase amount.
- Ask whether qualification should count all products, specific products, specific collections, or specific variants.
- Ask about customer eligibility, markets, purchase type, combinations, and schedule only when relevant.
- Mention the widget design tab when the merchant asks how the gift banner appears on the storefront.

---

Source: https://aiodapp.com/docs/templates/tiered-free-gifts

---
title: "Tiered free gifts"
description: "Template for unlocking a different free gift at each spend or quantity level, such as Spend $50 get Gift A and Spend $100 get Gift B, with a tiered gift widget."
---

Use **Tiered free gifts** when a merchant wants customers to unlock more or better gifts as they spend more or buy more.

The template card says: "Unlock more gifts as customers buy more. Spend $50 -> Gift A, Spend $100 -> Gift B)". Its tags are **Free Gift**, **Gift Widget**, and **Tiered Offer**.

## When to use this template

Use this template for:

- Spend `$50`, get Gift A. Spend `$100`, get Gift B.
- Buy 3 items, get one gift. Buy 6 items, get a bigger gift.
- Gift ladders, gift-with-purchase tiers, or "spend more, unlock more gifts" offers.
- Tiered gifts that customers choose from a gift widget, one set of choices per tier.
- Tiered gifts at a special discounted price instead of fully free.

Use another template when:

- One gift unlocks at one threshold. Use [Free Gift with Purchase](/templates/free-gift-with-purchase) (the **Simple free gifts** card).
- Tiers mix gifts with percentage, fixed-amount, or shipping rewards. Use [Tiered Discount](/templates/tiered-volume-discount), where each tier's **Customer gets** can be **Free gift**.
- The gift depends on buying specific X items. Use [Buy X Get Y (Gift)](/templates/buy-x-get-y-gift).

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

1. Click **Create** on the **Free gifts** card.
2. AIOD opens a **Select type** page with two inner templates:

| Inner template | Opens |
| --- | --- |
| **Simple free gifts** | The **Free Gift** form. Read [Free Gift with Purchase](/templates/free-gift-with-purchase). |
| **Tiered free gifts** | A form titled **Tiered free gifts**. This page documents it. |

3. Click **Tiered free gifts**.

**Tiered free gifts** uses the same editor as [Tiered Discount](/templates/tiered-volume-discount), restricted to gift rewards. A saved tiered free gift opens in the **Tiered free gifts** form again.

## Top-level controls

The form has three tabs:

| Tab | What it controls |
| --- | --- |
| **Offer** | What the tiers are based on, each tier's threshold and gifts, the gift adding method, reward behavior, discount method, title, and schedule. |
| **Advance Settings** | Customer eligibility, markets, offer-wide conditions, combinations, sales channel, offer pricing, and cart refresh and behavior. |
| **Gift Widget** | The storefront tiered gift widget. It is always on for this template. |

There is no **Progress Bar Widget** tab. The tiered progress bar used by **Tiered Discount** is not available on this template.

AIOD can show a theme-extension alert at the top of the form. The merchant must enable and save the **Latest Widget Manager** app embed in the theme editor for the gift widget to appear on the storefront.

### Status mode

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

The create form shows only **Active** and **Testing mode**. **Deactivate** becomes available after the discount is saved.

## Offer settings

### Tiers Based On?

This card sets what every tier's threshold measures. It reads as one sentence:

"Gift Tiers are calculated based on [**Quantity** or **Purchase amount**] of [**All products**, **Specific products**, **Specific collections**, or **Specific variants**] in the cart."

| First dropdown | Second dropdown | Tiers unlock on |
| --- | --- | --- |
| **Quantity** | **All products** | The total number of items in the cart. |
| **Quantity** | **Specific products**, **Specific collections**, or **Specific variants** | The quantity of the selected items in the cart. |
| **Purchase amount** | **All products** | The cart subtotal. |
| **Purchase amount** | **Specific products**, **Specific collections**, or **Specific variants** | The subtotal of the selected items in the cart. |

**Purchase amount** of **All products** is the default for a new tiered free gift.

Choosing a specific option reveals a picker below the sentence. Select at least one product, collection, or variant. Saving with an empty picker shows an error such as `Select at least one product.`

The selected items count toward the threshold in total, across all selected items. This template does not show the **Calculation method** card or **Exclude items (optional)** that **Tiered Discount** shows.

### Consider subtotal

When tiers are based on **Purchase amount**, AIOD shows **Consider subtotal**:

| Option | Behavior |
| --- | --- |
| **Before discount** | Tier progress uses item prices before any discounts are applied. |
| **After discount** | Tier progress uses item prices after all discounts are applied. Progress can change when other discounts are added to or removed from the cart. |

Choosing **After discount** forces **Stack all unlocked tiers** under **Reward behavior**.

### Set up your discount tiers

Each tier has:

| Field | Behavior |
| --- | --- |
| **Minimum Quantity** or **Minimum Subtotal** | The threshold for the tier. The label follows **Tiers Based On?**. |
| **Free gift quantity** | How many gifts the tier gives. Required. |
| **Select Gift items** | The gift variants for this tier. AIOD asks that gift variants are active, in stock, and priced above `0`. |
| **Discount Message (optional)** | Customer-facing message shown when the tier is met. Shown only when the discount method is **Automatic**. Variables are not allowed. |

Every tier is a gift tier. The **Customer gets** dropdown that **Tiered Discount** shows is hidden here.

Click **Add another tier** to add more tiers. Every tier after **Tier 1** has a delete button.

### Gift adding method

This card controls how each tier's gifts reach the cart. The options depend on **How should this discount be applied?** further down the **Offer** tab.

| Method | Discount method | Behavior |
| --- | --- | --- |
| **Auto-added** | **Automatic** | AIOD adds the tier's gifts automatically when the customer qualifies. |
| **Customer chooses** | **Automatic** | Customers pick their gifts from the gift widget. |
| **Trigger with discount code** | **Discount code** | Gifts are added only after the customer enters the code. |
| **Code + customer chooses** | **Discount code** | Customers enter the code first, then claim gifts from the widget. |

On a new discount, the two options of the other discount method are listed but disabled. Their tooltip tells the merchant to switch **How should this discount be applied?** first. After the discount is saved, only the current discount method's two options are shown.

With **Customer chooses** or **Code + customer chooses**:

- The customer claims gifts separately for each unlocked tier. Each tier's **Free gift quantity** limits how many gifts the customer can claim from that tier.
- In checkout, the AIOD gift claim lists the gifts under a heading per tier, such as **Tier 1**, when several tiers are unlocked.
- If the cart drops below a tier's threshold, AIOD removes the gift claimed for that tier.

<Note>
A tiered discount with a customer-choice gift method saved before October 22, 2026 needs to be opened and saved once. Until then, a gift claimed in checkout can be charged at full price.
</Note>

### Reward behavior

| Option | Behavior |
| --- | --- |
| **Only highest unlocked tier** | Only the highest reached tier's gifts apply. This is the default for a new tiered free gift. |
| **Stack all unlocked tiers** | Every unlocked tier's gifts apply. |

With **Only highest unlocked tier** and a customer-choice method, reaching a higher tier removes a gift the customer claimed from a lower tier. The gift stays when **Auto remove** is off or the gift widget's **Don't Remove Invalid Claimed Items** is checked.

When **Stack all unlocked tiers** is selected, AIOD also shows [**Move overlapping tier discounts to other eligible items**](/app/common-template-settings#move-overlapping-tier-discounts-to-other-eligible-items) and its nested option **Don't count discounted items toward later tiers**.

### Discount method

**How should this discount be applied?** offers **Automatic** and **Discount code**, as on [Tiered Discount](/templates/tiered-volume-discount#discount-method). The method cannot be changed after the discount is saved.

**Automatic** shows **Title**. **Discount code** shows the code field, code generation, bulk codes, and usage limits. Code-based gifts need the **AIOD Discount Input** widget. Read [Discount Code Input](/app/discount-widgets#discount-code-input).

### Schedule

Choose **Run continuously** or **Set a schedule**. **Set a schedule** shows **Start date**, **Start time**, **End date**, and **End time**.

## Advance Settings

The **Advance Settings** tab shows these cards, in this order:

- **Customer eligibility**: **All customers** or **Specific customers**.
- **Markets**: **All markets**, **All markets except specific selected countries**, or **Specific selected countries**.
- **Offer-Wide Conditions**: Extra conditions that must be met for the offer to apply.
- Combinations. Read the section below.
- **Sales channel**: **Online store**, **POS**, and **Tapcart mobile app** once Tapcart is on. Read [**Sales channel**](/app/common-template-settings#sales-channel).
- **Offer pricing**.
- **Cart refresh and behavior**.

This template hides **Quantity Limits**, **Purchase Type eligibility**, and **Discount exclusions**. Gift quantity is set per tier on the **Offer** tab.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

### Offer pricing

**Offer pricing** chooses whether the gifts are free or discounted. It works as on [Free Gift with Purchase](/templates/free-gift-with-purchase#offer-pricing):

- **Offer as free gift**. This is the default.
- **Offer at a discounted price**. Reveals **Discount percentage** (`%`). AIOD fills `50` when the merchant switches to it.
- **Exclude AIOD-attributed items from condition calculation**.

One price covers every gift tier. Changing it updates all tiers, and a new tier takes the same price.

### Cart refresh and behavior

**Cart refresh and behavior** works as on [Free Gift with Purchase](/templates/free-gift-with-purchase#cart-refresh-and-behavior):

| Setting | Behavior |
| --- | --- |
| **Auto remove** | Removes gifts when the customer is no longer eligible. On by default for a new tiered free gift. |
| **Allow gift opt-out** | Lets customers remove an added gift from the cart. Shown only for **Auto-added** and **Trigger with discount code**. |

With **Allow gift opt-out**, a gift the customer removed stays removed while any tier of the discount is still unlocked. It is not added back just because the customer has not reached a higher tier.

The card also shows the **Instant cart refresh** notice. If the side cart drawer does not refresh when a gift is added or removed, contact support.

## Gift Widget

The **Gift Widget** tab configures the storefront tiered gift widget. On this template the widget is always enabled, and there is no enable checkbox.

The widget shows one panel per tier. On the storefront it opens on the highest tier the cart has reached, and on **Tier 1** before the first threshold is reached. With a customer-choice method, customers claim gifts from this widget.

The widget's placement and preview appear in the right-hand column of this tab. A new widget is placed on the cart page.

## Save

Click **Save** after configuring the tiers, gift adding method, advanced settings, gift widget, status, and schedule.

## AI answering guidance

When an AI answers a merchant question about this template:

- Use **Tiered free gifts** as the template name. It is an inner template under the **Free gifts** card.
- Ask whether tiers are based on **Quantity** or **Purchase amount**, and of which items.
- Ask for each tier's threshold, gift variants, and **Free gift quantity**.
- Ask whether gifts are auto-added or chosen by the customer, and whether a discount code is required.
- Ask whether only the highest tier's gifts apply or all unlocked tiers' gifts.
- Use [Tiered Discount](/templates/tiered-volume-discount) instead when any tier needs a non-gift reward.

---

Source: https://aiodapp.com/docs/templates/buy-x-get-y-discount

---
title: "Buy X Get Y (Discount)"
description: "Template for discounting Y items when qualifying X items are purchased in AIOD."
---

Use **Buy X Get Y (Discount)** when a merchant wants customers to buy qualifying X items and receive a discount on Y items.

This template is inside the **Buy X Get Y (BOGO)** parent template. In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**, click **Create** on **Buy X Get Y (BOGO)**, then choose **Buy X Get Y (Discount)** on the **Select type** page.

The parent card says: "Buy one, get one or mix-and-match offers." The parent example shown in AIOD is "Buy any 3 shirts at $99."

The inner template card says: "Discount Y when X items are purchased."

## When to use this template

Use this template for:

- Buy X, get Y at a percentage discount.
- Buy X, get Y at a fixed discount.
- Buy X, get Y at a fixed final price.
- Mix-and-match offers where qualifying X items and discounted Y items are different.
- BOGO discounts that need storefront widget messaging.

Use another BOGO template for fixed combined-price bundles or gift offers.

## Related BOGO templates

The **Buy X Get Y (BOGO)** parent opens three inner templates:

| Inner template | Use it for |
| --- | --- |
| **Buy X Get Y (Discount)** | Discount selected Y items after the cart contains qualifying X items. |
| **Buy X @ Fixed Price (Discount)** | Sell a required quantity of selected items for one combined fixed price. |
| **Buy X Get Y (Gift)** | Add or offer gift variants after qualifying X items are in the cart. |

## Form layout

The **Buy X Get Y (Discount)** form has two tabs:

- **Offer**
- **Widget Settings**

It also includes **Use Custom Rule Builder**, and a top-level status dropdown.

### 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 a **Title** field and **Keep same as identifier**.

For discount codes, use the code fields when customers should enter a code at checkout.

## Select items (BX)

The **Select items (BX)** section defines what the customer must buy.

Observed default controls:

- **WHEN...** item type selector. The default shown is **Product**.
- Operator dropdown with **matches any of**, **matches all of**, and **does not match any of**.
- **Select products** picker.
- Empty state: **No products selected**.
- **How many items in X to unlock the Y discount?** quantity input. The default shown is `1`.
- **Add 'BX' item** to add another qualifying X group.

Use this section to model the "buy" side of the offer.

## Select items (GY)

The **Select items (GY)** section defines which items receive the discount.

AIOD describes this section as: "Choose items on which the customer will get the discount."

Target options:

| Target option |
| --- |
| **Apply Discount to Specific Collection** |
| **Apply Discount to Specific Product** |
| **Apply Discount to Specific Variant** |
| **Apply Discount to Specific Variant whose Metafield** |

The default observed target was **Apply Discount to Specific Collection**, with **Select collections** and empty state **No collections selected**.

Other controls:

- **Number of items in Y to be discounted**.
- Helper text: customers must add this specific quantity of Y items to the cart for the discount to apply.
- **Discount Type**: **Percentage**, **Fixed Discount**, or **Fixed Final Price**.
- **Discount Value**.

Use this section to model the "get" side of the offer.

## Customer eligibility rules

Click **Add Rule** in **Customer Eligibility Rules (Optional)** to add customer eligibility rules for the offer.

Use this when the discount should only apply to selected customer groups or customer conditions.

## Sales channel

## 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**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

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

## Advanced settings

Click **Show** in **Advanced Settings (Optional)** to reveal **Discount Rules & Limits**.

Available controls:

| Setting | Behavior |
| --- | --- |
| **Maximum Discount Amount** | Limits the total discount amount. |
| **Apply discount on the LEAST expensive items** | Applies the Y discount to the least expensive eligible items. |
| **Combo Discount** | Treats the selected X and Y groups as a combo-style discount. |
| **Multiply based on condition** | Scales the offer. AIOD gives this example: buy 2 get 1, buy 4 get 2. This was checked by default in the observed form. |
| **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**](/app/common-template-settings#apply-this-discount-on-the-compare-at-price) for information about this. |
| **Purchase Type Eligibility** | Choose **One-time purchase**, **Subscription**, or **Both**. **Both** was selected by default. |
| **Limit the number of subscription cycles the discount will apply to** | Limits recurring subscription discount cycles. |

## Show discounted price crossout

## Widget Settings tab

Use **Widget Settings** (renamed from **Widget**) to configure the storefront BXGY widget for this discount.

Default text fields:

| Field | Observed default | Behavior |
| --- | --- | --- |
| **Title** | `Add {{remaining_quantity}} more item & save {{discount_value}}` | Leave empty to hide the title on the widget. |
| **Unlocked title** | `Offer unlocked - save {{discount_value}}` | Shown after the customer qualifies for the offer. |
| **Sub text** | `Buy from {{condition_title}}` | Leave empty to hide the sub text on the widget. |
| **Button CTA: Add text** | `Add` | Button label before the item is added. |
| **Button CTA: Adding text** | `Adding` | Button label while the item is being added. |

**Title**, **Unlocked title**, and **Sub text** support turning selected text into a link. Read [**Add a link to widget text**](/app/common-template-settings#add-a-link-to-widget-text) for information about this.

Click **View Available Variables** to see variables that can be inserted into widget text.

Click **Translations** at the top of the widget text card to translate the widget text into the store's other languages. The dialog lists **Title**, **Unlocked title** (when the form shows it), **Sub text**, **Button CTA: Add text**, and **Button CTA: Adding text**. Read [Widget translations](/app/discount-widgets#widget-translations) for information about this.

Style controls include:

- **Product layout**: **Horizontal** or **Vertical**.
- **Products visible at a time** slider. The observed value was `3`.
- **Show icon in CTA button**.
- **CTA button icon**.
- **Show currency prefix**.
- **Do not show discounted price**.
- **Show sold out products**.
- Background, border, title, and button color inputs.
- **Border radius** slider.
- Text-size sliders for title, subtitle, and button text.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

The preview area says to select BX and GY items in the **Offer** tab to see the preview UI.

---

Source: https://aiodapp.com/docs/templates/buy-x-fixed-price-discount

---
title: "Buy X @ Fixed Price (Discount)"
description: "Template for selling a required quantity of selected items for one combined fixed price in AIOD."
---

Use **Buy X @ Fixed Price (Discount)** when a merchant wants a required quantity of selected items to sell for one combined fixed final price.

This template is inside the **Buy X Get Y (BOGO)** parent template. In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**, click **Create** on **Buy X Get Y (BOGO)**, then choose **Buy X @ Fixed Price (Discount)** on the **Select type** page.

The parent card says: "Buy one, get one or mix-and-match offers." The parent example shown in AIOD is "Buy any 3 shirts at $99."

The inner template card says: "Set a fixed bundle price for selected items eg: Buy 3 at $99."

## When to use this template

Use this template for:

- Buy any 3 selected items for `$99`.
- Buy 2 selected products for one fixed combined price.
- Mix-and-match a required quantity from a selected collection.
- Fixed-price bundles where the customer can choose eligible items.
- One item from each of several collections (or products or variants) for one fixed total, such as 1 item from each of 4 collections for `999`. Use **Combo Discount**.

Use another BOGO template when the offer discounts separate Y items or adds gift items.

## Related BOGO templates

The **Buy X Get Y (BOGO)** parent opens three inner templates:

## Top-level controls

The form includes:

- **Use Custom Rule Builder**.
- **Discount ID (For your reference)** with placeholder `eg: GET 20% OFF`.
- **Automatic discount** and **Discount code** methods.
- **Title** and **Keep same as identifier** for automatic discounts.

### Status mode

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

## Select items

The **Select items** section defines which items qualify for the fixed combined price.

AIOD describes this section as: "Choose items on which the customer will get the fixed price."

Target options:

The default observed target was **Apply Discount to Specific Collection**, with **Select collections** and empty state **No collections selected**.

Other controls:

- **Number of items in the combo**.
- Helper text: customers must add this specific quantity of items to the cart for the discount to apply.
- **Discount Type** is locked to **Fixed Final Price (Combined)**.
- Helper text: final price of all above selected items combined.
- **Discount Value**.

## Customer eligibility rules

Click **Add Rule** in **Customer Eligibility Rules (Optional)** to add customer eligibility rules.

Use this when the fixed-price bundle should only apply to selected customer groups or customer conditions.

## Sales channel

## 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."

## Combinations

The **Combinations** section (shown inline, not only a 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.
- **View the discounts it can combine with** link.

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

## Advanced settings

Click **Show** in **Advanced Settings (Optional)** to reveal **Discount Rules & Limits**.

Available controls:

| Setting | Behavior |
| --- | --- |
| **Maximum Discount Amount** | Limits the total discount amount. |
| **Apply discount on the LEAST expensive items** | Applies the fixed-price calculation to the least expensive eligible items. |
| **Combo Discount** | Requires one complete set: the combo quantity from **each** selected collection, product, or variant. Unchecked by default. See [Combo Discount](#combo-discount). |
| **Multiply based on condition** | Scales the offer. AIOD gives this example: buy 2 get 1, buy 4 get 2. This was checked by default in the observed form. |
| **Apply zero-value discount to the condition items** | Disabled until the discount has a product, collection, variant, or variant-metafield condition. |

### Combo Discount

Use **Combo Discount** for "1 item from each of these collections for one fixed total" offers. Without it, the customer can mix any items from the selected collections, products, or variants to reach **Number of items in the combo**.

With **Combo Discount** checked, each set needs one item from every selected collection, product, or variant. Set it up like this:

1. In **Select items**, choose **Apply Discount to Specific Collection**, **Apply Discount to Specific Product**, or **Apply Discount to Specific Variant**, and select every collection, product, or variant in the set.
2. Set **Number of items in the combo** to `1`.
3. Set **Discount Value** to the set total divided by the number of selected collections, products, or variants. Each item in a complete set is priced at this value.
4. Check **Combo Discount** in **Advanced Settings (Optional)**.

Example: 1 item from each of 4 collections for `999`. Select the 4 collections, set **Number of items in the combo** to `1`, set **Discount Value** to `249.75` (`999 ÷ 4`), and check **Combo Discount**.

| Cart | Customer pays |
| --- | --- |
| 1 item from each of the 4 collections | `999` |
| 2 items from each collection | `1998` (two sets) |
| 2 items from the first collection and 1 from each of the others | `999` for the set, plus the full price of the extra item |
| Items from only 3 of the 4 collections | Full price. The set is incomplete. |
| 4 items from one collection | Full price. The set is incomplete. |

**Combo Discount** is disabled when:

- The target is **Apply Discount to Specific Variant whose Metafield**.
- **Number of items in the combo** is more than `1`.

When it is disabled, an info icon next to the label shows a tooltip.

Keep the selected collections' products separate. A product that belongs to two of the selected collections can let an incomplete set get the combo price.

Below the **Discount Rules & Limits** card, **Advanced Settings (Optional)** also 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**](/app/common-template-settings#apply-this-discount-on-the-compare-at-price) for information about this. |
| **Purchase Type Eligibility** | Dropdown: choose **One-time purchase**, **Subscription**, or **Both**. **Both** was selected by default. Helper text: "Discount will only be applied to the selected purchase type items." |
| **Limit the number of subscription cycles the discount will apply to** | Checkbox that limits recurring subscription discount cycles. |

## Show discounted price crossout

## Widget tab

The form has two tabs: **Offer** and **Widget**. Use **Next** and **Previous** at the bottom of the form to move between them. The settings above are on the **Offer** tab.

Use the **Widget** tab to configure the storefront fixed-price bundle widget. The widget shows the bundle offer (for example, "Buy 2 for just $75"), the eligible items with a **Shop** link to each one, and a progress bar that counts eligible items in the customer's cart toward the combo quantity.

### When the widget is available

The widget uses the collections, products, or variants selected in **Select items** on the **Offer** tab. The merchant does not select the eligible items again.

The widget is only available when the offer targets **Apply Discount to Specific Collection**, **Apply Discount to Specific Product**, or **Apply Discount to Specific Variant**, and at least one item is selected. Otherwise the **Widget** tab shows **Select items to create a widget**: "Select specific collections, products, or variants in the Offer tab. Variant metafield offers do not have a widget. Saving a variant metafield offer removes its existing widget."

### What customers see

- A heading with an optional icon. Default: `Buy {{quantity}} for just {{price}}`. `{{quantity}}` is the **Number of items in the combo** value from the **Offer** tab.
- An optional subheading, hidden by default.
- The eligible items. A single item is listed directly. Two or more items collapse under a link such as `View 3 eligible collections`, which opens the list below it.
- A **Shop** link on each item that opens the collection or product page. A variant link opens the product with that variant selected.
- A progress bar such as `1 of 2 items added` with `1 missing`, which changes to `Bundle complete` when the cart has enough eligible items. Free gifts and items the rule does not cover are not counted.
- For a **Discount code** offer only, the discount code with a **Copy** button that changes to `Copied!`. Automatic offers show no code.

### Widget content

The **Widget content** card has **Translations** and **View Available Variables** at the top. Read [Widget translations](/app/discount-widgets#widget-translations) for the **Translations** dialog.

Controls and defaults:

| Control | Default or behavior |
| --- | --- |
| **Show subheading** | Off. Turn it on to show **Subheading**. |
| **Title** | `Buy {{quantity}} for just {{price}}` |
| **Subheading** | Shown only when **Show subheading** is on. Automatic offers default to `Add {{quantity}} products from {{selection_scope}} to get this offer`. Discount code offers default to `Add {{quantity}} products from {{selection_scope}} and apply code at checkout`. |
| **Shop button** | `Shop` |
| **Progress text** | `{{added_quantity}} of {{quantity}} items added` |
| **Remaining items text** | `{{remaining_quantity}} missing` |
| **Completed bundle text** | `Bundle complete` |
| **Eligible items dropdown text** | `View {{eligible_count}} eligible collections` when every selected item is a collection, otherwise `View {{eligible_count}} eligible products`. |
| **Copy button** | `Copy`. Discount code offers only. |
| **Copied confirmation** | `Copied!`. Discount code offers only. |
| **Collection name: …** or **Product name: …** | One field per selected item. Defaults to the item's Shopify title. Edit it to change the name shown in the widget. |

**View Available Variables** lists:

| Variable | Meaning |
| --- | --- |
| `{{eligible_count}}` | Number of eligible collections or products in the dropdown. |
| `{{quantity}}` | Number of items in the combo. |
| `{{added_quantity}}` | Eligible items already in the cart, up to the combo quantity. Free gifts are excluded. |
| `{{remaining_quantity}}` | Eligible items still needed to complete the combo. |
| `{{price}}` | Formatted fixed price for the combo. |
| `{{selection_scope}}` | This collection, these collections, this product, or these products. |
| `{{code}}` | The discount code for a code-based offer. |

### Style

Controls and defaults:

| Control | Default or behavior |
| --- | --- |
| **Border style** | **Dotted**. The other option is **Plain**. |
| **Show item images** | On. |
| **Show icon** | On. When on, a selector next to it picks the widget icon. |
| **Keep separate colors** | Off. When off, one **Widget color** (default `#EC4080`) sets the border, icon, button, discount code border, and eligible items link. When on, AIOD shows separate **Border color**, **Icon color**, **Button color**, **Discount code border color** (discount code offers only), **Eligible items link color**, **Background color**, **Title color**, **Sub text color**, and **Item name color**. |
| **Button text color** | `#FFFFFF`. Always editable. |
| **Border radius** | `16` px. |
| **Widget padding** | `12` px. |
| **Icon size** | `25` px. |
| **Title size** | `16` px. |
| **Sub title size** | `12` px. Also sizes the progress text and the eligible items link, so it stays available when the subheading is hidden. |
| **Item image size** | `38` px. |
| **Item name size** | `14` px. |
| **Button text size** | `14` px. |
| **Button padding** | `8` px. |

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

This widget has its own location toggles in the right-hand column of the **Widget** tab:

| Location | Behavior |
| --- | --- |
| **Side Cart Drawer/ Cart Page** | Shows the widget in the side cart drawer or on the cart page. Off by default. |
| **All product pages** | Shows the widget on every product page. Off by default. Turning it on turns off the eligible-pages toggle. |
| **Product Pages of Eligible Collections** | Shown when the offer targets collections. Shows the widget on product pages of the collections selected in **Select items**. On by default for a new discount. |
| **Eligible Product Pages** | Shown when the offer targets products or variants. Shows the widget on the pages of the selected products, or of the products the selected variants belong to. On by default for a new discount. |

The eligible-pages toggles have no product or collection picker. AIOD takes the pages from **Select items** each time the discount is saved, so changing the selected items also changes where the widget appears. Saving an existing discount does not turn on a location the merchant had turned off.

### Widget preview

The **Widget preview** card in the right-hand column shows the widget with the current content and style. Use the **Preview eligible items in cart** slider to see the progress bar at different cart quantities. The preview does not read a real cart.

## Save

Click **Save** after configuring the selected items, combo quantity, fixed combined price, eligibility, channels, combinations, dates, advanced limits, and **Show Discounted Price Crossout** when applicable.

---

Source: https://aiodapp.com/docs/templates/buy-x-get-y-gift

---
title: "Buy X Get Y (Gift)"
description: "Template for adding or offering gift variants when qualifying X items are purchased in AIOD."
---

Use **Buy X Get Y (Gift)** when a merchant wants buying qualifying X items to unlock gift variants.

This template is inside the **Buy X Get Y (BOGO)** parent template. In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**, click **Create** on **Buy X Get Y (BOGO)**, then choose **Buy X Get Y (Gift)** on the **Select type** page.

The parent card says: "Buy one, get one or mix-and-match offers." The parent example shown in AIOD is "Buy any 3 shirts at $99."

The inner template card says: "Add a gift item when X items are purchased."

## When to use this template

Use this template for:

- Buy selected products and get a free gift.
- Buy a required quantity and unlock a discounted gift.
- Let customers claim a gift from a widget after they qualify.
- Auto-add a gift to the cart after the cart qualifies.

Use another BOGO template when the offer discounts Y items or sells a selected quantity at one fixed combined price.

## Related BOGO templates

The **Buy X Get Y (BOGO)** parent opens three inner templates:

## Form now shared with Free Gift with Purchase

Selecting **Buy X Get Y (Gift)** on the BOGO **Select type** page no longer opens a distinct form. It opens the same **Free Gift** wizard used by [Free Gift with Purchase](/templates/free-gift-with-purchase) — the same **Offer / Advance Settings / Widget Settings** tabs, the same **Discount Summary** card, and the same **Switch to legacy template** link.

Read [Free Gift with Purchase](/templates/free-gift-with-purchase) for the current field reference. To reproduce a "buy X get Y gift" offer in the new wizard:

- On the **Offer** tab, under **Free gift settings → Customer buys**, choose **Quantity of items** (or **Purchase amount**) and target the qualifying X items there.
- Choose the gift variants in **Select gift products**.
- Use **Gift adding method** (Auto-added / Customer chooses / Trigger with discount code / Code + customer chooses) for how the gift reaches the cart.

The sections below (**Theme extension requirement** through **Gift messages settings**) describe the **legacy** form, still reachable via **Switch to legacy template**.

## Theme extension requirement

AIOD can show this warning: **Required: Theme Extension Should Be Enabled**.

The warning says **Activate theme extension** automatically enables the **Latest Widget Manager** extension. The merchant must click **Save** in the theme editor after activation.

Use this section when a merchant asks why the BOGO gift widget or gift flow is not appearing on the storefront.

### Status mode

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

## Discount method

The observed default **Discount ID** placeholder was `eg: WELCOME GIFT`.

The **Discount Method** section supports:

- **Automatic discount**
- **Discount code**

The default **Automatic discount** title was `Free Gift`.

Choose **Discount code** when customers should enter a code to unlock the gift.

## When to add the gift

The **When to add the gift** section defines qualifying X items.

Observed default controls:

- **WHEN...** item type selector. The default shown is **Product**.
- 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`.
- **Calculate subtotal before discount**.
- **AND condition**.
- **OR condition**.

Click **Advanced Settings** inside this section to reveal more qualification controls.

Advanced qualification controls:

| Setting | Behavior |
| --- | --- |
| **Quantity scope** | Choose how qualifying quantities are counted. |
| **Across all selected items** | Counts total quantity across all selected items. This was selected by default. |
| **Same variant** | Requires one variant to individually meet the quantity requirement. |
| **Same product** | Allows variants of the same product to combine toward the quantity requirement. |
| **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 X items. `0` means no minimum subtotal. |
| **Maximum Cart Subtotal of above selected items in cart** | Sets a maximum subtotal for qualifying X items. `0` means no maximum limit. |
| **Calculate subtotal before discount** | Calculates subtotal from item prices before discounts are applied. |

### Exclude items from conditions

At the bottom of the **When to add the gift** card, **Exclude items (optional)** hides selected products, variants, or collections while the qualification rules are checked. The gift items themselves are unaffected.

Read [**Exclude items from conditions**](/app/common-template-settings#exclude-items-from-conditions) for information about this.

## Select gift items

The **Select Gift Items** section chooses which variants can be added as gifts.

AIOD notes that variants should be active, in stock, and have a price greater than `0`.

Controls:

- **Select variants**.
- Empty state: **No variants selected**.
- **Quantity of each gift to be added**. The default shown is `1`.
- **Multiply Gift Quantity based on "When" rules**.

AIOD gives this example for multiplying gift quantity: buy 2 get 1 gift, buy 4 get 2 gifts, and so on.

## Gift pricing

Choose how gift items are priced.

| Option | Behavior |
| --- | --- |
| **Offer as free gift** | Adds or offers the selected gift variants for free. This was selected by default. |
| **Offer at a discounted price** | Reveals **Discount Percentage %**. The observed default was `50`. |

Use **Offer at a discounted price** when the gift should be discounted instead of free.

## How to add the gift

The **How to add the gift** section controls whether AIOD adds the gift automatically or asks the customer to claim it.

| Method | Behavior |
| --- | --- |
| **Automatic** | Automatically adds the gift to the cart when the rules are met. This was selected by default. |
| **Manual** | Lets customers pick or claim the gift from the widget. |

When **Automatic** is selected, AIOD shows **Allow the user to remove the gift**.

AIOD explains that if customers remove the gift manually, the gift cannot be added automatically again. Customers must use the widget claim button to add the gift again.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

## Schedule

The **Schedule** section (renamed from **Active Dates**) controls when the gift offer starts and ends: **Run continuously** (default) or **Set a schedule**, which reveals start and end date or time fields. The current **Free Gift** wizard uses the same **Schedule** card.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

## Widget settings

The **Widget Settings** section includes:

- **Use this feature Only As Widget**.
- Helper text: the discount will not be created, only the widget will be created.
- **Gift Widget Preview**.
- **Customize Banner**.

If no gift item is selected, the preview says to select gift items to preview the gift banner.

## Gift messages settings

The **Gift Messages Settings** section configures popup messages shown when gifts are added to or removed from the cart.

Click **Go to Settings** to edit those messages.

---

Source: https://aiodapp.com/docs/templates/tiered-volume-discount

---
title: "Tiered Discount"
description: "Template for creating quantity-based or cart-value-based tiered discounts in AIOD."
---

Use **Tiered Discount** when a merchant wants to reward customers as they buy more items or spend more money.

The template card says: "Offer bigger discounts as customers buy more or reach higher cart values." The example shown in AIOD is "Buy 3+, Save 15%."

## When to use this template

Use this template for:

- Buy 2 items, get 5% off.
- Buy 3 or more items, get a larger percentage off.
- Spend `$100`, get free shipping.
- Spend more to unlock a free gift.
- Volume discounts where each tier has its own reward.
- Progress-bar offers that show customers how close they are to the next tier.

Use another template when the discount is a single item-level discount, a classic BOGO offer, a simple free gift with purchase, or a shipping-only discount without volume tiers.

When every tier rewards only gifts, such as "Spend `$50` get Gift A, spend `$100` get Gift B", use [Tiered free gifts](/templates/tiered-free-gifts). It is the same editor limited to gift tiers, with offer pricing and cart behavior settings for the gifts.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

Click **Create** on the **Tiered Discount** card. AIOD opens a form titled **Tiered Discount**.

## Top-level controls

The form is split into these tabs:

| Tab | What it controls |
| --- | --- |
| **Offer** | Discount targets, tier requirements, tier rewards, reward behavior, discount method, title, and schedule. |
| **Advance Settings** | Customer eligibility, markets, quantity limits, extra conditions, purchase type, exclusions, combinations, and sales channel. |
| **Progress Bar Widget** | Progress widget behavior, tier messages, colors, display locations, and preview. This tab was previously called **Widget Settings**. |
| **Gift Widget** | The storefront tiered gift widget. Shown only when at least one tier uses the **Free gift** reward. Read [Gift Widget](#gift-widget). |

AIOD shows a **Discount Summary** panel while the merchant configures the offer. The summary includes how customers apply the discount, discount type, target, tier details, discount combinations, and Shopify rule size.

AIOD can show a theme-extension alert at the top of the form. The alert says **Required: Theme Extension Should Be Enabled** and includes **Activate theme extension**. The merchant must save the **Latest Widget Manager** extension in the theme editor when using the storefront widget.

### Status mode

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

## Offer settings

Use the **Offer** tab to define what qualifies for the discount and what the customer receives.

### Where should this discount apply?

This section controls the products that can qualify for tier rewards.

Options:

- **All products**
- **Specific products**
- **Specific collections**
- **Specific variants**

**All products** was selected by default in the observed form.

#### Exclude items from conditions

At the bottom of the **Where should this discount apply?** card, **Exclude items (optional)** hides selected products, variants, or collections while tier requirements are checked. The exclusion applies to every tier.

Read [**Exclude items from conditions**](/app/common-template-settings#exclude-items-from-conditions) for information about this.

### Minimum requirement

This section controls how customers unlock each tier.

For **All products**, AIOD shows these requirement options:

| Requirement | Behavior |
| --- | --- |
| **Cart quantity** | Rewards unlock based on the total number of items in the customer's cart. |
| **Cart subtotal** | Rewards unlock based on the cart subtotal. |

For **Specific products**, **Specific collections**, and **Specific variants**, AIOD shows these requirement options:

| Requirement | Behavior |
| --- | --- |
| **Cart quantity** | Rewards unlock based on the total number of items in the customer's cart. |
| **Item quantity** | Rewards unlock based on the quantity of selected products, collection items, or variants in the customer's cart. |
| **Item subtotal** | Rewards unlock based on the subtotal of selected products, collection items, or variants in the customer's cart. |
| **Cart subtotal** | Rewards unlock based on the cart subtotal. |

When **Cart quantity** or **Item quantity** is selected, each tier uses **Minimum Quantity**.

When **Cart subtotal** or **Item subtotal** is selected, each tier uses **Minimum Subtotal**.

### Calculation method

The **Calculation method** card appears after the merchant selects a specific item target and an item-based requirement.

It appears for these combinations:

| Target | Requirement | Shows **Calculation method** |
| --- | --- | --- |
| **All products** | **Cart quantity** or **Cart subtotal** | No |
| **Specific products** | **Item quantity** or **Item subtotal** | Yes |
| **Specific products** | **Cart quantity** or **Cart subtotal** | No |
| **Specific collections** | **Item quantity** or **Item subtotal** | Yes |
| **Specific collections** | **Cart quantity** or **Cart subtotal** | No |
| **Specific variants** | **Item quantity** or **Item subtotal** | Yes |
| **Specific variants** | **Cart quantity** or **Cart subtotal** | No |

The card says: "Choose whether the condition applies across all selected items or individually."

Options:

| Option | Behavior |
| --- | --- |
| **Any selected items** | The customer can meet the tier requirement using any of the selected products, collection items, or variants. This was selected by default in the observed form. |
| **Each selected item** | Each selected product, collection item, or variant must meet the tier requirement individually. |

The examples change based on the requirement:

| Requirement | **Any selected items** example | **Each selected item** example |
| --- | --- | --- |
| **Item quantity** | `Eg: Buy 2 from any of the above selected items` | `Eg: Buy 2 of each of the above selected items` |
| **Item subtotal** | `Eg: Spend $100 from any of the above selected items` | `Eg: Spend $100 on each of the above selected items` |

The same card also shows **Selected item scope** with this helper text: "Choose how selected items are counted when checking the requirement."

Available **Selected item scope** options depend on the selected target:

| Target | Scope options |
| --- | --- |
| **Specific products** | **Across all selected items**, **Same variant**, **Same product** |
| **Specific collections** | **Across all selected items**, **Same variant**, **Same product**, **Same collection** |
| **Specific variants** | **Across all selected items**, **Same variant** |

**Across all selected items** was selected by default in the observed form.

For **Any selected items**, **Across all selected items** means the total quantity or subtotal across any selected items in the cart must meet the requirement.

For **Each selected item**, **Across all selected items** means the quantity or subtotal for each selected item must meet the requirement.

### Set up your discount tiers

Each tier defines a minimum requirement and a reward.

The default observed tier was:

| Field | Default |
| --- | --- |
| **Minimum Quantity** | `2` |
| **Customer gets** | **Percentage off** |
| **Reward %** | `5` |
| **Apply discount on** | **Product Discount (applies at line item, show in cart & checkout)** |

Click **Add another tier** to add more tier levels.

### Reward types

The **Customer gets** dropdown controls the reward for a tier.

| Reward type | Fields shown |
| --- | --- |
| **Percentage off** | **Reward %** and **Apply discount on**. |
| **Fixed amount off** | **Reward $** and **Apply discount on**. |
| **Free gift** | **Free gift quantity** and **Select Gift items**. |
| **Shipping off** | **Reward %** and **Shipping Discount Applies to**. |

For percentage and fixed-amount rewards, **Apply discount on** has these options:

- **Product Discount (applies at line item, show in cart & checkout)**
- **Order Discount (applies at order level, show in checkout)**

For free gifts, AIOD tells merchants to ensure variants are active, in stock, and have a price greater than `0`. The gift selector uses **Select variants** and shows **No variants selected** until variants are chosen.

For shipping rewards, **Shipping Discount Applies to** has these options:

- **To all shipping methods**
- **To specific shipping methods**
- **To all shipping methods excluding these**

### Gift adding method

The **Gift adding method** card appears below the tiers when at least one tier's **Customer gets** is **Free gift**. It applies to every gift tier.

| Method | Discount method | Behavior |
| --- | --- | --- |
| **Auto-added** | **Automatic** | The gift is automatically added to the cart when the customer qualifies. |
| **Customer chooses** | **Automatic** | Customers can select their preferred gift from the options you provide. |
| **Trigger with discount code** | **Discount code** | This gift is added only when customers enter a specific discount code. |
| **Code + customer chooses** | **Discount code** | Customers enter the discount code first, then claim their preferred gift from the widget. |

The discount method is chosen under **How should this discount be applied?**. On a new discount, the other method's two options are listed but disabled, with a tooltip that says to select that method under **How should this discount be applied?** first. After the discount is saved, only the current method's two options are shown.

Choosing **Customer chooses** or **Code + customer chooses** turns on the gift widget on the **Gift Widget** tab, because customers claim their gifts from it.

With a customer-choice method, customers claim gifts separately for each unlocked tier, up to that tier's **Free gift quantity**. In checkout, the AIOD gift claim lists gifts under a heading per tier, such as **Tier 1**, when several tiers are unlocked. A claimed gift is removed when its tier is no longer unlocked.

### Discount message

Percentage and fixed-amount tiers can include **Discount Message (optional)**.

The placeholder is `Eg: Buy 2 get 10% off`.

AIOD explains that this message is visible to customers when tier conditions are met.

### Reward behavior

This section controls whether AIOD applies one tier or multiple tiers.

| Option | Behavior |
| --- | --- |
| **Only highest unlocked tier** | Applies only the last or maximum reached tier discount. This was selected by default. |
| **Stack all unlocked tiers** | Applies all unlocked tier discounts. |

When tiers are based on a subtotal and **Consider subtotal** is set to **After discount**, **Only highest unlocked tier** is unavailable and **Stack all unlocked tiers** is required.

When **Stack all unlocked tiers** is selected, the card also shows:

- **Move overlapping tier discounts to other eligible items**.
- **Don't count discounted items toward later tiers**, nested under the option above and shown only while it is checked.

Both are unchecked by default. Read [**Move overlapping tier discounts to other eligible items**](/app/common-template-settings#move-overlapping-tier-discounts-to-other-eligible-items) for information about this.

### Discount method

The **How should this discount be applied?** section controls whether the discount is automatic or code-based.

#### Automatic

Choose **Automatic** when the discount should apply automatically in the cart and at checkout.

AIOD shows **Title** with placeholder `Enter discount title`. The title is shown to customers in cart and checkout.

#### Discount code

Choose **Discount code** when customers must enter a code at checkout.

Settings shown in this mode:

- **Discount code** input with placeholder `Enter discount code`.
- **Copy discount code**.
- **Generate random code**.
- **Add bulk discount codes**.
- **Maximum Discount Code Uses**.

Usage limit settings:

- **Limit number of times this discount can be used in total**.
- **Limit to one use per customer**.

### Schedule

The **Schedule** section controls when the discount runs.

Options:

- **Run continuously**
- **Set a schedule**

When **Set a schedule** is selected, AIOD shows:

- **Start date**
- **Start time**
- **End date**
- **End time**

## Advanced settings

Use **Advance Settings** to control eligibility, stacking, and channel behavior.

### Customer eligibility

Choose who can use the discount.

Options:

- **All customers**
- **Specific customers**

**All customers** was selected by default in the observed form.

### Markets

Choose where the discount is available.

Options:

- **All markets**
- **All markets except specific selected countries**
- **Specific selected countries**

**All markets** was selected by default in the observed form.

### Quantity limits

The **Quantity Limits** card sets a separate discounted-item limit for each tier: "Choose a separate discounted-item limit for each supported tier." Each tier has its own row:

| Control | Behavior |
| --- | --- |
| **Limit quantity of discounted items** | Off by default. When checked, shows **Maximum discounted items** (a whole number, at least `1`, starting at `1`). Its help text says which items the limit applies to: "Applies to the "most" expensive eligible items in this tier.", or "least" when the next option is checked. |
| **Apply discount to the least expensive items** | Disabled until **Limit quantity of discounted items** is checked ("Turn on the quantity limit to use this option."). Unchecking the limit also clears this option. |

Free gift and shipping tiers show **Not available**. For a gift tier, set the gift quantity on the **Offer** tab instead. Shipping tiers don't support quantity limits.

The card shows "Add a tier to configure quantity limits." until the offer has a tier.

### Extra conditions

The **Offer-Wide Conditions** card holds extra requirements that must be met before AIOD applies any tier: "Add conditions that must be met for this offer to be applicable." Click **Add condition** to add one. Customer conditions aren't offered here; use **Customer eligibility** instead.

Use this when tier rewards should also depend on cart, customer, product, shipping, or other conditions.

### Purchase type eligibility

Choose which purchase types qualify.

Options:

- **Both**
- **Subscription**
- **One time purchase**

**Both** was selected by default in the observed form.

Use **Limit number of subscription cycles** to limit recurring subscription discount cycles. Leave the field blank to allow all subscription cycles.

### Discount exclusions

Use **Exclude already discounted items from discount (whose compare at price > selling price)** to ignore items that are already discounted based on compare-at price.

Enable **Apply this discount on the compare at price** to keep already discounted items eligible but give them only the part of the discount their markdown has not covered. Read [**Apply this discount on the compare at price**](/app/common-template-settings#apply-this-discount-on-the-compare-at-price) for information about this.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

### Sales channel

## Show discounted price crossout

## Progress Bar Widget

Use the **Progress Bar Widget** tab (previously **Widget Settings**) to control the storefront progress widget and customer-facing tier messages.

### Widget behavior

Options:

- **Show progress + apply discount**
- **Apply discount only (no progress bar)**
- **Show progress only (no discount applied)**

**Show progress + apply discount** was selected by default in the observed form. AIOD explains that a progress bar appears and the discount applies automatically when customers reach eligible tiers.

### Tier messaging

Each tier has its own customer-facing widget content.

Default observed fields for **Tier 1**:

| Field | Default text |
| --- | --- |
| **Tier title** | `Buy {{min_val}} Get {{disc_val}}% OFF` |
| **Success Message** | `{{disc_val}}% Discount Unlocked` |
| **Remaining Message** | `Buy {{remain_val}} more to unlock {{disc_val}}% off!` |

Use **Translations** to manage translated tier copy.

Use **View Available Variables** to inspect supported message variables.

### Display options

Available display options:

- **Show remaining message**
- **Show success message**
- **Show currency symbol**

All three were checked by default in the observed form.

### Widget colors

The widget color editor includes theme presets and manual color fields.

Default observed color fields:

| Field | Default |
| --- | --- |
| **Active bar** | `#00BE00` |
| **Empty bar** | `#E0E3F0` |
| **Goal title** | `#303030` |
| **Remaining message** | `#303030` |
| **Success background color** | `#C3FFC3` |
| **Success message** | `#008000` |

Other visual controls:

- **Icon Size**
- **Add border/background color**

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

### Widget preview

The **Widget Preview** section shows the current success message and tier title. The observed preview showed:

- `5% Discount Unlocked`
- `Buy 2 Get 5% OFF`

Use **Reset Progress** to reset the preview progress state.

## Gift Widget

The **Gift Widget** tab appears when at least one tier's **Customer gets** is **Free gift**. It configures a storefront gift widget that lists each tier's gifts, shows the customer's progress toward each gift tier, and, when customers choose their gift, lets them claim it with a **Claim** button.

On the storefront, the widget opens on the highest gift tier the cart has reached, and moves to the new highest tier as the cart changes. Before the cart reaches any threshold, it shows the first tier.

If no tier uses **Free gift**, the tab is hidden.

### Tiered gift widget

| Control | Default or behavior |
| --- | --- |
| **Enable tiered gift widget** | Off by default. The content, style, placement, and preview controls are dimmed until it is on. |

When the gift adding method on the **Offer** tab is a customer-choice method (**Customer chooses** or **Code + customer chooses**), customers claim their gift from this widget. Selecting that method turns the widget on, and the checkbox is locked with the helper text "Required while customers choose their gift. Change the gift adding method on the Offer tab to turn it off."

### Content and style

The rest of the tab uses the same **Content**, **Styling**, and **Typography** controls as the **Free Gift with Purchase** widget. Read [Free Gift with Purchase: Widget Settings tab](/templates/free-gift-with-purchase#widget-settings-tab) for the controls.

The tiered gift widget starts with different default text:

| Field | Default |
| --- | --- |
| **Banner title** | `Unlock a Free Gift` |
| **Eligible text** | `Shop more to unlock your free gift.` |
| **Claim button text** | `Claim` |
| **Gift claimed text** | `Claimed` |

**Claim button text** and **Gift claimed text** apply only to customer-choice methods. Use **Translations** to translate the widget text. Read [Widget translations](/app/discount-widgets#widget-translations) for information about this.

On the storefront, a tier's **Claim** button is available only after the cart reaches that tier and the tier's other conditions are met. Sold-out gift variants are not listed.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

The gift widget has its own locations, separate from the **Progress Bar Widget** locations. **Side Cart Drawer/ Cart Page** is on by default.

### Gift widget preview

The right-hand column shows a preview of the tiered gift widget with the tier thresholds and each tier's gifts.

## Save

Click **Save** after configuring the offer, advanced settings, **Show Discounted Price Crossout** when applicable, widget design, status, and schedule.

---

Source: https://aiodapp.com/docs/templates/volume-discount-bundle

---
title: "Volume Discount / Bundle"
description: "Template for selectable volume bundle offers with quantity tiers, optional discounts, shipping rewards, free gifts, and a card or table storefront widget."
---

Use **Volume Discount / Bundle** when a merchant wants customers to choose from quantity-based bundle offers on the storefront.

The template card says: "Create selectable bundle offers with optional gifts and shipping rewards." The example shown in AIOD is "Buy 3 items, unlock a bundle offer and free gifts".

## When to use this template

Use this template for:

- Selectable quantity bundles, such as buy `2`, `3`, or `5` items and choose the matching offer.
- Quantity breaks that can apply a percentage discount, fixed discount, shipping reward, or no price discount.
- Bundle tiers that also unlock a free gift.
- Bundle cards with badges such as **Most Popular**.
- A card-style or table-style bundle widget on the storefront.

Use [Tiered Discount](/templates/tiered-volume-discount) when the promotion is primarily a tiered discount or progress bar based on cart quantity, item quantity, or subtotal. Use [Combined Multi Discounts](/templates/combined-multi-discounts) when the merchant needs independent product, order, gift, or shipping discount blocks under one discount. Use [Buy X @ Fixed Price (Discount)](/templates/buy-x-fixed-price-discount) when a fixed quantity must have one combined fixed price without a selectable bundle widget.

## Entry points

The template and widget cards open the same configuration form.

### Discount Templates

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

Click **Create** on **Volume Discount / Bundle**. AIOD opens a form titled **Volume Bundle**.

### Discount Widgets

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Widgets**.

Click **Create New Widget**, then click **Volume Bundle Widget** under **Ready-Made Widgets**. This shortcut opens the same **Volume Bundle** form. It does not have separate widget-only configuration.

## Top-level controls

The **Volume Bundle** form has three tabs:

| Tab | What it controls |
| --- | --- |
| **Offer** | Target items, bundle tiers, rewards, gifts, title, and schedule. |
| **Advance settings** | Customer eligibility, markets, purchase types, exclusions, combinations, and sales channels. |
| **Widget Settings** | Card or table layout, widget copy, pricing display, colors, typography, container spacing, custom CSS, and where the widget appears (visibility). |

The right side of the form shows a live widget preview and a **Rule Size** indicator. The observed form showed a Shopify rule limit of `10 KB` and the note **This limit is set by Shopify**.

Use **Previous** and **Next** to move between tabs. The final **Widget Settings** tab has **Save**.

### Status mode

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

While creating a new **Volume Bundle**, the observed dropdown showed **Active** and **Testing mode**.

## Offer tab

Use **Offer** to choose the qualifying products, create bundle tiers, configure rewards, and schedule the discount.

### Applies to

The **Applies to:** section chooses which items participate in the volume discount.

| Target | Conditional control |
| --- | --- |
| **All products** | No picker. This was selected by default in the observed form. |
| **Specific products** | Shows **Browse** and an item-selection area. |
| **Specific collections** | Shows **Browse** and an item-selection area. |
| **Specific variants** | Shows **Browse** and an item-selection area. |

Before a selection is made, the picker says: **No items selected. Click "Browse" to choose.**

### Set up your volume discount offers

Each **Offer** block represents one selectable quantity tier.

Controls in every offer:

- **Quantity** numeric input.
- **Customer gets** dropdown.
- A reward field that depends on **Customer gets**.
- **Show badge**.
- **Add free gift**.
- **Remove offer** for removing the tier.

Click **Add offer** to add another tier.

The observed draft contained two example offers:

| Offer | Observed values |
| --- | --- |
| **Offer 1** | **Quantity** `1`, **Shipping off**, **Reward %** `100`, badge off, and no free gift. |
| **Offer 2** | **Quantity** `2`, **Percentage off**, **Reward %** `10`, badge on with **Badge text** `Most Popular`, and a free-gift block with **Gift quantity** `1`. |

Treat these as observed draft values, not required settings.

### Customer gets

The **Customer gets** dropdown has these reward types:

| Reward type | Fields shown |
| --- | --- |
| **Percentage off** | **Reward** with a `%` suffix. |
| **Fixed amount off** | **Reward** with a `$` prefix in the observed store currency. |
| **Shipping off** | **Reward** with a `%` suffix. Use `100` for a full shipping discount. |
| **No discount** | No numeric reward input. Use this when the tier only needs another benefit, such as a gift. |

### Badge

Enable **Show badge** to reveal **Badge text**.

The observed badge placeholder and value were `Most Popular`.

### Free gift

Click **Add free gift** inside an offer to add a gift reward to that tier.

The free-gift block includes:

- **Search products**.
- **Browse**.
- An item-selection area that initially says no items are selected.
- **Gift quantity** numeric input. The observed value was `1`.
- **Remove**.

An offer can combine its selected **Customer gets** reward with the free gift. Choose **No discount** when the gift should be the only reward.

### Reward behavior

Choose how AIOD handles multiple unlocked offers.

| Option | Behavior |
| --- | --- |
| **Only highest unlocked tier** | Only the last or maximum reached tier discount is applied. This was selected by default. |
| **Stack all unlocked tiers** | All unlocked tier discounts are applied. |

### Title

The **Title** section has a text input with placeholder `Enter discount title`.

AIOD says this title is shown to customers in cart and checkout.

### Schedule

Choose when the bundle runs.

| Option | Behavior |
| --- | --- |
| **Run continuously** | Runs without an end schedule. This was selected by default. |
| **Set a schedule** | Reveals **Start date**, **Start time**, **End date**, and **End time**. |

In the observed draft, the scheduled mode prefilled the current date and time as the start and the following day at the same time as the end.

## Advance settings tab

Use **Advance settings** for eligibility, markets, purchase types, exclusions, combinations, and channels.

### Customer eligibility

Options:

- **All customers**. This was selected by default.
- **Specific customers**.

Selecting **Specific customers** reveals a condition builder.

| Condition | Operators or fields |
| --- | --- |
| **Customer tags** | **matches any of**, **matches all of**, or **does not match any of**. The input placeholder is `eg- VIP, Gold`. |
| **Customer past orders** | **equals or greater than**, **equals or less than**, or **equals**. The number placeholder is `eg- 2`. |
| **Customer email** | **is any of** or **is not any of**. The input placeholder is `eg- test@example.com`; use **Add** to add an email. |
| **Customer should be logged in** | Requires the customer to be logged in. |

For tag conditions, AIOD also shows **Apply discount in cart/website without validation & later validate customer eligibility on checkout**.

Click **Add condition** to add another customer rule.

### Markets

Options:

- **All markets**. This was selected by default.
- **All markets except specific selected countries**.
- **Specific selected countries**.

The two selected-country modes reveal **Countries** and **Browse**.

### Purchase Type eligibility

Options:

- **Both**. This was selected by default.
- **Subscription**.
- **One time purchase**.

When **Both** or **Subscription** is selected, AIOD shows **Limit number of subscription cycles**. Leave it blank to allow all subscription cycles. The field is hidden for **One time purchase**.

### Discount exclusions

Enable **Exclude already discounted items from discount (whose compare at price > selling price)** to ignore items that already have a lower selling price than their compare-at price.

This checkbox was off by default in the observed form.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

### Sales channel

## Widget Settings tab

Use **Widget Settings** to configure the customer-facing bundle selector. Start with **Widget layout**.

### Widget layout

Options:

- **Card view**. Selected by default in the observed form.
- **Table view**.

The selected layout changes the available content, color, and typography controls.

### Card view

#### Widget content

Controls:

- **Show title icon**. Off by default.
- **Header title**. Default: `Choose Your Offer`.
- **Subtitle**. Supports adding a link to selected text. Read [**Add a link to widget text**](/app/common-template-settings#add-a-link-to-widget-text) for information about this.
- Per-offer buttons such as **Offer 1** and **Offer 2**.
- **Offer text** for the selected offer. Default: `Buy {{qty}} item`.
- **Reward label** for the selected offer. Default: `{{reward_label}}`.
- **View Available Variables**.
- **Gift section title**. Default: `Free gift with your order`.
- **Locked gift text**. Default: `Locked`.
- **CTA button text**. Default: `Add to cart`.

**Translations** appears next to the **Widget content** heading. It translates **Header title**, **Subtitle**, each offer's **Offer text** and **Reward label**, **Gift section title**, **Locked gift text**, and **CTA button text**. In **Table view**, the dialog shows each offer's **Quantity text** instead of **Offer text** and **Reward label**, and no **CTA button text**. Offer translations follow the offer's quantity: removing or reordering offers keeps each translation on its own offer, and an offer whose quantity changes shows its original text until it is translated again. Read [Widget translations](/app/discount-widgets#widget-translations) for information about this.

The **Available Volume Bundle Variables** dialog lists:

| Variable | Meaning |
| --- | --- |
| `{{qty}}` | The quantity required for the offer tier. |
| `{{reward_label}}` | The reward summary, such as `Save 10%` or `Free delivery`. |

#### Pricing and variants

**Pricing** controls:

- **Show prices per item**. Off by default.
- **Hide compare-at price**. Off by default.
- **Show currency prefix**. On by default.

**Variants** includes **Let customers choose different variants for each item**, which was on by default.

**Default selection** chooses which offer is selected when the widget loads. **Offer 2** was selected in the observed two-offer draft.

#### Color theme

AIOD shows five color-theme preset buttons followed by manual controls.

**Offer cards**:

| Control | Observed default |
| --- | --- |
| **Default background** | `#FFFEF7` |
| **Default border** | `#E6E8B2` |
| **Selected background** | `#FFFFFF` |
| **Selected border** | `#B4BC05` |
| **Corner radius** | `8px` |
| **Card padding** | `8px` |

**Badge & reward pill**:

| Control | Observed default |
| --- | --- |
| **Badge background** | `#B4BC05` |
| **Badge text** | `#FFFFFF` |
| **Reward background** | `#EAEDA9` |
| **Reward text** | `#303030` |

**Button**:

| Control | Observed default |
| --- | --- |
| **Background** | `#303030` |
| **Border** | `#303030` |
| **Text color** | `#FFFFFF` |
| **Text size** | `11px` |

**Gift section**:

| Control | Observed default |
| --- | --- |
| **Locked background** | `#FFFEF7` |
| **Locked border** | `#E6E8B2` |
| **Unlocked border** | `#B4BC05` |
| **Icon color** | `#272727` |
| **Show locked icon** | On. A **Locked icon** picker is visible. |

#### Typography

The following size and color controls were visible:

| Text | Observed size | Observed color |
| --- | --- | --- |
| **Header title** | `13px` | `#303030` |
| **Subtitle** | `13px` | `#303030` |
| **Offer text** | `13px` | `#303030` |
| **Gift title** | `11px` | `#303030` |
| **Locked text** | `11px` | `#303030` |

### Table view

Table view replaces the card-specific controls with table-specific settings.

#### Widget content and pricing

Controls:

- **Show title icon**.
- **Header title**. Default: `Choose Your Offer`.
- **Subtitle**.
- Per-offer buttons such as **Offer 1** and **Offer 2**.
- **Quantity text**. Default: `Buy {{qty}} item`.
- **View Available Variables**.
- **Gift section title**. Default: `Free gift with your order`.
- **Locked gift text**. Default: `Locked`.
- **Show prices per item**.
- **Hide compare-at price**.
- **Show currency prefix**. On by default.

The card-view **Reward label**, **CTA button text**, **Variants**, and **Default selection** controls were not visible in the observed table view.

#### Table colors and spacing

| Section | Control | Observed default |
| --- | --- | --- |
| **Table** | **Table border** | `#E6E8B2` |
| **Table** | **Corner radius** | `8px` |
| **Header row** | **Background** | `#F3F3F3` |
| **Header row** | **Cell padding** | `6px` |
| **Data rows** | **Background** | `#FFFFFF` |
| **Data rows** | **Cell padding** | `8px` |
| **Gift section** | **Locked background** | `#FFFEF7` |
| **Gift section** | **Locked border** | `#E6E8B2` |
| **Gift section** | **Unlocked border** | `#B4BC05` |
| **Gift section** | **Icon color** | `#272727` |
| **Gift section** | **Show locked icon** | On. |

Table typography includes:

| Text | Observed size | Observed color |
| --- | --- | --- |
| **Header title** | `13px` | `#303030` |
| **Subtitle** | `13px` | `#303030` |
| **Header row text** | `13px` | `#303030` |
| **Data row text** | `13px` | `#303030` |

### Widget container

Both layouts show the same outer-container controls:

| Control | Observed default |
| --- | --- |
| **Background color** | `#FFFFFF` |
| **Show border around widget** | Off. |
| **Corner radius** | `8px` |
| **Container padding** | `12px` |
| **Vertical margin** | `8px` |

AIOD says **Vertical margin** adds equal spacing above and below the widget.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for the shared placement controls. Volume Bundle differs from other widgets:

- It shows only three locations: **All product pages**, **Specific product pages**, and **Product Pages of Specific Collections**.
- It has no **Side Cart Drawer/ Cart Page** location, and it does not appear on collection pages.
- **All product pages** is on by default.
- **Specific product pages** reveals **Select products** and **Product Pages of Specific Collections** reveals **Select collections**. Each picker shows **No products selected** or **No collections selected** until a selection is made. Both can be on together.
- In the observed form, turning on **Specific product pages** switched **All product pages** off.

The card sits at the top of the right-hand column of the **Widget Settings** tab, above the live widget preview.

### Custom CSS

Use **Custom CSS** for additional widget styling.

The placeholder is:

```css
.aiod-volume-widget {
  /* Add your custom styles here */
}
```

## Save

Click **Save** on the **Widget Settings** tab after reviewing the preview. If Shopify admin shows an **Unsaved changes** bar, its **Save** and **Discard** buttons apply to the current draft changes.

---

Source: https://aiodapp.com/docs/templates/shipping-discount

---
title: "Shipping Discount"
description: "Template for creating free shipping or discounted shipping offers in AIOD."
---

Use **Shipping Discount** when a merchant wants to discount shipping rates.

This template is mainly for shipping-only offers. It can apply to all shipping methods, specific shipping methods, or all shipping methods except selected ones.

The template card says: "Offer free shipping or discounted shipping when conditions are met." The example shown in AIOD is "Free shipping for orders above $100."

## When to use this template

Use this template for:

- Free shipping on all shipping methods.
- A percentage shipping discount.
- A fixed amount shipping discount.
- A fixed final shipping price.
- Free shipping when the cart meets a subtotal, quantity, weight, product, customer, or destination condition.
- A shipping discount that only applies to selected shipping methods.
- A shipping discount that excludes selected shipping methods.

Use another template when the merchant also needs product discounts, gifts, order discounts, BOGO logic, or multiple discount actions under one code.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

Click **Create** on the **Shipping Discount** card. AIOD opens a form titled **Shipping Discount**.

## Top-level controls

The form includes:

- **Custom Rule Builder**.
- **Discount ID (For your reference)** with placeholder `eg: FREE SHIPPING`.
- **Automatic discount** and **Discount code** methods.
- **When to apply discount**.
- **Apply discount to**.
- **Discount Type**.
- **Discount Value**.
- **Customer Segment**.
- **This discount can be combined with**.
- **Schedule**.

AIOD also shows Shopify rule size, such as `Rule Size: 1.10 KB / 10 KB`.

### Status mode

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

## Discount method

The **Discount Method** section has two modes.

| Method | Use it for |
| --- | --- |
| **Automatic discount** | Apply the shipping discount automatically in cart or checkout. |
| **Discount code** | Require customers to enter a code at checkout. |

Automatic discounts show **Title** and **Keep same as identifier**.

Discount-code mode shows:

## When to apply discount

The **When to apply discount** section controls the condition for the shipping discount.

The default condition is **Always**.

The condition picker contains these categories:

| Category | Conditions |
| --- | --- |
| General | **Always** |
| Cart/Order Details | **Cart Subtotal Amount**, **Order Weight**, **Cart Quantity** |
| Product Details | **Product**, **Collection**, **Variant**, **Variant Whose Metafield**, **Purchase Type** |
| Shipping | **Country**, **City**, **Zipcode**, **Method** |
| Customer Details | **Customer Tags**, **Number of past orders**, **Customer Should Be Logged In**, **Customer Email** |

Some conditions reveal extra fields. For example, **Cart Quantity** shows an operator and quantity input.

Condition groups can include **AND condition** and **OR condition** controls.

## Apply discount to

The **Apply discount to** section controls which shipping methods receive the discount.

Options:

- **To all shipping methods**
- **To specific shipping methods**
- **To all shipping methods excluding these**

**To all shipping methods** was selected by default in the observed form.

When **To specific shipping methods** or **To all shipping methods excluding these** is selected, AIOD shows:

- A match dropdown with **Is** and **Contains**.
- A textbox labeled **Enter shipping methods one in each line**.

Use **To specific shipping methods** when only named shipping methods should receive the discount.

Use **To all shipping methods excluding these** when most shipping methods should receive the discount, except named methods.

## Discount value

The **Discount Type** dropdown controls how AIOD discounts shipping.

Options:

- **Percentage**
- **Fixed Discount**
- **Fixed Final Price**

The observed default was **Percentage**.

Enter the amount in **Discount Value**.

## Customer segment

The **Customer Segment** section restricts the shipping discount to selected Shopify customer segments.

AIOD describes this section as: "This discount will be only applicable for customers in the selected segments."

Use **Customer segments** to choose eligible Shopify customer segments.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

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

## Save

Click **Save** after configuring the discount method, conditions, shipping methods, discount value, customer segment, combinations, and active dates.

---

Source: https://aiodapp.com/docs/templates/custom-rule-builder

---
title: "Custom Rule Builder"
description: "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."

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

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

## 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**](/app/common-template-settings#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 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 | **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. |

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

### Condition advanced settings

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

| Setting | Behavior |
| --- | --- |
| **Quantity scope** | Controls how selected item quantities are counted. |
| **Across all selected items** | Counts total quantity across all selected items. This was selected by default. |
| **Same variant** | Requires one variant to individually meet the quantity requirement. |
| **Same product** | Allows variants of the same product to combine toward the quantity requirement. |
| **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. |

### 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**](/app/common-template-settings#exclude-items-from-conditions) for information about this.

## 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** |
| **Apply Discount Excluding Collection** |
| **Apply Discount Excluding Product** |
| **Apply Discount Excluding Variant** |

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.

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

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

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

## Sales channel

## 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."

## 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**](/app/common-template-settings#this-discount-can-be-combined-with) for the shared combination behavior, and [**Tags this discount stacks with**](/app/common-template-settings#tags-this-discount-stacks-with) for the stacking-tags field.

### Discount tags

A **Discount tags** card appears in the right-hand column of the form. Read [**Discount tags**](/app/common-template-settings#discount-tags) for information about this.

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

## 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:

**Purchase Type Eligibility** and the subscription-cycle limit moved out of this section into their own [**Purchase type eligibility**](#purchase-type-eligibility) section.

## Show discounted price crossout

---

Source: https://aiodapp.com/docs/templates/reject-discount-codes

---
title: "Reject Discount Codes"
description: "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."

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

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

## 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**.

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

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

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

### 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. {codes} 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.

## 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**.

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

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

---

Source: https://aiodapp.com/docs/templates/upsell

---
title: "Upsell"
description: "Template for recommending related products with an optional percentage or fixed discount and a configurable storefront Upsell widget."
---

Use **Upsell** when a merchant wants to recommend additional products based on products in the customer's cart.

The template card says: "Recommend related products with an optional automatic discount widget." The example shown in AIOD is "Add socks when a customer buys shoes".

## When to use this template

Use this template for:

- Cross-sell or upsell recommendations triggered by cart items.
- Related-product recommendations on product pages, the cart page, or side cart drawer.
- Recommendations with no discount.
- Recommendations with an optional percentage or fixed discount.
- Horizontal or vertical storefront product layouts.

Use [Volume Discount / Bundle](/templates/volume-discount-bundle) when customers should choose a quantity-based bundle tier. Use [Buy X Get Y (Discount)](/templates/buy-x-get-y-discount) when the promotion must enforce buy-X-get-Y qualification and reward quantities. Use [Custom Rule Builder](/templates/custom-rule-builder) when the merchant needs conditions or discount logic that the Upsell form does not provide.

## Entry points

The template and widget cards open the same configuration form.

### Discount Templates

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

Click **Create** on **Upsell**. AIOD opens a form titled **Upsell**.

### Discount Widgets

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Widgets**.

Click **Create New Widget**, then click **Upsell** under **Ready-Made Widgets**. This shortcut opens the same **Upsell** form. It does not have separate widget-only configuration.

## Top-level controls

The **Upsell** form has two tabs:

| Tab | What it controls |
| --- | --- |
| **Offer** | Trigger items, recommended products, optional discount, offer title, visibility rules, and widget locations. |
| **Widget Settings** | Widget copy, product layout, display options, colors, sizes, and preview. |

The form also shows:

- **Need more control?** and **Use Custom Rule Builder**. Use this button to switch to the more flexible rule builder when the Upsell template is not sufficient.
- A **Widget Preview** panel.
- A **Rule Size** indicator. The observed form showed Shopify's `10 KB` limit and **This limit is set by Shopify**.
- **Previous** and **Next** navigation. The final **Widget Settings** tab has **Save**.

### Status mode

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

While creating a new **Upsell**, the observed status was **Active**. Newer draft forms can show only **Active** and **Testing mode**.

## Offer tab

Use **Offer** to choose when the widget appears, which products it recommends, and whether those products receive a discount.

### Trigger

The **Trigger** section chooses which cart products cause the Upsell widget to appear.

| Trigger target | Conditional control |
| --- | --- |
| **All products** | No picker. This was selected by default in the observed form. |
| **Specific products** | Shows **Browse** and an item-selection area. |
| **Specific collections** | Shows **Browse** and an item-selection area. |
| **Specific variants** | Shows **Browse** and an item-selection area. |

Before a selection is made, the picker says: **No items selected. Click "Browse" to choose.**

AIOD states: **The offer will be displayed when the trigger product is in the cart.**

### Offer products

The **Offer products** section chooses which products the widget recommends.

Options:

- **Specific products**. Selected by default in the observed form.
- **Specific collections**.
- **Specific variants**.

Each mode uses an item picker. The observed **Specific products** mode showed **Search products**, **Browse**, and **No items selected. Click "Browse" to choose.**

There is no **All products** option in the observed **Offer products** section.

### Discount

Use **Discount Type** to choose whether the recommended products receive a discount.

| Discount Type | Conditional field |
| --- | --- |
| **No discount** | Hides **Discount Value**. |
| **Percentage** | Shows **Discount Value** with a `%` suffix. This was selected by default in the observed form. |
| **Fixed Discount** | Shows a numeric **Discount Value** input with placeholder `Enter value`. |

The observed discount value was blank. Enter a value before saving a discounted Upsell offer.

### Offer Title

The **Offer Title** input has placeholder `eg: SUMMER UPSELL` and a `64`-character counter.

AIOD says the title is shown to customers in cart and checkout when the discount is applied.

### Offer visibility

Use these checkboxes to suppress recommendations that are no longer useful:

- **Hide products that are already in cart**. Off by default.
- **Hide products that match trigger product**. Off by default.

### Where should the widget appear?

Read [**Where should the widget appear?**](/app/common-template-settings#where-should-the-widget-appear) for information about this.

## Widget Settings tab

Use **Widget Settings** to configure the storefront widget copy and appearance.

### Widget content

Controls and observed defaults:

| Control | Observed default or behavior |
| --- | --- |
| **Title** | `You may also like`. Helper text: "Leave empty to hide the title on the widget." If you clear it, the widget shows no title. |
| **Sub text** | Blank. Helper text: "Leave empty to hide the sub text on the widget." Supports adding a link to selected text. |
| **Button CTA: Add text** | `Add` |
| **Button CTA: Adding text** | `Adding` |
| **Button CTA: Added text** | `Added` |

Use the three CTA fields to define the button copy before, during, and after the product is added.

Click **Translations** at the top of the widget content card to translate **Title**, **Sub text**, and the three **Button CTA** fields into the store's other languages. Read [Widget translations](/app/discount-widgets#widget-translations) for information about this.

**Title** and **Sub text** support turning selected text into a link. Read [**Add a link to widget text**](/app/common-template-settings#add-a-link-to-widget-text) for information about this.

### Style

#### Product layout

Options:

| Layout | Behavior |
| --- | --- |
| **Horizontal** | Products are arranged side by side inside each horizontal carousel slide. |
| **Vertical** | Products stack vertically inside each horizontal carousel slide. This was selected by default. |

The layout section includes:

- **Products visible at a time** slider. Observed value: `2`. AIOD says this also controls the admin preview.
- **Products visible at a time on smaller storefront screens** slider. Observed value: `1`. AIOD says this does not change the admin preview.

#### Product and price display

Options and observed defaults:

| Control | Observed default |
| --- | --- |
| **Show icon in title** | On. A title icon picker is visible. This checkbox replaces the old **Icon** field in widget content. |
| **Show icon in CTA button** | On. A **CTA button icon** picker is visible. |
| **Show currency prefix** | On. |
| **Do not show discounted price** | Off. |
| **Show sold out products** | On. |
| **Hide variant info** | Off. |

#### Colors and border

| Control | Observed default |
| --- | --- |
| **Background color** | `#FFFFFF` |
| **Border color** | `#D9D9D9` |
| **Title color** | `#303030` |
| **Sub text color** | `#6D7175` |
| **Link color** | `#005BD3` |
| **Product name color** | `#303030` |
| **Button color** | `#2A2A2A` |
| **Button text color** | `#FFFFFF` |
| **Border radius** | `16px` |

#### Text sizes

| Text | Observed size |
| --- | --- |
| **Icon Size** | `20px` |
| **Title** | `15px` |
| **Sub title** | `12px` |
| **Product name** | `12px` |
| **Pricing text** | `14px` |
| **Button text** | `11px` |

### Widget placement and preview

The placement configured on the **Offer** tab also applies here.

Before offer products are selected, **Widget Preview** says: **Select offer products in the Offer tab to see the preview UI.**

## Save

Click **Save** on the **Widget Settings** tab after selecting offer products and reviewing the preview. If Shopify admin shows an **Unsaved changes** bar, its **Save** and **Discard** buttons apply to the current draft changes.

---

Source: https://aiodapp.com/docs/help/create-free-gift-minimum-spend

---
title: "Create a free gift with a minimum spend"
description: "Configure and test an AIOD Free Gift with Purchase offer that unlocks after the cart reaches a minimum amount."
---

Use a minimum-spend free gift when you want the gift to become available only after the cart subtotal reaches a set amount.

## Create the offer

1. Open **AIOD – All-in-One Discount** in Shopify admin.
2. Go to **Discount Templates**.
3. Click **Create** on the **Free gifts** card, then select **Simple free gifts**.

4. Choose the minimum purchase amount the customer must reach.
5. Select the product or variant that will be used as the gift.
6. Choose how the gift is claimed:
   - **Automatic**: the offer runs when its conditions are met.
   - **Discount code**: the customer must enter the configured code.
7. Review the active dates, usage limits, customer eligibility, and combination settings.
8. Save the discount.

If the storefront gift widget is part of the offer, make sure AIOD's **Latest Widget Manager** app embed is enabled in the live theme.

## Test before announcing the promotion

Open the storefront in a private or incognito window and test both sides of the threshold:

1. Add products whose subtotal is below the minimum. The gift should not be available.
2. Increase the subtotal to the minimum. The gift should become available or be added, depending on the configuration.
3. Reduce the subtotal again. Confirm the gift and messaging update correctly.
4. Continue to checkout and confirm the expected discount is applied.

## If the gift does not appear

Check that the discount is active, the selected gift variant is available, the cart meets every condition, and the correct discount method is being tested. Also confirm that the theme app embed is enabled and saved on the published theme.

See [Why Your AIOD Discount Is Saved but Not Applying](/help/discount-saved-not-applying) for a complete checklist.

---

Source: https://aiodapp.com/docs/help/automatic-discounts-vs-discount-codes

---
title: "Automatic discounts vs discount codes"
description: "Choose whether an AIOD promotion should apply automatically or require the customer to enter a discount code."
---

AIOD can run an offer automatically or require a discount code. The best choice depends on how customers should discover and claim the promotion.

## Automatic discounts

An automatic discount runs when the cart satisfies the rule's conditions. The customer does not enter a code.

Choose this method when:

- every eligible shopper should receive the offer;
- the promotion should feel effortless;
- a free gift should appear or become available as soon as the cart qualifies; or
- the campaign is always-on or broadly advertised.

Automatic discounts are convenient, but you should review Shopify's discount-combination settings if other promotions may be active at the same time.

## Discount codes

A code-based discount runs only after the customer enters the configured code. AIOD can also provide a shareable discount URL that applies a code when opened.

Choose this method when:

- the offer is intended for a particular campaign or audience;
- you want to distribute a memorable code through email, social media, or an influencer;
- customers should opt into the promotion; or
- campaign attribution depends on a specific code.

## Important setup detail

Choose the discount method while creating the rule. Once a saved rule has an ID, AIOD treats its discount method as fixed. If the wrong method was selected, create a new rule with the correct method instead of trying to convert the existing rule.

## Quick decision guide

| Goal | Recommended method |
|---|---|
| Apply the offer to everyone who qualifies | Automatic |
| Require a customer to claim a promotion | Discount code |
| Auto-add or reveal a gift at a threshold | Automatic |
| Share the promotion with a campaign link or code | Discount code |

Always test the chosen flow in a private or incognito storefront window before sending traffic to the campaign.

---

Source: https://aiodapp.com/docs/help/limit-automatic-discount-once-per-customer

---
title: "Limit an automatic discount to once per customer"
description: "Use an AIOD customer-tag condition and Shopify Flow to make one automatic promotion available only once to each customer."
---

Shopify automatic discounts do not include a native per-customer redemption limit. In AIOD Discount & Gift, use a customer tag and Shopify Flow to make one automatic promotion available only once to each customer.

This setup has two parts:

1. AIOD applies the discount only when the customer does not have a promotion-specific tag.
2. Shopify Flow adds that tag after the customer places an order that used the promotion.

Once Shopify Flow adds the tag, AIOD no longer considers that customer eligible for the same promotion.

## Example: one-time 15% automatic discount

For a one-time 15% welcome promotion, give the AIOD discount a unique, stable title such as `AIOD Welcome 15`. Create a customer tag such as:

`AIOD_USED_WELCOME15`

Your eligibility logic is:

`Customer does not have AIOD_USED_WELCOME15` → apply 15% discount

The customer does not enter a discount code. AIOD applies the automatic discount when the customer is eligible. After the customer places a qualifying order, Shopify Flow matches the recorded discount title and adds `AIOD_USED_WELCOME15`. On the customer's next order, the AIOD condition fails and the discount does not apply.

## Step 1: Create the automatic discount in AIOD

1. In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.
2. Choose the template that fits the promotion. Use **Advanced Rules** > **Custom Rule Builder** when you need a customer-tag condition. See [Custom Rule Builder](/templates/custom-rule-builder) for its available conditions.
3. Configure the discount as an automatic discount, such as 15% off.
4. In the customer condition or eligibility area, add a **Customer Tags** condition.
5. Choose the negative tag operator, such as **does not match any of**.
6. Enter `AIOD_USED_WELCOME15`.
7. Save and activate the discount.

Replace `AIOD_USED_WELCOME15` with a unique tag for your promotion.

## Step 2: Create the Shopify Flow workflow

In Shopify Flow, create a workflow with this structure:

`Order created` → check whether the discount title is `AIOD Welcome 15` → add `AIOD_USED_WELCOME15` customer tag

1. Choose **Order created** as the trigger.
2. Add a condition that checks the order's recorded **discount title** for your promotion identifier. For this example, use `AIOD Welcome 15`.
3. Add the **Add customer tags** action.
4. Add the tag `AIOD_USED_WELCOME15`.
5. Turn on the workflow.

This workflow does not require a code-based discount. The discount title is how Shopify Flow recognizes that the automatic promotion was applied. Use a title that uniquely identifies the promotion. Do not use a generic title that could match another active discount.

For example, if the promotion is "Buy a printer, get Spectrajet Paper," give the automatic AIOD discount a stable, unique title such as `AIOD Printer + Spectrajet Paper`. Shopify Flow can then match that title and add the promotion tag after the order.

## What happens after setup

For a customer's first eligible order:

`No tag` → `AIOD discount applies` → `Order placed` → `Flow adds tag`

For future orders:

`Tag exists` → `AIOD condition fails` → `Discount does not apply`

## Important limitations

### The customer must be identifiable

This approach works best when Shopify can identify the customer, such as when the customer is logged in. A guest customer may not have a customer record available when AIOD evaluates the discount.

### Shopify Flow adds the tag after the order

Shopify Flow runs after the order is created. This is not a real-time usage counter. The customer becomes ineligible after the workflow adds the tag.

### Keep the discount title stable

Shopify Flow checks the discount title recorded on the order, not an internal AIOD discount ID. If you rename the AIOD discount, update the matching title in Shopify Flow before the renamed promotion goes live. Otherwise, Flow will not add the customer tag for orders using the new title.

### Use a unique tag for each promotion

Use a separate tag for every one-time promotion. For example:

- `AIOD_USED_WELCOME15`
- `AIOD_USED_VIP20`
- `AIOD_USED_FIRSTGIFT`

Separate tags prevent one promotion from making a customer ineligible for another promotion.

## First-order-only discounts

If the requirement is "apply this discount only to customers who have never ordered before," use a first-order customer condition when the selected AIOD template supports it. The tag-and-Flow workflow is for a specific promotion that each customer may redeem once.

Test the workflow with a test customer before making the discount **Live**. Confirm that the first order receives the discount, Shopify Flow adds the tag, and a later eligible cart no longer receives it.

---

Source: https://aiodapp.com/docs/help/enable-aiod-shopify-theme

---
title: "Enable AIOD in your Shopify theme"
description: "Enable and verify AIOD's Latest Widget Manager app embed on the published Shopify theme."
---

AIOD's theme extension powers storefront features such as free-gift and promotional widgets. Enabling it does not require editing theme code.

## Enable the app embed

1. Open AIOD in Shopify admin.
2. If AIOD shows **Required: Theme Extension Should Be Enabled**, click **Activate theme extension**.
3. Shopify's theme editor opens to the app embeds area.
4. Turn on **Latest Widget Manager**.
5. Click **Save** in the theme editor.

Enable the embed on the published theme customers actually use. If you are preparing a new theme, repeat the step after that theme is published.

## Avoid the deprecated embed

If the theme lists both **Widget Manager** and **Latest Widget Manager**, use **Latest Widget Manager**. The older Widget Manager is deprecated and its functionality has been merged into the newer embed.

## Verify the setup

1. Return to AIOD and refresh the page.
2. Confirm the extension warning is gone.
3. Open the storefront in a private or incognito window.
4. Build a cart that qualifies for the promotion.
5. Confirm the expected widget, gift, or message appears.

## If activation does not seem to work

- Confirm you clicked **Save** after enabling the embed.
- Confirm you edited the current published theme, not an unpublished copy.
- Make sure **Latest Widget Manager** is enabled and the deprecated embed is disabled.
- Test without cached storefront data by using a private window.
- If the theme was recently changed or published, recheck its app embeds.

If the widget appears but does not update with the cart, continue with [How to Fix Cart Refresh Issues With AIOD Free Gifts](/help/fix-cart-refresh-free-gifts).

---

Source: https://aiodapp.com/docs/help/discount-saved-not-applying

---
title: "Discount saved but not applying"
description: "Troubleshoot an AIOD discount that was saved successfully but does not apply to the test cart or storefront."
---

A saved rule can still be ineligible for the cart being tested. Work through this checklist before changing the offer.

## 1. Confirm the rule is active

Check its start and end dates, status, usage limits, customer eligibility, and sales channel. Use the store's timezone when reviewing scheduled dates.

## 2. Recheck every condition

The test cart must satisfy every required condition in the rule. Common examples include:

- minimum purchase amount or quantity;
- required products, variants, or collections;
- customer segments or tags;
- purchase type; and
- required discount code.

For a minimum-spend offer, compare the qualifying amount with the cart subtotal used by the rule. Shipping, taxes, and other discounts may not count toward that subtotal.

## 3. Test the correct discount method

- An **automatic** rule needs no code and runs only when its conditions are satisfied.
- A **code-based** rule requires the configured code. Confirm the exact spelling and remove any other code that could conflict.

The discount method cannot be changed after the rule is saved. Create a new rule if the original was created with the wrong method.

## 4. Check discount combinations

Another Shopify or app discount may already be active. Review the rule's combination settings and test with other promotions removed from the cart.

## 5. Check storefront requirements

For free gifts and storefront widgets, enable AIOD's **Latest Widget Manager** app embed on the published theme and save the theme. A disabled extension can prevent the storefront experience from appearing even when the discount configuration exists.

## 6. Retest with a clean session

Use a private or incognito window, add fresh products to the cart, and recreate the qualifying conditions. Then test through checkout. This avoids stale cart state, a previously entered code, or cached theme assets.

## 7. Collect useful details for support

If the issue remains, send AIOD support:

- the discount name or ID;
- the template used;
- the expected result;
- the exact test cart contents and subtotal;
- whether the rule is automatic or code-based; and
- a screenshot or short recording with private customer information removed.

Do not send customer personal data, payment details, or store credentials.

---

Source: https://aiodapp.com/docs/help/fix-cart-refresh-free-gifts

---
title: "Fix cart refresh issues with free gifts"
description: "Troubleshoot a Shopify cart drawer that does not immediately show AIOD free-gift additions or removals."
---

If AIOD adds or removes a free gift but the cart drawer does not immediately show the change, the discount may be working while the theme's visible cart is stale.

## Start with these checks

1. Confirm **Latest Widget Manager** is enabled and saved in the published theme.
2. Test the offer in a private or incognito window.
3. Add enough items to cross the gift threshold, then reduce the cart below it.
4. Check whether the cart page, cart drawer, and checkout show different results.

If a full page reload shows the correct gift, the remaining issue is usually the theme's cart refresh behavior rather than the discount rule.

## Why this happens

Shopify themes implement cart drawers in different ways. After an app changes the cart, some themes automatically fetch and redraw the cart sections; others require a theme-specific refresh event or JavaScript function. There is no single refresh command that works for every theme.

AIOD adds or removes most automatic gifts in the same cart request as the customer's own change, so the theme redraws a cart that already has the right gifts. When AIOD cannot do that for a request, it changes the gift in a separate request right after, and the theme's cart can show the old state until it refreshes. Read [**Instant gift add and remove**](/app/settings#instant-gift-add-and-remove).

## What to send AIOD support

Ask your theme developer for the global JavaScript event or function that refreshes the cart drawer without reloading the page. Send that information to AIOD support together with:

- the published theme name;
- the page where the stale cart appears;
- whether the issue occurs when a gift is added, removed, or both; and
- a short screen recording with customer information removed.

A theme may expose a function similar to `window.Cart.reload()`, but that is only an example. Do not add it to your store unless your theme developer confirms the exact API for your theme.

## Temporary workaround

Until the theme-specific refresh is connected, customers can open the full cart page or reload the storefront to see the latest cart state. Confirm at checkout that the final line items and discounts are correct.

Checkout presentation is controlled by Shopify and can differ from the storefront cart drawer. A storefront display issue does not always mean the underlying discount failed.

---

Source: https://aiodapp.com/docs/help/show-discounted-prices-product-collection

---
title: "Show discounted prices on product and collection pages"
description: "Enable AIOD strikethrough pricing and place its app blocks on Shopify product and collection pages."
---

Use **Show Discounted Price Crossout** when customers should see the original price crossed out beside the discounted price before reaching checkout.

## Enable strikethrough pricing

1. In Shopify admin, open **Apps** > **AIOD Discount & Gift**.
2. Create or open an eligible AIOD discount.
3. Find **Show Discounted Price Crossout**.
4. Enable **Show strikethrough discounted pricing**.

Use **Always show strikethrough regardless of discount rules** only when the price display should ignore whether the discount conditions currently match.

## Add it to product pages

1. Open **1. On product page**.
2. Click **Add**.
3. In the Shopify theme editor, add **Product Page Crossout** to each required product template.
4. Place the block below the theme's **Price** element.
5. Click **Save**.

## Add it to collection pages

1. Open **2. On collection page**.
2. Click **Add**.
3. Add **Collection Cards Crossout** to the required collection pages.
4. Click **Save** in the theme editor.

For homepage, search, or other collection-card locations, open **3. On rest of the pages (homepage, search, etc.)** and use **Contact support** if the theme needs custom placement.

## Verify the result

Open the storefront in a private window and test a product that satisfies the discount conditions. Check both its product page and a collection containing that product.

Read [Show Discounted Price Crossout](/app/common-template-settings#show-discounted-price-crossout) for the complete shared-setting reference.

---

Source: https://aiodapp.com/docs/help/combine-product-gift-shipping-discounts

---
title: "Combine product discounts, free gifts, and free shipping"
description: "Build one AIOD Combined Multi Discounts offer containing product, gift, and shipping rewards."
---

Use **Combined Multi Discounts** when one qualifying promotion should contain several rewards, such as a product discount, a free gift, and free shipping.

## Create the combined offer

1. In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.
2. Find **Combined Multi Discounts** and click **Start creating**.
3. Choose the discount method required by the campaign.
4. Add the qualification conditions that customers must meet.
5. Configure **Discount #1** as the **Product Discount** block: its target, value, and quantity behavior.
6. Change **Discount #2** to **Free Gift** and select the gift products and quantity. Every block, including one added with **Add discount**, starts as a **Product Discount**, so change the block type first.
7. Click **Add discount**, change the new block to **Shipping Discount**, and configure the shipping reward.
8. For an automatic discount, optionally enter a **Discount message (optional)** on each block so customers see a label for each reward. Blocks left empty use the offer title.
9. Review the top-level limits, customer eligibility, dates, sales channels, and combination settings.
10. Set the offer to **Testing mode** and save it.

## Keep the rewards in one rule

Use separate blocks inside the same combined offer when all rewards belong to the same campaign. This keeps the conditions and campaign status together. Use separate discounts when the rewards need different audiences, schedules, limits, or activation states.

## Test the complete sequence

Test below and above every threshold. Confirm the product price changes, the correct gift is added or offered, and the shipping reward appears when its conditions are met. Also test removing a qualifying item.

Read [Combined Multi Discounts](/templates/combined-multi-discounts) for every block setting and [This discount can be combined with](/app/common-template-settings#this-discount-can-be-combined-with) for Shopify combination controls.

---

Source: https://aiodapp.com/docs/help/choose-free-gift-adding-method

---
title: "Choose a free gift adding method"
description: "Compare AIOD's auto-added, customer-choice, discount-code, and code-plus-choice gift methods."
---

The **Gift adding method** controls whether AIOD adds a gift automatically, lets the customer choose it, or waits for a discount code.

## Compare the four methods

| Method | Choose it when | Additional control |
| --- | --- | --- |
| **Auto-added** | Every qualifying cart should receive a predetermined gift automatically. | **Quantity per gift** |
| **Customer chooses** | A qualifying customer should choose from several available gifts. | **Total gifts customer can choose** |
| **Trigger with discount code** | AIOD should add the gift only after the customer enters a valid code. | Code, usage limits, discount URL, and coupon widget settings |
| **Code + customer chooses** | A valid code should unlock a gift-selection widget. | Code settings and **Total gifts customer can choose** |

## Decision checklist

- Choose **Auto-added** for the least-friction experience.
- Choose **Customer chooses** when preference matters more than automatic fulfillment.
- Choose **Trigger with discount code** for a campaign with one predetermined gift.
- Choose **Code + customer chooses** when both campaign access and customer selection are required.

Code-based methods require the **AIOD Discount Input** widget on the cart page or side cart drawer. Test the exact code in a private window before sharing it.

The same four methods appear on [Tiered free gifts](/templates/tiered-free-gifts#gift-adding-method) and on [Tiered Discount](/templates/tiered-volume-discount#gift-adding-method) when a tier gives a free gift. There, the method applies to every gift tier, and customer-choice methods let the customer claim gifts separately for each unlocked tier.

After choosing a method, configure the gift quantity, qualifying purchase rules, availability, schedule, and widget design. Read [Free Gift with Purchase](/templates/free-gift-with-purchase#gift-adding-method) for all conditional fields.

---

Source: https://aiodapp.com/docs/help/add-widgets-product-cart-drawer

---
title: "Add AIOD widgets to product pages, cart pages, and cart drawers"
description: "Choose AIOD widget locations and configure theme-specific selectors for product pages, carts, and side cart drawers."
---

AIOD widgets can appear on product pages, the full cart page, or a theme's side cart drawer. Available locations depend on the widget and template.

## Choose locations in the discount

Open the discount's widget settings and find **Where should the widget appear?**. Depending on the template, the available choices include:

- **Side Cart Drawer/ Cart Page**
- **All product pages**
- **Specific product pages**

Selecting **Specific product pages** reveals **Select products**.

**Buy X @ Fixed Price (Discount)** replaces **Specific product pages** with **Product Pages of Eligible Collections** or **Eligible Product Pages**. These toggles use the items selected in the offer, so there is nothing to pick.

**Tiered Discount** has separate locations for the **Progress Bar Widget** tab and the **Gift Widget** tab.

## Configure theme selectors

If a widget is missing or appears in the wrong place:

1. Open **AIOD Discount & Gift** > **Settings**.
2. Select **Widget Selector Settings**.
3. Enter the correct CSS selector for the relevant surface.
4. Choose **Above**, **Below**, **Inside top**, or **Inside bottom** where a position menu is available.
5. Click **Save Settings**.

AIOD provides general selectors for **Product Page**, **Cart Page**, **Side Cart Header**, **Side Cart Footer**, and a **Shadow DOM Selector (Side Cart Drawer)**. It also provides widget-specific selector groups.

Theme markup varies. Ask the theme developer or AIOD support for the correct selector instead of copying a selector from another store.

Read [Settings: Widget Selector Settings](/app/settings#widget-selector-settings) and [Discount Widgets](/app/discount-widgets) for the complete controls.

---

Source: https://aiodapp.com/docs/help/test-discount-before-live

---
title: "Test an AIOD discount before making it live"
description: "Use AIOD Testing mode and a controlled storefront cart to verify a promotion before customers can use it."
---

Use **Testing** or **Testing mode** while configuring a discount. The offer is visible to the merchant for testing but is not live for customers.

## Prepare the test

1. Create or open the discount in AIOD.
2. Set its top-right status control to **Testing** or **Testing mode**.
3. Review its products, collections, variants, customer eligibility, markets, purchase type, limits, combinations, sales channels, and schedule.
4. Save the discount.

## Test the eligibility boundary

Use a private or incognito storefront window. Build one cart that does not qualify and another that does. For quantity or spend thresholds, test immediately below, exactly at, and above the threshold.

Confirm:

- the discount does not apply too early;
- the expected product, order, gift, or shipping reward appears;
- removing a qualifying item removes or recalculates the reward;
- code-based offers reject an incorrect code and accept the exact configured code;
- widgets and messages appear in the intended storefront locations; and
- the final cart and checkout totals match the campaign design.

## Make the offer live

After every test passes, return to the discount, change its status to **Live**, and save. **Live** makes the discount active for customers. Use **Deactive** when the offer should be turned off.

Repeat a short live test after activation, especially when the theme, product availability, or another discount changed during setup.
