How to Add a Discount Code to Shopify: A Merchant Guide

Learn how to add a discount code to Shopify with our step-by-step merchant guide. Boost sales, increase AOV, and master strategic discounting today!

14 min
How to Add a Discount Code to Shopify: A Merchant Guide

Table of Contents

  1. Introduction
  2. The Step-by-Step Process of Adding a Discount Code
  3. The "Foundations First" Approach to Discounting
  4. Technical Considerations and Limitations
  5. Margin and Operations Check: The Hidden Costs of Discounting
  6. Moving Beyond Codes: The Power of Bundling with Intention
  7. Discount Stacking and Conflict Resolution
  8. Mobile UX: Where Discounts Live or Die
  9. Performance and Measurement: How to Know if it’s Working
  10. When to Bring in Help
  11. Conclusion
  12. FAQ

Introduction

Imagine a customer lands on your store for the first time. They love your products, they’ve spent five minutes browsing, and they have three items in their cart. Then, they reach the final step and hesitate. This moment—the "checkout friction" point—is where a well-timed incentive often makes the difference between a completed sale and a lost opportunity.

Learning how to add a discount code to Shopify is one of the most fundamental skills for any merchant. Whether you are a new Shopify founder launching your first collection or a growing DTC brand trying to clear out seasonal inventory, discounts are a powerful lever. However, a discount is more than just a lower price; it is a communication tool that can drive urgency, reward loyalty, or encourage larger cart sizes.

At MBC Bundles on Shopify, we see discounts as part of a broader merchandising strategy. While a single code can help close a sale, the real magic happens when you move from random discounting to intentional bundling. This article will walk you through the technical steps of setting up discount codes, the strategic considerations for protecting your margins, and how to transition toward automated bundling to increase your Average Order Value (AOV).

We believe in a responsible journey for every merchant: start with solid foundations, clarify your specific goals, check your margins, implement with intention, and constantly reassess based on real data.

The Step-by-Step Process of Adding a Discount Code

Creating a discount code within the Shopify ecosystem is designed to be intuitive, but there are several configuration layers that determine how effective that code will be.

To get started, log into your Shopify admin and navigate to the Discounts section on the left-hand sidebar. From here, click Create discount. You will typically be presented with four main options:

  1. Amount off products: A percentage or fixed amount off specific items or collections.
  2. Amount off order: A discount applied to the entire cart value.
  3. Buy X Get Y (BOGO): A classic promotion where buying a certain quantity triggers a discount on another item.
  4. Free shipping: Removing the shipping cost for specific countries or order values.

Once you select your type, you will need to choose "Discount code" (rather than "Automatic discount"). The code is the actual string of text—like SAVE20 or WELCOME10—that your customer will manually enter at checkout.

Configuring Your Discount Logic

After naming your code, you must define the rules of engagement. Shopify allows you to set:

  • The Value: Is it 15% off or $10 off?
  • Requirements: Does the customer need to spend a minimum amount (e.g., "Spend $50, get 10% off") or purchase a minimum quantity of items?
  • Customer Eligibility: Is this for everyone, specific customer segments (like "Returning Customers"), or specific individual customers?
  • Usage Limits: Can the code be used an unlimited number of times, or is it limited to one use per customer?
  • Combinations: This is a critical area. You must decide if this code can be "stacked" with other product discounts, order discounts, or shipping discounts.

Next Steps Action List:

  • Log into Shopify Admin and go to the "Discounts" tab.
  • Decide if your goal is to move a specific product (Product Discount) or increase total cart value (Order Discount).
  • Create a test code (e.g., TEST50) and walk through your own checkout on a mobile device to ensure the experience is seamless.

The "Foundations First" Approach to Discounting

Before you launch a massive site-wide sale, it is vital to remember that discounts cannot fix fundamental issues with your store’s user experience. We call this the "Foundations First" phase.

If your product pages are cluttered, your shipping rates are hidden until the last second, or your site takes five seconds to load on mobile, a 20% discount code won't save the conversion rate. Shoppers need to trust your brand before they care about your price. Ensure your product descriptions are clear, your photos are high-quality, and your return policy is easy to find.

Once the foundation is solid, you should clarify your "Why." Why are you adding this discount code?

  • To Acquire New Customers: A "Welcome" code is a standard way to lower the barrier to entry for first-time buyers.
  • To Increase AOV: Using a code that only triggers after a certain spend (e.g., "GET10" on orders over $100) encourages shoppers to add one more item to their cart.
  • To Move Dead Stock: If you have inventory taking up space, a heavy discount code for those specific SKUs can help recover capital.

Key Takeaway: Discounts are a supportive tool, not the foundation of your business. Use them to enhance a shopping experience that is already trustworthy and clear.

Technical Considerations and Limitations

Shopify is a robust platform, but there are hard limits and technical nuances you should be aware of when managing discount codes.

The 100-Item Cap

A single discount code can apply to a maximum of 100 specific customers, products, or variants. If you try to manually select 101 products for a specific code, Shopify will display an error. To get around this, it is much more efficient to apply discounts to Collections rather than individual products. This keeps your admin organized and ensures you don't hit that cap.

