Last updated: October 2026

Want to auto-add a free gift with a specific product on Shopify? A cart-value or collection trigger may be too broad when the gift belongs with one product or variant. This guide shows how to define the qualifying line, choose the gift variant, configure removal, and test the rule in AutoCart.

Product trigger or variant trigger: which should you use?

Use a product-level trigger when every variant of the qualifying product should receive the same gift. Use a variant-level trigger when compatibility, price, geography, or the offer differs by option.

Situation Best trigger
Every coffee grinder includes the same brush Product
Only the 1 kg coffee bag includes a scoop Variant
Every shoe size gets the same care cloth Product
Only the red device model includes a matching case Variant
Several products share one gift Collection

A Shopify product contains one or more variants. The variant is the purchasable line with its own ID, inventory, price, and option combination. If a rule must distinguish size, color, pack size, or model, target the specific variant rather than relying on the parent product name.

How to auto-add product Y when product X enters the Shopify cart

The steps below use AutoCart's rule engine. Labels may evolve, but the structure remains condition, added product, price treatment, and removal behavior.

1. Define the offer before opening the rule builder

Write the campaign as one sentence:

> When the cart contains [qualifying product or variant], add [gift variant] once at $0. Remove it when no qualifying item remains.

This catches ambiguity early. Decide whether two qualifying units should earn one gift or two, whether the gift can be removed, and which rule wins if another offer also applies.

2. Verify both products in Shopify admin

Open the qualifying product and the intended gift. Confirm that both are active and available on the Online Store. For the gift, check the exact variant, inventory, and market publication.

Copy the product and variant names into your campaign notes. Similar names such as “Travel pouch / Black” and “Travel pouch / Charcoal” are easy to confuse during setup.

3. Create a specific-product condition in AutoCart

Create a new rule and choose the condition for a specific product in cart. Select the qualifying product. Refine the condition to the exact variant when only one size, color, pack, or model qualifies.

Do not use cart value as a substitute for a product trigger. A shopper can reach the same total with unrelated items and receive a gift that does not belong with the purchase.

4. Select the free-gift variant

Choose the product AutoCart should add and select the intended variant. Configure the action as a free gift. AutoCart adds products to the cart; Shopify discounting handles the price treatment, so verify the final line price in your store's actual discount setup.

Control quantity deliberately. One gift per cart is the simplest pattern. If the campaign promises one gift per qualifying unit, test quantity increases and decreases carefully so the gift quantity stays synchronized.

5. Configure automatic removal

Enable removal when the qualifying product is no longer in the cart. Without reversal, a shopper could add product X, receive product Y, remove X, and continue with the gift alone.

For a variant-specific rule, switching from the qualifying variant to another variant should also remove the gift unless the new variant qualifies under another rule.

6. Explain the addition in the cart

An unfamiliar line appearing without context can look like an error. Use a short message near the cart or promotion:

  • “Free travel pouch added with the Weekender suitcase.”
  • “Your 1 kg coffee order includes a complimentary scoop.”
  • “Free care cloth included with this frame.”

Keep the promise consistent on the product page, cart drawer, full cart page, and campaign creative.

7. Publish and test in a private browser window

Start with an empty cart. Add the exact qualifying item and confirm that the correct gift variant appears once, at the promised price. Remove the qualifying item and confirm the gift disappears.

Then test the edge cases below before sending campaign traffic.

Product- and variant-trigger QA checklist

  1. Add a product that should not qualify.
  2. Add the qualifying product and confirm one gift appears.
  3. Increase the qualifying quantity and check the gift quantity rule.
  4. Reduce the quantity and verify the result.
  5. Remove the qualifying item and confirm the gift is removed.
  6. For a variant rule, change to a non-qualifying variant.
  7. Add both qualifying and non-qualifying variants of the same product.
  8. Apply every discount code the campaign allows.
  9. Test the cart drawer, full cart page, and ordinary checkout.
  10. Repeat on mobile and in every targeted Shopify Market.

If multiple product rules can add the same gift, test them together. Removing one qualifying item should not remove the gift while another valid condition remains.

When a collection trigger is better

A product-specific rule becomes hard to maintain when many products share the same companion. If every item in a product family earns the same gift, use a collection condition instead. One collection rule can cover current and future members, though smart collections need regular membership checks.

Use the collection-triggered companion product guide when the shared relationship matters more than individual SKUs.

Product-triggered free-gift examples

Qualifying item Gift Why the pairing works
Espresso machine Starter filter pack Helps the customer use the product immediately
Full-size skincare serum Trial-size cleanser Introduces a complementary routine
Suitcase Luggage tag Relevant, low-friction accessory
Limited-edition candle variant Matching sample Variant-specific campaign tie-in

Avoid adding a paid companion without clear consent. This article focuses on free gifts. For a regular-price or discounted add-on, make the price obvious and let shoppers remove it.

Common setup mistakes

  • Selecting the parent product when only one variant qualifies. Target the exact variant when the offer depends on an option.
  • Choosing the wrong gift variant. Verify its SKU, inventory, image, and market availability.
  • Leaving quantity behavior undefined. Decide whether the offer is per cart or per unit.
  • Skipping removal tests. A valid setup must undo itself when qualification ends.
  • Running overlapping rules without priority. Document which reward wins and whether offers can stack.
  • Relying on native Buy X Get Y for auto-add. Native Shopify discounts require the shopper to add the reward product manually.

Specific-product free-gift FAQ

Can Shopify automatically add product Y when product X is added?

Not with Shopify's native Buy X Get Y discount alone. A cart automation app or custom theme implementation is needed to add product Y automatically. AutoCart provides a no-code specific-product condition and product-add action.

Can the trigger target one Shopify variant?

Use variant-level targeting when the campaign should apply only to one size, color, pack, or model. Confirm the exact variant ID and test switching between qualifying and non-qualifying options.

What happens if the customer removes product X?

Configure the rule to remove the free gift when no qualifying product remains. Test this reversal before launch.

Can one product trigger a choice of gifts?

Yes, when the rule uses a customer-choice gift experience. Keep the eligible set small and verify every selected product and variant. See the Shopify gift-picker guide.

Build the rule around the exact cart relationship

A product-triggered gift works because the relationship is specific. Choose the narrowest correct trigger, add the correct gift variant, define quantity and removal behavior, and test the reverse path as carefully as the add.

Try AutoCart free on your Shopify store