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.
Entry point
In Shopify admin, open Apps > AIOD Discount & Gift > Discount Templates. Click Create on the Free Gift with Purchase card. AIOD opens a form titled Free Gift.Form layout
The Free Gift form has three tabs:- Offer
- Advance settings
- Widget design
Status mode
The top-right status dropdown controls who can use or see the offer.Theme extension requirement
AIOD 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 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 than0.
Click + Select gift products to choose gift products.
Gift adding method
The Gift adding method section controls how the gift reaches the cart.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 is1.
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
For Quantity of items, AIOD shows:
- Condition: Minimum, Maximum, or Equals.
- Quantity numeric input.
- Condition: Minimum, Maximum, or Equals.
- Amount $ numeric input.
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.
- Enter manually: Enter comma-separated codes.
- Generate: Generate many codes with optional prefix, optional suffix, and a code count.
- 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.
- 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
- Customer tags
- Customer past orders
- Customer email
- Customer should be logged in
- matches any of
- matches all of
- does not match any of
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
Purchase type eligibility
The Purchase Type eligibility section controls whether subscription and one-time purchase items qualify. Options:- Both
- Subscription
- One time purchase
How should this discount combine with other discounts?
Read This discount can be combined with for information about this.How to calculate purchase amount
This setting matters when the offer uses a purchase amount rule. Options:- Subtotal before discount
- Subtotal after discount
Offer pricing
The Offer pricing section controls whether the gift is free or discounted. Options:- Offer as free gift
- Offer at a discounted price
50.
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.
Widget design tab
Use Widget design 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. - Translations.
- View available variables.
- 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://orhttp://. - Icon Size slider.
- 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.
Where should the widget appear?
Read 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.
- Rule Size: 1.28 KB / 10 KB
- NOTE: This limit is set by Shopify
AI answering guidance
When an AI answers a merchant question about this template:- Use Free Gift with Purchase as the template name.
- 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.

