Settings - AIOD Discount & Gift

AIOD

Settings

Settings tab for AIOD widget selectors, free gift behavior and popup translations, custom CSS or JavaScript, global storefront settings, the Tapcart mobile app integration, and linked stores for copying discounts between stores.

Use

Settings

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

Navigate to header: Entry point Entry point

In Shopify admin, open

Apps

>

AIOD Discount & Gift

>

Settings

.

The

Settings

hub shows six 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.
Linked stores Link your other stores and copy discounts to them with Dex.

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.

Navigate to header: Widget Selector Settings 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.”

Navigate to header: Global placement selectors 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

Navigate to header: Widget Specific Selectors 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.

Navigate to header: Gift Banner selectors 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

Navigate to header: Progress Bar selectors 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

Navigate to header: Discount Callout selectors Discount Callout selectors

When

Discount Callout

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

Navigate to header: Offer Message Widget selectors Offer Message Widget selectors

When

Offer Message Widget

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

Navigate to header: Volume Bundle Widget selectors 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

Navigate to header: BXGY Widget selectors BXGY Widget selectors

When

BXGY Widget

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

Navigate to header: Upsell Widget selectors Upsell Widget selectors

When

Upsell Widget

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

When an Upsell selector is filled in, the Upsell widget on that surface appears only at the matching element. If no element on the page matches the selector, the Upsell widget stays hidden on that surface. It does not fall back to the

global placement selectors

. If the matching element renders later, for example when a side cart drawer opens or updates, the widget appears once the element is present.

Leave an Upsell selector empty to show the Upsell widget at the global placement for that surface.

Navigate to header: Save Widget Selector Settings 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

.

Navigate to header: Gift Settings 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.

Navigate to header: Gift Messages 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 modal.

Navigate to header: Gift message translations 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

.

Navigate to header: Popup Styles 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.

Navigate to header: Gift added popup 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

Navigate to header: Gift removed popup 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

Navigate to header: Typography 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.

Navigate to header: Manual gift quantity 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.

When

Allow quantity increase for manual gifts

is unchecked, AIOD does not delete gift units a customer adds above the gift limit. Read

Extra gift units added by the customer

.

Navigate to header: Extra gift units added by the customer Extra gift units added by the customer

A customer can raise the quantity of a free gift in the cart above the quantity they have earned. For example, they change an earned gift from

1

to

2

.

AIOD keeps the extra units in the cart as regular purchases. It moves them to a separate cart line that is no longer marked as a gift, so the customer pays for them. The earned quantity stays on the gift line. Custom line item properties and a subscription (selling plan) on the gift line are kept on the regular line.

This applies to auto-added gifts and to customer-chosen (manual) gifts, including per-tier gift limits. It applies in the storefront cart, in checkout, and in Tapcart.

Gifts that AIOD added are still removed when the customer earns fewer of them, for example when the cart no longer qualifies or drops to a lower tier. AIOD removes only those app-added units. It does not turn them into paid purchases.

There is no setting for this behavior. For manual gifts, it applies when

Allow quantity increase for manual gifts

is unchecked. When that checkbox is checked, AIOD does not enforce the manual gift limit in the cart.

The discount itself also makes only the earned quantity free. A gift limit counts every cart line of the same gift variant together. If the same gift variant sits on several cart lines, for example because the lines have different line item properties, only the earned quantity is free in total and the other units are charged. Each different gift variant the offer lists still has its own limit.

Navigate to header: Instant gift add and remove 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

:

window

.

AIOD_INLINE_GIFT_MUTATION

=

"off"

;

Navigate to header: Cart auto reload function 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:

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

Navigate to header: After cart auto reload function After cart auto reload function

The

After cart auto reload function (For Developers)

field appears directly below

Cart auto reload function

. Placeholder observed:

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.

Navigate to header: Save Gift Settings Save Gift Settings

Click

Save Settings

to save gift setting 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

.

Navigate to header: Custom JS / CSS 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.

Navigate to header: Global Settings Global Settings

Open

Settings

>

Global Settings

.

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

Navigate to header: Discount scheduling Discount scheduling

Discount scheduling

is the first card on

Global Settings

. Its

Time zone

field sets the time zone of the

Start date

,

Start time

,

End date

, and

End time

fields in every template’s

Schedule

card. Merchants may also call this the “store time zone”, “schedule time zone”, or “discount timezone”.

AIOD’s helper text says: “All discount schedules will be shown in this time zone.”

Option Behavior
Browser time zone The default. Schedules use the time zone of the browser the staff member is using. The option label adds that zone’s name and current GMT offset, for example Browser time zone (India Standard Time, GMT+05:30) .
UTC Schedules use UTC.
A named time zone Listed with its current GMT offset, city, and country, for example GMT+05:30 Kolkata, India . Every staff member then sees schedules in this zone, whatever their browser’s time zone.

