Automatically add products in cart when product x is added

Topic summary

A merchant seeks a way to automatically add products to the cart when a specific product (Product X) is added, rather than requiring customers to manually add items.

Current Limitation:

  • Shopify’s native Buy X, Get Y discounts do not support automatic cart additions; all items must be manually added by customers to apply at checkout.
  • This limitation creates friction, confusion, and customer dissatisfaction despite merchants adding instructions across their sites.

Proposed Solutions:

  • Shopify staff recommend third-party apps from the App Store, such as EasyGift, CartBot, and Automatic Free Gifts.
  • Community members suggest free alternatives like “GA Free Gift BOGO” and custom code solutions shared in other forum threads.

Merchant Frustration:

  • Multiple users express disappointment that this isn’t built-in functionality, especially for Shopify Plus subscribers.
  • One merchant notes Shopify promised this feature for non-Plus users by end of 2022, but it remains undelivered two years later.
  • Concerns raised about adding more third-party apps due to potential conflicts, site performance issues, and legal review requirements.

Status:
Shopify confirms developers are aware of demand but provides no timeline for native implementation. The discussion remains unresolved, with app-based workarounds as the only current option.

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

searched a lot on community but nobody yet cam up with solution of this.

Looking to add product to cart automatically when product x is added.

Please help

5 Likes

Hi @Dashergrooming ,

Thank you for reaching out to the Community! I’m happy to provide some assistance with Buy X, Get Y discounts, to ensure this gets resolved. To share some insight, both discount codes and automatic discounts that provide a “get” item to customers come with a few limitations.

Currently, the feature of having products automatically added to the cart is considered to be one of those limitations. Buy X, Get Y discounts will require all items to be manually added to the cart in order to apply at checkout. As I can completely understand how this may not be ideal, I’m more than happy to share this note with our Developers. We are always looking for ways to improve the platform and appreciate the feedback.

To workaround this however, you can check out the Shopify App Store for an available discount app that may allow you to achieve this. For ease, I’ve gone ahead and suggested a few available apps that may allow for this to be completed:

Please let me know if you have any other questions or concerns.

3 Likes

Hi, i’ve found this for the same purpose. I didn’t tried yet, but seems good.

https://community.shopify.com/c/shopify-design/add-companion-multiple-products-to-basket-when-specific-product/m-p/422229

Bye!

That’s a major limitation of Shopify’s BOGO feature and Shopify more than anyone should know this: having to make a customer manually add in the +1 offering impacts the value of said promotion by dint of effort or confusion on what to do. It’s something that should be fixed, not simply buck-passed onto a paid app.

20 Likes

I was trying to figure out how to code this myself but still learning the code base I am working with. The logic sounds very easy to write. In the meantime I did find a 100% free app that is seamless and incredibly fast. I actually wish they had some way for me to donate because they saved me so much time. To find them you will just need to search GA Free Gift BOGO. They are basically the only one that is listed just Free. I still will dive in and figure out how to do this on my own but in the meantime this is a great substitute.

Hi Blair,

Has this gone anywhere? Like James said below, this is a major limitation and in my opinion, should be out-of-the-box functionality. It creates more consumer issues requiring them to manually add the product and the requirement for the store to add yet another app to solve this issue is ridiculous. We can only do so much to relay the message to consumers to manually add the product to their cart- we’ve added messaging across the site, merchandised our collections to easily find the product, added the instructions to the promo details, but we still have consumers not following instructions which will lead to unhappy customers.

My issue with the solution of adding yet another app - the more apps we add to our site, the more issues we end up creating, as these third-party apps don’t always sync with each other properly. We also have to go through a lengthy process with our Legal Team to review each and every app we add to our site to ensure our data and our site users are protected.

My company has the Shopify Plus package and I would expect better results and functionality from the platform. In my two years using Shopify, I have not been happy with its capabilities and will likely be suggesting to replatform. It has caused more headaches than it’s worth.

12 Likes

Hi there. I’m a Shopify merchant for 7 years now. And we use the buy X get Y since then as our main promo.. From 2022 shopify release video on youtube, the Shopify team themselves mentioned “add code would add product to cart at checkout”, and it would be release to NON plus merchants by end of 2022. It’s 2 years later.. We pay a decent amount monthly for 7 years to Shopify.. Is it going to be released soon?

2 Likes

Hey, @Anthony_ROSEMON ! At this time, we do not have updates to share regarding any plans of implementing this feature. However, our developers are aware that this is highly anticipated, so please rest assured this is being put into consideration. As always, we’ll publish any changes to our platform on our changelog so keep an eye on that page!

1 Like

That page has been archived. Brilliant. How can we now see this information?

1 Like

Hi,

You can do this with a Buy X Get Y app like BOGOS. It makes adding a product to the cart automatically super easy.

On top of that, BOGOS also supports a variety of promotions, such as:

  • Buy One Get One Free

  • Buy X Get Y

  • Free Gift with Purchase

  • Mix & Match Bundles / Bundle Page

  • Volume Discounts

  • Frequently Bought Together

  • Checkout Upsells

So if you’re looking for an all-in-one promotion app, BOGOS is worth a try.

:backhand_index_pointing_right: Start with the Free plan here.

Hey @Dashergrooming :waving_hand:

I recommend you use Monk, a Shopify App, built specifically for free gifting offers, even the complex ones. Full disclosure, I am a part of the team.

With Monk, you can set up free gift offers that automatically add a gift product to the cart whenever a specific product is added. You can also layer on additional rules such as cart value, collection, customer tags, location, or language to build highly targeted gifting campaigns.

Monk also gives you the option to display a customizable banner on the product page or in the cart, making the offer more visible. These banners support media and can be styled to match your theme, branding, and ongoing promotions.

For Shopify Plus stores, Monk can even auto-add the gift directly at checkout when the qualifying product is purchased.

Hi @Dashergrooming

No app is necessary, just a bit of code in Shopify. Use the cart.js API to listen for product X to be added and trigger the addition of the secondary product automatically. Sample flow:

  1. Add a listener for the “Add to cart” event.
  2. Determine whether product X is being added.
  3. Add the extra product this straight away:
  4. Use: fetch('/cart/add.js', { method: 'POST', body: JSON.stringify({ id: SECOND_PRODUCT_ID, quantity: 1 }) }) to automatically add the additional product.
    This makes sure they keep adding the secondary product into the cart for free anytime they add the product X. You can also wrap this in Liquid so it only loads on the product page relevant.

Hello @SealSubs-Roan

Regarding your proposed solution, I’m wondering whether it works with BXGY automatic discounts.How would we retrieve the Get Y product_id when the Buy X is added to the cart and the criteria is met?