The 20 Million Limit

While it sounds astronomical, Shopify has a cumulative limit of 20 million unique discount codes per store. For most small to medium businesses, this is never an issue. However, if you use third-party apps to generate thousands of unique, one-time-use codes for every email subscriber, you may eventually need to delete old, expired codes to make room for new ones.

Special Characters and URLs

When naming your code, stick to alphanumeric characters. Avoid symbols like #, ?, or &. These can break the "discount link" functionality (where a discount is automatically applied via a URL), leading to a frustrating experience where the customer thinks they are getting a deal that never appears at checkout.

Time Zone Accuracy

If you set a discount to start at midnight on Friday for a Black Friday sale, Shopify uses the time zone set in your General Settings. If your store is set to EST but your customers are primarily in PST, your sale might start three hours "early" for them. Always double-check your store's regional settings before scheduling time-sensitive promotions.

Margin and Operations Check: The Hidden Costs of Discounting

One of the biggest mistakes merchants make is forgetting to account for the "margin squeeze." If your product costs $20 to make and you sell it for $40, you have a $20 margin. A 20% discount takes $8 off your profit, leaving you with $12. Once you subtract shipping, packaging, and advertising costs, that $12 can quickly disappear.

Before implementing any discount code, perform a quick audit:

  1. Profitability Check: Does this discount leave enough room for your overhead?
  2. Fulfillment Complexity: Will a sudden influx of orders from a "Buy 3 Get 1 Free" code overwhelm your warehouse or packaging process?
  3. Return Risk: Heavily discounted items often have different return behaviors. Be clear if "Sale" or "Discounted" items are final sale.

Scenario: High Traffic but Low AOV

If you notice that shoppers are adding one low-cost item and then leaving, a flat 10% discount code might not be the best move. Instead, test a "Threshold Discount." For example, "Use code MORESAVES for $15 off orders over $75." This forces the customer to evaluate more of your catalog to "earn" the discount, effectively raising your Average Order Value while protecting the margins on smaller orders.

Moving Beyond Codes: The Power of Bundling with Intention

Manual discount codes are excellent for marketing campaigns, but they rely on the customer remembering to type in a string of text. In the world of eCommerce, every extra step is a potential point of abandonment. This is where bundling becomes a superior strategy.

At MBC Bundles, we advocate for "Bundle with Intention." This means choosing a bundle type that matches the shopper's needs so the discount feels like a natural reward for a better shopping experience.

Types of Bundle Mechanics

  • Mix & Match: Allow customers to build their own sets (e.g., "Choose 3 flavors for 15% off"). This reduces choice overload by giving them a structured way to explore your products.
  • Quantity Breaks: Also known as volume discounts. "Buy 1 for $20, Buy 2 for $35." This is perfect for consumable goods or essentials.
  • Buy X Get Y (BOGO): Great for introducing new products. "Buy our best-selling coffee, get a free scoop."
  • Bundle Builder: A guided experience that leads the customer through a step-by-step process to create a complete kit or gift box.

By using an app like install MBC Bundles, these discounts are often calculated automatically or displayed clearly on the product page. This removes the "Do I have a code?" anxiety and replaces it with a "Look at the value I'm getting" realization.

Key Takeaway: A discount code is a "pull" tactic (the customer has to find it), while a bundle is a "push" tactic (the value is presented upfront). Both have their place, but bundles often result in higher AOV and better conversion rates.

Discount Stacking and Conflict Resolution

A common source of customer support tickets is the "Discount Conflict." This happens when a customer tries to use a 10% off code on an item that is already part of an "Automatic Discount" or a bundle.

Shopify has specific rules for how discounts combine. In your discount settings, you must explicitly check the boxes for Combinations if you want a code to work alongside other promotions.

Common Conflict Scenarios:

  • The "Double Dip": A customer tries to use a "New Subscriber" code on a "Clearance" item that is already 40% off. If your margins can't handle a 50% total discount, you must ensure your discount codes are set to exclude "Sale" collections.
  • Shipping Conflicts: If you offer "Free Shipping over $100" as an automatic setting, and a customer uses a discount code that drops their total from $105 down to $95, they might suddenly see a shipping charge. This often leads to cart abandonment.

To prevent these surprises, always test your discount logic from start to finish. Go to your store, add items to the cart, apply the code, and see exactly what the final total looks like.

Caution: Always review your "Discount Combinations" settings. If you accidentally allow stacking, you could end up selling products at a loss during peak sales periods.

Mobile UX: Where Discounts Live or Die

Over 70% of eCommerce traffic now happens on mobile devices. If your "Add Discount Code" box is buried at the very bottom of a long checkout page, or if the "Apply" button is too small to tap, your conversion rate will suffer.