Time zone

is a searchable field with the placeholder

Search city, country, or GMT offset

. You can search by city, country, time zone abbreviation, IANA identifier such as

America/New_York

, or GMT or UTC offset. For example,

GMT +530

and

India

both find Kolkata. An offset without

+

or

, such as

5:30

, matches both signs. When nothing matches, the list shows “No time zones found”.

Changing the time zone does not move saved discounts. Start and end times are saved in UTC, so a saved discount still starts and ends at the same moment. Only the date and time shown in the

Schedule

card change. The setting doesn’t change the storefront.

Read

Schedule time zone

for how the

Schedule

card shows the time zone.

Navigate to header: Compare-at price strikethrough Compare-at price strikethrough

Compare-at price strikethrough

is the second card on

Global Settings

. It controls how the strikethrough widget shows a Shopify compare-at sale on product pages and collection cards, such as a product with a compare-at price of

$100

and a selling price of

$80

, when no AIOD discount applies to it.

AIOD describes it as: “These settings apply to Shopify compare-at sales on product pages and collection cards. When an app discount applies, the widget uses your theme app block settings.”

All three checkboxes are unchecked by default. With all of them unchecked, the widget shows the crossed-out compare-at price, the selling price, and the discount badge.

Control Helper text Behavior
Hide the compare-at price badge ”Keep the crossed-out price and hide only the badge.” Keeps the crossed-out compare-at price and the selling price. Hides the badge.
Hide the compare-at price strikethrough ”Show only the current selling price. This also hides the badge.” Shows only the selling price, without the crossed-out compare-at price or the badge. A collection card with a price range keeps its selling-price range.
Use custom text on the compare-at price badge None Shows Compare-at price badge text below the checkbox.

Compare-at price badge text

appears only when

Use custom text on the compare-at price badge

is checked. Its placeholder is

For example, Sale

, and its helper text is “Leave blank to use the app block’s badge text.” The text replaces the badge text when the badge is visible. If the field is blank, the badge uses the badge text from the theme app block.

These settings change storefront price display only. They do not change prices or discounts. When an AIOD discount applies to the product, the strikethrough widget uses the theme app block settings instead. Read

Show Discounted Price Crossout

for information about strikethrough pricing for AIOD discounts.

Navigate to header: Set custom locale Set custom locale

Set custom locale

controls how currency is formatted in the strikethrough widget. AIOD describes it as: “This locale will be used to format currency 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 locale formats both the crossed-out price and the selling price in the strikethrough widget on product pages and collection cards, including AIOD discount prices and price ranges. It changes number formatting and where the currency symbol appears, not the currency. For example,

de-DE

on a USD storefront shows amounts with comma decimals and the

$

symbol after the amount.

The value is saved without leading or trailing spaces. Clearing the field removes the custom locale. A blank or invalid locale uses the storefront locale.

Navigate to header: Defer discount engine on non-commerce pages 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.

Navigate to header: Side cart initialization delay 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.

Navigate to header: Clear AIOD cache 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.

Navigate to header: Save Global Settings Save Global Settings

Click

Save Settings

to save global settings.

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

.

Navigate to header: Tapcart 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

.

Navigate to header: Turn on Tapcart 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

.

Navigate to header: If turning Tapcart on or off fails If turning Tapcart on or off fails

If

Turn on Tapcart

or

Turn off Tapcart

fails, Tapcart stays as it was and AIOD shows a red error banner at the top of the page. The banner says which step failed and gives Shopify’s reason. For example:

Error starts with What failed
”Couldn’t read your current Tapcart setting from Shopify” AIOD could not read whether Tapcart is on.
”Couldn’t check in Shopify whether your Tapcart app can read your free gift rules” (or “discount rules”) AIOD could not check whether your Tapcart app can read your AIOD rules.
”Shopify wouldn’t let your Tapcart app read your free gift rules” (or “discount rules”) Shopify refused to let your Tapcart app read your AIOD rules.
”Shopify wouldn’t hide your free gift rules” (or “discount rules”) When turning Tapcart off, Shopify refused to hide your AIOD rules from your Tapcart app again.
”Couldn’t look up your store in Shopify to save the Tapcart setting” AIOD could not find your store in Shopify.
”Shopify didn’t save the Tapcart setting” Shopify did not save the on or off setting.

Common reasons at the end of the message:

“Shopify is limiting how many requests the app can make to your store right now; wait a minute and turn it on again”: Shopify is rate-limiting the app. Wait a minute and try again.

“Shopify denied the app access”: Shopify refused the app’s access to your store.

