How do I create a discount that only works if a specific product is in the cart?
Muhammed Tüfekyapan
Founder & CEO
TL;DR - Quick Answer
Complete Expert Analysis
Discounts That Only Work When a Specific Product Is in Cart
Product-conditional discounts are useful for cross-sell promotions, bundle incentives, and upsell offers - the discount activates when the customer adds a specific anchor product. Shopify supports this natively through product-restricted automatic discounts, with more complex logic available through Plus.
Native Shopify Setup
For a discount that applies to specific products when they are in cart:
1. Create an Automatic discount
2. Set discount type (% off, fixed amount, free shipping)
3. Under Applies to, select Specific products and choose your anchor product
4. The discount applies to that product when it appears in any cart
Limitation: Shopify's native automatic discounts apply TO the specified product - they do not conditionally activate only when a different product is present. True conditional logic (if product A is in cart, discount product B) requires Shopify Functions or a third-party app.
Common Product-Conditional Discount Scenarios
| Scenario | Solution |
|---|---|
| Buy foundation, get primer at discount | Buy X Get Y discount (foundation X, primer Y at 50% off) |
| Discount accessories when device in cart | Shopify Functions or discount app with conditional logic |
| Bundle: product A + B at combined discount | Create a bundle product or collection discount |
Growth Suite Cross-Sell
Growth Suite's Frequently Bought Together surfaces complementary products at a discounted bundle price when specific items are in the cart - delivering the product-conditional discount experience through a recommendation widget rather than requiring custom discount logic.
Turn This Knowledge Into Real Revenue Growth
Growth Suite transforms your Shopify store with AI-powered conversion optimization. See results in minutes with intelligent behavior tracking and personalized offers.
+32% Conversion Rate
Average increase after 30 days
60-Second Setup
No coding or technical skills needed
14-Day Free Trial
No credit card required to start
With over a decade of experience in e-commerce optimization, Muhammed founded Growth Suite to help Shopify merchants maximize their conversion rates through intelligent behavior tracking and personalized offers. His expertise in growth strategies and conversion optimization has helped thousands of online stores increase their revenue.
Continue Learning
Discover more expert insights to accelerate your e-commerce growth
How do I write a Mother's Day cart abandonment recovery email?
A Shopify merchant wants to write effective cart abandonment recovery emails specifically tailored for Mother's Day g...
What is the best timing for a Mother's Day cart recovery email?
A Shopify merchant wants to optimize the timing of their Mother's Day cart abandonment recovery emails. They need to ...
Should I offer an extra discount in my Mother's Day recovery email?
A Shopify merchant is debating whether to include a discount code in their Mother's Day cart abandonment recovery ema...