When adding a discount code to Shopify, consider the mobile path:

  1. The Cart Page: Should the discount be applied here? Some themes allow for a "Discount Code" field in the drawer cart. This can reduce "price shock" before the customer even hits the checkout button.
  2. Post-Purchase Offers: Consider offering a discount code after the purchase on the Thank You page. This doesn't help the current sale, but it significantly improves the "Second Purchase Rate."
  3. Visual Clarity: If a discount is applied, ensure the "Original Price" is struck through and the "New Price" is highlighted in a contrasting color (like red or green). This reinforces the "deal" the customer is receiving.

Performance and Measurement: How to Know if it’s Working

You shouldn't just "set and forget" your discount codes. Use Shopify’s built-in reporting to track performance. Navigate to Analytics > Reports and look for the Sales by discount report.

Key metrics to monitor:

  • Usage Count: How many times was the code used?
  • Gross Sales vs. Net Sales: How much revenue did the code generate, and how much did it cost you in discounts?
  • Average Order Value (AOV): Compare the AOV of orders with the discount code to orders without it. If the discounted orders have a lower AOV, your discount might be "cannibalizing" full-price sales without encouraging extra spending.
  • Conversion Rate: Does the presence of a discount code (e.g., promoted via a header bar) actually increase the percentage of visitors who buy?

Reassess and Refine

We recommend changing only one thing at a time. If you launch a "Buy 2 Get 1 Free" bundle and a "10% off everything" code at the same time, you won't know which one drove the results. Test one strategy for two weeks, measure the impact on your margins and AOV, and then iterate.

When to Bring in Help

While Shopify makes the basics easy, eCommerce can become complex quickly. There are times when you should step back and consult a professional.

Theme and Performance Issues

If you find that adding discount fields or complex bundling logic is slowing down your site or causing "flickering" (where prices change suddenly after the page loads), you may have a theme conflict. In these cases, it’s best to test changes on a duplicate theme first. If the issues persist, reach out to Shopify Support and your payment provider immediately. It’s also wise to review your admin access settings to ensure only trusted team members can create high-value codes.

Payments and Security

If you notice a sudden spike in discount code usage from suspicious email addresses, or if you see multiple high-value orders using "leaked" codes, you may be facing a fraud risk. Contact Shopify Support and your payment provider immediately. It’s also wise to review your admin access settings to ensure only trusted team members can create high-value codes.

Legal and Compliance

Laws regarding pricing transparency (like the Omnibus Directive in the EU) are becoming stricter. You cannot artificially inflate a price just to "discount" it later. If you are running large-scale international promotions, consult with a legal professional or compliance specialist to ensure your "Original Price" and "Sale Price" displays meet local consumer protection laws.

Conclusion

Adding a discount code to your Shopify store is a simple technical task that carries significant strategic weight. When done with intention, discounts are the "grease" that helps the gears of your commerce engine turn more smoothly. They reduce friction, reward your best customers, and help you manage your inventory effectively.

Remember the phased journey:

  • Foundations First: Ensure your store is fast, trustworthy, and clear before you start slashing prices.
  • Clarify the Goal: Know if you are trying to acquire customers, raise AOV, or clear stock.
  • Margin & Operations Check: Calculate the real cost of every percentage point you give away.
  • Bundle with Intention: Use automated bundling tools to provide value without requiring the customer to do the heavy lifting.
  • Reassess: Use data to see what works and don't be afraid to kill a promotion that is hurting your bottom line.

"A successful discount strategy isn't about having the lowest price in the market; it's about providing the highest perceived value to the right customer at the right time."

At MBC Bundles, we are committed to helping Shopify merchants grow sustainably. Discounts and bundles are powerful tools, but they work best when they are part of a thoughtful, long-term merchandising plan. Start simple, track your results, and always keep the customer experience at the center of your decisions.

FAQ

How do I make a discount code apply automatically in Shopify?

While this article focuses on manual codes that customers type in, you can also create "Automatic discounts" in the same Discounts section of the Shopify admin. Automatic discounts apply as soon as the cart meets your predefined criteria (like a minimum spend). Note that you can only have one active automatic discount at a time per store, and they cannot be combined with manual discount codes unless specifically configured in the combinations settings.

Why is my Shopify discount code not working at checkout?

The most common reasons include: the customer hasn't met the minimum spend or quantity requirements, the items in the cart are not part of the specific collection the code applies to, or the code has expired. Additionally, if the customer is already using another discount that isn't set to "combine," the second code will be rejected. Always test your codes in an "Incognito" browser window to see exactly what the customer sees.

Can I limit a discount code to only new customers?

Yes. When creating or editing a discount code in Shopify, scroll down to the "Customer eligibility" section. You can select "Specific customer segments" and then choose "Customers who haven't purchased yet." This is a highly effective way to offer a "First Order" incentive without giving a discount to your loyal, returning customers who are already willing to pay full price.

Does adding many discount codes slow down my Shopify store?

Standard Shopify discount codes are handled on the server side (at the checkout stage), so having thousands of codes in your admin will not slow down your site's initial load time. However, if you use third-party apps that inject heavy scripts onto your product pages to display "You could save $X with this code," that can impact performance. Always use "Built for Shopify" apps and monitor your site speed using tools like PageSpeed Insights after installing new promotional tools.