“Shopify didn’t answer”: the request to Shopify did not complete.

If Tapcart is turned on from another browser tab or device at the same moment, AIOD stops one attempt and shows: “Tapcart was being turned on from another tab or device at the same moment, so this attempt stopped. Reload this page to see whether Tapcart is now on.”

Navigate to header: Setup in Tapcart Setup in Tapcart

When Tapcart is on, AIOD shows

Setup in Tapcart

with these steps:

Add the AIOD Channel block (no visible UI) to the Home, Product and Cart screens.

Add the AIOD Free Gift block to the Cart screen and set its Rules namespace to aiod .

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

Navigate to header: Linked stores Linked stores

Open

Settings

>

Linked stores

.

Use this page when a merchant runs more than one Shopify store and wants to copy a discount from one store to the others. Linking stores is the first step. The copying itself is done by Dex. Read

Copy a discount to other stores

.

The page title is

Linked stores

. Its back control is

Settings

.

AIOD notes: “The app must be installed in every store you link.”

A store can belong to only one group of linked stores.

Navigate to header: Stores linked to this store Stores linked to this store

The card

Stores linked to

followed by the current store’s myshopify domain lists the other stores in the group. With no linked stores, it shows

No stores linked yet.

Control Behavior
Created the group badge Marks the store that created the group.
Remove Shown next to each store only in the store that created the group. Removes that store from the group.
Unlink this store Shown when the store has linked stores. Removes the current store from the group. If the store that created the group leaves, the store linked longest takes over that role.

Uninstalling AIOD from a store also removes that store from its group.

Navigate to header: Link another store to this one Link another store to this one

Use this card in the store that starts the link.

Click Generate link code .

AIOD shows a code in the format XXXX-XXXX-XXXX with a countdown. AIOD explains: “Expires in [time]. It works once. Generating a new code cancels this one.”

In the other store, open AIOD Discount & Gift > Settings > Linked stores and use Join another store .

The code is valid for 15 minutes and works once. When it expires, AIOD shows “That code has expired. Generate a new one.”

Navigate to header: Join another store Join another store

Use this card in the store that joins.

Field Placeholder
Other store’s myshopify domain other-store.myshopify.com
Link code from that store XXXX-XXXX-XXXX

Click

Link stores

. The button is disabled until both fields are filled. On success, AIOD shows “Linked. You can now copy discounts between these stores.”

Messages the merchant may see:

Message Meaning
”That code is not valid for that store. Codes expire after 15 minutes and work once.” The code is wrong, expired, already used, or was generated by a different store than the domain entered.
”That is this store’s own domain.” The merchant entered the current store’s domain.
”This store is already linked to other stores. Leave that group first, then join this one.” Click Unlink this store first.
”That store has left its group. Ask it for a new code.” The store that generated the code is no longer in that group.

Navigate to header: Support Support

Settings pages show

Contact support:

followed by the AIOD support email.

global placement selectors

Navigate to header: Gift message translations

Navigate to header: Extra gift units added by the customer

Schedule time zone

Show Discounted Price Crossout

Sales channel

Copy a discount to other stores

Navigate to header: Entry point

Navigate to header: Widget Selector Settings

Navigate to header: Widget Specific Selectors

Navigate to header: Gift Banner selectors

Navigate to header: Progress Bar selectors

Navigate to header: Discount Callout selectors

Navigate to header: Offer Message Widget selectors

Navigate to header: Volume Bundle Widget selectors

Navigate to header: BXGY Widget selectors

Navigate to header: Upsell Widget selectors

Navigate to header: Save Widget Selector Settings

Navigate to header: Gift Settings

Navigate to header: Gift Messages

Navigate to header: Popup Styles

Navigate to header: Gift added popup

Navigate to header: Gift removed popup

Navigate to header: Typography

Navigate to header: Manual gift quantity

Navigate to header: Instant gift add and remove

Navigate to header: Cart auto reload function

Navigate to header: After cart auto reload function

Navigate to header: Save Gift Settings

Navigate to header: Custom JS / CSS

Navigate to header: Global Settings

Navigate to header: Discount scheduling

Navigate to header: Compare-at price strikethrough

Navigate to header: Set custom locale

Navigate to header: Defer discount engine on non-commerce pages

Navigate to header: Side cart initialization delay

Navigate to header: Clear AIOD cache

Navigate to header: Save Global Settings

Navigate to header: Tapcart

Navigate to header: Turn on Tapcart

Navigate to header: If turning Tapcart on or off fails

Navigate to header: Setup in Tapcart

Navigate to header: Linked stores

Navigate to header: Stores linked to this store

Navigate to header: Link another store to this one

Navigate to header: Join another store

Navigate to header: Support