Expert Answer • 2 min read

How do I create a discount that only works if a specific product is in the cart?

I'm looking to create a more strategic discount approach for my e-commerce store where customers can only receive a promotional offer if they have a specific product in their cart. This could help me drive sales for particular items, incentivize purchases of slow-moving inventory, or create bundled promotions. I want to understand the technical implementation, best practices, and potential pitfalls of creating such a conditional discount strategy. What are the most effective ways to set up product-specific cart discounts?
Muhammed Tüfekyapan

Muhammed Tüfekyapan

Founder & CEO

2 min

TL;DR - Quick Answer

Create an automatic discount in Shopify and under 'Applies to' select 'Specific products', then choose the required product. The discount only applies when that specific product is in the cart. For more complex conditions (product must be present AND minimum spend), use Shopify Functions (Plus) or a discount app.

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

ScenarioSolution
Buy foundation, get primer at discountBuy X Get Y discount (foundation X, primer Y at 50% off)
Discount accessories when device in cartShopify Functions or discount app with conditional logic
Bundle: product A + B at combined discountCreate 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.

New Strategy For Your Shopify Store

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

GDPR Compliant
24/7 Support
Cancel Anytime
Muhammed Tüfekyapan

Muhammed Tüfekyapan

Founder & CEO of Growth Suite

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.

E-commerce Expert Shopify Partner Growth Strategist

Continue Learning

Discover more expert insights to accelerate your e-commerce growth