Skip to main content
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. The Buy X Get Y (BOGO) parent opens three inner templates:

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: 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

Read 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 Shopify customer segments. AIOD describes this section as: “This discount will be only applicable for customers in the selected segments.”

How should this discount combine with other discounts?

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

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:

Show discounted price crossout

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

Widget Settings tab

Use Widget Settings (renamed from Widget) to configure the storefront BXGY widget for this discount. Default text fields: Title, Unlocked title, and Sub text support turning selected text into a link. Read 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 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? for information about this. The preview area says to select BX and GY items in the Offer tab to see the preview UI.