Create a script that checks the cart value to see if it’s in the range of your specifications
If it’s in range, add that product to cart (that documentation will show you how) and show a message to let the user know it’s there (Example you can pop a message near the top, with a color that stands out and calls the user to go to their cart to see the free product).
Add an event listener to trigger the script when you want (probably after adding a product to the cart, unless your users always go to cart page before checking out, then you could add the check on cart page)
You probably want to create a script to remove the free product as well if the cart sizes diminishes under the threshold.
If you need help with part of this or want it done for you feel free to reach out to my team at speedboostr.com/contact, we’re a team of Shopify developers that do performance optimization, custom features, theme builds, and apps.
I’m Ellie from BOGOS, a Shopify specialist. It sounds like you are trying to set up a “Spend X to get Free Gift” offer with multiple tiers. For this to work correctly, you will need to create two separate offers within the app to handle each price range.
I recommend using BOGOS for this setup. Here is how you can structure your offers within the app:
Offer 1: Set a cart value condition with a Min of 10,000 and a Max of 15,000 to trigger Gift A. (see the first picture below)
Offer 2: Set a Min of 15,000 and leave the Max empty (no limit) to trigger Gift B. (see the second picture below)
What’s great about BOGOS is that it handles the gift swapping automatically. When a customer’s cart reaches 15,000, the app will instantly remove Gift A and add Gift B.
Hope this helps you get your tiered offers running!