Automatically add product to cart for selected customers

Topic summary

A merchant wants to automatically add a free product to the cart for 10% of customers meeting specific criteria.

Technical Approaches:

  • Use Shopify’s Ajax Cart API to trigger product additions based on customer tags or actions
  • Implement post-order automation using apps like Order Automator
  • For Shopify Plus merchants: leverage Script Editor or Functions API for custom logic

App-Based Solutions:
Multiple participants recommend third-party apps:

  • BOGOS (formerly Free Gifts by Secomapp): Offers customer tag targeting, order history rules, and specific URL triggers. Now includes a lifetime free plan
  • Monk: Supports customer tag segmentation combined with cart conditions
  • CartBot Auto Add to Cart and similar apps for automated cart additions

Key Parameters Mentioned:
Apps can trigger gifts based on:

  • Customer tags (e.g., first-time buyers, email subscribers)
  • Cart value thresholds
  • Order history
  • Specific products in cart
  • Sales channels

Consensus: This functionality requires either custom development using Shopify APIs or installing a specialized app. Participants recommend testing apps via free trials before committing.

Summarized with AI on October 23. AI used: claude-sonnet-4-5-20250929.

Let’s suppose I want to give a prize to 10% of my customers who meet some parameter.

Is it possible to automatically add the product to the cart when they place an order only for those specific customers?

Thanks

1 Like

Yeah there are a couple ways you could do it:

a) If you want to add to the cart before checkout, for example from the product page, you can use the Shopify ajax api: https://shopify.dev/docs/api/ajax/reference/cart

For example, you can add some code to have a script trigger adding that product to the cart, when another product is added to cart (or if they arrive on a certain page, etc), and you could trigger it for only certain tagged customers.

b) If you wanted to add it after the order, you can use Order Automator. You would just create a rule in the app to trigger the added product, for example if customer has tag X, or it’s their 2nd order, or if they ordered a certain product, etc.

Hi @getrekt Yes this is possible.
Can you let me know what parameters you will be using to offer the free gift to the customers, for example, add free gift when the cart value is USD 100, or add free gift when Product x is in the cart?

Hi @mehmetkoyuturk :grin:

This is Ellie from BOGOS (formally Free Gifts by Secomapp), # 1 Promotion App on Shopify.

Using the BOGOS app, you can offer a gift to cart with many parameters like Spend X amount to get that gift, BOGO (Buy 1 get 1 the same), Buy X Get Y, and so on.

Additionally, BOGOS also offers advanced rules that can help with your setup. These features are available on all plans.

  • Specific URL: reward customers who access your store through this URL with a gift.
  • Order history: Target customers based on their order history. For example, those who have spent $200 or more qualify for an offer.
  • Customer Tags: Utilize customer tags created in your Shopify admin to offer gifts to specific groups upon login. For instance, you can set up a promotion offer for customers making their first order, those who sign up for your email list, or any other tagged groups you wish to target.

These are just some examples of what the BOGOS app can do. If these options don’t quite match your needs, feel free to let me know; I will guide you further.

Grab 7-day free trial of BOGOS (4.9 overall rating, 1,985+ reviews) to give it a try!

If my answer is helpful, I would appreciate it if you could give me a Like or accept it as a Solution! :grin:

Wish you all the best with the business,

Ellie

BOGOS (formally Free Gifts by Secomapp)

Hi everyone, :pleading_face: :revolving_hearts: please allow me to share a quick update:

:sparkles: BOGOS now allows you to offer gifts to more types of specific customers and even sales channels.

:sparkles: BOGOS now has a lifetime FREE PLAN, so you can automatically add free product to cart for specific customers only.

Thank you so much :revolving_hearts:

Hey @getrekt :waving_hand:

Yes, you can actually get this working using Monk from the Shopify App Store. I’m part of the team behind it, so I’ll walk you through the set-up.

With Monk, you can target specific customer segments by assigning them a customer tag. Once tagged, Monk can automatically add a gift to their carts.

You can also combine this with rules like “count of items in cart is greater than or equal to 1”, so only tagged customers who meet that condition receive the gift automatically in their cart.

Hello @getrekt ,

I hope you are well!

This can be done using the app. There are various apps you can check like:

1.) CartBot: Gift with purchase - Automatically add free gift with purchase to the cart | Shopify App Store

2.) EG Auto Add to Cart Free Gift - Auto Add Gifts with Purchase & Upsells with EG | Shopify App Store

3.) Dr Stacked Discounts on Cart - Dr Stacked Discounts on Cart, Multiple Stacked Discounts | Shopify App Store

But, please book a demo of the app before purchasing any app. It will be helpful for you to understand the capability of the app.

Shopify doesn’t have a native setting to automatically inject a product into the cart for a subset of customers, but you can achieve it in a couple of ways:

  • Use a third‑party app (e.g., BOGOS, Order Automator, Automatic Discounts & Gifts) to define rules (customer tags, order value) and automatically add a gift product to the cart.

  • If you’re on Shopify Plus, write a script using the Script Editor or the new Functions API to inspect the cart and customer attributes and inject the gift item when conditions are met.

  • Alternatively, add the free item after the order is placed using an automation app (e.g., Order Automator or Flow) to update the order with the gift.

These approaches allow you to reward specific customers based on your chosen parameters.