How to Create a Discount Code in Shopify

Learn how to create a discount code in Shopify with our step-by-step guide. Boost AOV, protect margins, and master strategic discounting for your DTC brand.

13 min
How to Create a Discount Code in Shopify

Table of Contents

  1. Introduction
  2. Laying the Foundations for Effective Discounting
  3. Clarifying the "Why" Behind Your Discount
  4. How to Create a Discount Code in Shopify: Step-by-Step
  5. Understanding Margin and Operations
  6. Bundling with Intention: Moving Beyond Basic Codes
  7. The Mechanics of Shopify Discounts and Stacking
  8. Performance and Measurement
  9. Real-World Scenarios and Intentional Steps
  10. When to Bring in Professional Help
  11. Managing Discount Codes for the Long Term
  12. Summary and Final Checklist
  13. FAQ

Introduction

Finding the right balance between a healthy profit margin and an irresistible customer offer is the central challenge of any eCommerce store. For many merchants, the first step into promotional strategy is learning how to create a discount code in Shopify. While it seems like a simple administrative task, the way you structure these codes can dictate whether you are building a sustainable brand or simply training your customers to never pay full price.

At MBC Bundles, we see discount codes as one tool within a larger ecosystem of customer experience. This guide is written for Shopify founders and growing Direct-to-Consumer (DTC) brands who want to move beyond "random acts of discounting" and toward a strategic, intentional approach. Whether you are running a high-SKU catalog or a specialized boutique, understanding the mechanics of Shopify discounts is essential for managing inventory and increasing your Average Order Value (AOV).

In the following sections, we will walk through the technical steps of setting up codes, but more importantly, we will explore the Bundle with Intention framework. This means we prioritize foundations first: ensuring your product pages convert and your margins are protected before you ever hit the "save" button on a new promotion. Our goal is to help you use discounts to support your store's growth, not just to move units at any cost.

Laying the Foundations for Effective Discounting

Before you navigate to the "Discounts" tab in your Shopify admin, it is vital to ensure your store is ready to handle the traffic and conversions that a promotion can bring. A discount code is an accelerant; if your store’s foundation is shaky, a discount might only accelerate your losses.

First, audit your Product Detail Pages (PDPs). Are the images clear? Is the shipping and return policy transparent? If a shopper arrives at your site through a promotional email but finds a confusing layout or hidden shipping costs, even a 50% discount might not save the sale. High-trust signals—like reviews and clear contact information—are non-negotiable foundations.

Secondly, consider your mobile UX (User Experience). A significant portion of shoppers will enter your discount code on a mobile device. If your checkout process is clunky or the discount field is hidden, you will see high cart abandonment. At MBC Bundles, we always recommend testing your discount codes on a mobile device to ensure the path to purchase is frictionless.

Foundational Takeaway: A discount code cannot fix a poor shopping experience. Ensure your shipping rates are clear and your mobile site is fast before launching a major promotion.

Clarifying the "Why" Behind Your Discount

Why are you creating this code? Without a clear goal, it is impossible to measure success. Common objectives for Shopify merchants include:

  • Acquiring New Customers: Offering a "Welcome" discount to first-time shoppers in exchange for an email address.
  • Boosting Average Order Value (AOV): Creating a "Spend $100, Save $20" code to encourage larger carts.
  • Moving Stale Inventory: Discounting specific collections that have been sitting in the warehouse for too long.
  • Rewarding Loyalty: Sending exclusive codes to your top 10% of customers to increase lifetime value.
  • Reducing Abandoned Carts: Offering a one-time use code to shoppers who left items behind.

Once you identify the goal, you can choose the right discount type. If your goal is to move inventory, a "Buy X Get Y" (BOGO) offer is often more effective than a flat percentage off the whole store. If your goal is AOV, a "Quantity Break" or a threshold-based discount is the better choice.

How to Create a Discount Code in Shopify: Step-by-Step

Creating a code is straightforward, but the settings you choose will determine how the discount interacts with your inventory and checkout.

Step 1: Access the Discounts Menu

Log into your Shopify Admin. On the left-hand sidebar, click on Discounts. This is your command center for all promotional activity. Click the Create discount button in the top right corner.

Step 2: Choose Your Discount Type

Shopify currently offers four primary native discount types:

  1. Amount off products: Reduces the price of specific items or collections.
  2. Amount off order: Reduces the total price of the entire cart.
  3. Buy X Get Y: Great for BOGO offers or "buy a pair of shoes, get socks free."
  4. Free shipping: Removes shipping costs based on specific criteria.

Step 3: Define the Code and Value

You can manually enter a code name (e.g., SAVE20) or click Generate code for a random string. We recommend using human-readable codes that are easy to remember. Under Value, decide between a Percentage (e.g., 15% off) or a Fixed Amount (e.g., $10 off).

Step 4: Set Minimum Requirements

This is a critical step for protecting your margins. You can set:

  • Minimum purchase amount ($): The discount only applies if the cart reaches a certain dollar value.
  • Minimum quantity of items: The discount only applies if the shopper buys a certain number of products.

Step 5: Configure Customer Eligibility and Usage Limits

Decide who can use the code. You can limit it to All customers, Specific customer segments (like "returning customers"), or Specific customers.

Usage limits prevent the code from being abused. You can limit the total number of times a code can be used store-wide or limit it to one use per customer. The latter is highly recommended for "Welcome" offers to prevent the same person from using the code multiple times with different email addresses.

Step 6: Active Dates

Set a start date and, if applicable, an end date. Setting an end date creates a natural sense of urgency for your customers, which can help improve conversion rates during the final hours of a sale.

Next Steps for Setup:

  • Test the code in a private/incognito browser tab before announcing it.
  • Verify that the code does not apply to products you want to exclude (like high-margin items or gift cards).
  • Create a simple graphic or banner for your site to announce the code.

Understanding Margin and Operations

A common mistake for growing brands is focusing on revenue while ignoring margins. Before you launch a "25% off everything" sale, you must account for your Cost of Goods Sold (COGS), shipping fees, and credit card processing fees.

If you are selling a product for $100 that costs you $40 to make and $15 to ship, your profit is $45. A 25% discount ($25) brings your profit down to $20. If that customer then returns the item, your shipping and processing losses might put you in the negative.

Operations are also affected by discounts. High-volume sales can strain your fulfillment team. If your discount code is successful, do you have enough stock? Will your shipping partner be able to handle a 300% increase in daily packages?

Margin Caution: Always calculate your "break-even" point for a discount. If your margin is thin, consider a "Free Gift with Purchase" instead of a percentage discount. This often has a higher perceived value for the customer while costing you less.

Bundling with Intention: Moving Beyond Basic Codes

While a simple discount code is a great start, the real power of Shopify comes from MBC Bundles. Bundling is the process of grouping multiple products together and offering them as a single unit, often at a discounted price. This is where MBC Bundles specializes.

Instead of just offering 10% off a single item, you might offer a "Starter Kit" bundle. This helps the customer by providing a complete solution and helps the merchant by increasing the number of items sold per transaction.

What Bundling Tools Can Do

  • Increase Perceived Value: A curated bundle feels like a "deal" even if the discount is modest.
  • Reduce Choice Overload: By grouping compatible items, you save the customer from having to hunt through your catalog.
  • Support Gifting: Pre-made bundles make for excellent gifts, simplifying the decision for the shopper.
  • Move Inventory: You can pair a high-demand item with a slower-moving item to balance your stock levels.

What Bundling Tools Cannot Do

  • Fix Poor Product-Market Fit: If no one wants your product at full price, they likely won't want it in a bundle either.
  • Replace Quality Traffic: Bundles help convert the people who are already on your site; they don't magically bring new people to your store.
  • Fix Unclear Policies: Customers will still abandon their carts if your return policy is confusing, regardless of the bundle's value.

The Mechanics of Shopify Discounts and Stacking

One of the most frequent questions we receive is: "Can my customers use two discount codes at once?"

In the past, Shopify only allowed one discount code per order. However, Shopify has introduced Discount Combinations. When you create a discount code in Shopify, you can now check boxes to allow it to combine with:

  • Product discounts
  • Order discounts
  • Shipping discounts

This is a double-edged sword. While it provides flexibility, it can lead to "discount stacking," where a customer uses a 20% off product code plus a 15% off welcome code plus free shipping. This can quickly erase your profit margins.

How to Prevent Surprises: When setting up your codes, be very intentional about the "Combinations" section. If you are running a major site-wide sale, you may want to disable all other codes for that duration to prevent stacking. Always perform an end-to-end test—from adding items to the cart to reaching the final payment screen—to see exactly how the discounts behave together.

Performance and Measurement

You cannot improve what you do not measure. Once your discount code is live, you should monitor a few key metrics in your Shopify Analytics:

  1. AOV (Average Order Value): Total Revenue divided by the number of orders. Did your discount actually make people spend more, or did it just lower the revenue on sales you would have made anyway?
  2. Conversion Rate: The percentage of visitors who make a purchase. A successful discount should see a noticeable lift here.
  3. Attach Rate: For bundles or BOGO offers, this is the frequency with which the "bonus" item is added to the cart.
  4. Revenue per Visitor (RPV): This is a holistic metric that combines conversion and AOV. It tells you the true value of every person who lands on your store.

We recommend testing one change at a time. If you change your shipping rates, launch a new bundle, and start a 20% off discount code all in the same week, you won't know which one actually moved the needle.

Real-World Scenarios and Intentional Steps

To help you decide which path to take, consider these common merchant scenarios:

Scenario A: High Traffic, Low AOV

  • Observation: You have plenty of visitors, but most only buy one inexpensive item and leave.
  • Action: Instead of a general code, try a Quantity Break. For example, "Buy 2, Save 10%; Buy 3, Save 15%." This encourages the "single-item" shopper to add just one more thing to their cart.
  • Why: It protects the margin on small orders while incentivizing larger ones.

Scenario B: High Cart Abandonment

  • Observation: Shoppers are reaching the final checkout step but dropping off when they see shipping costs.
  • Action: Create a Free Shipping discount code with a minimum spend threshold that is slightly higher than your current AOV.
  • Why: It removes the primary friction point (shipping costs) while simultaneously pushing the customer to spend a little more to qualify.

Scenario C: Too Many SKUs and Confused Customers

  • Observation: You sell many variations of similar products (e.g., skincare routines), and customers seem overwhelmed.
  • Action: Use a Bundle Builder or a Mix & Match offer. Let them choose three items for a fixed price.
  • Why: This simplifies the decision-making process and guides them toward a "full solution" rather than a single product.

Takeaway: If you’re discounting heavily just to push sales, stop and confirm your returns risk. High-discount items often have higher return rates, which can double your shipping costs and administrative burden.

When to Bring in Professional Help

While Shopify is designed to be user-friendly, there are times when you should step back and consult an expert.

  • Theme and Code Issues: If your discount codes or bundle widgets are not appearing correctly, or if your site feels slow after adding an app, do not try to "hack" your theme code unless you are an experienced developer. Test changes on a duplicate theme first. If problems persist, hire a Shopify developer or reach out to the app's support team.
  • Legal and Compliance: Pricing transparency laws vary by country and state. If you are unsure about "Compare at" pricing or how to display discounts to comply with local consumer laws (like the Omnibus Directive in the EU), consult with a legal professional.
  • Payments and Security: If you notice a sudden influx of orders using the same discount code and shipping to suspicious addresses, you may be facing a fraud issue. Contact Shopify Support and your payment provider (like Shopify Payments or PayPal) immediately to review your account security.

Managing Discount Codes for the Long Term

Discounting is not a "set it and forget it" strategy. Successful merchants treat their discount codes as a revolving part of their marketing calendar.

Keep Your Codes Clean: Periodically review your list of active discounts. Delete old codes that are no longer being promoted. This prevents "coupon leakage," where customers find old codes on browser extensions or coupon-aggregator sites.

Segment Your Offers: As you grow, move away from "one size fits all" discounts. Use Shopify's customer segments to send a 20% "We Miss You" code to someone who hasn't purchased in six months, while offering a "First Access" code to your loyal repeat buyers without a deep discount. This preserves your brand equity and ensures you aren't giving away margin to people who were going to buy anyway.

Summary and Final Checklist

Learning how to create a discount code in Shopify is the beginning of a larger journey toward sophisticated merchandising. By following the "Bundle with Intention" approach, you ensure that every discount serves a specific purpose and supports your bottom line.

Key Takeaways:

  • Foundations First: Ensure your site is mobile-friendly and your product pages are clear before driving traffic with a discount.
  • Goal Clarity: Know if you are trying to acquire new customers, move old stock, or boost AOV.
  • Margin Check: Always calculate the total cost of a discount, including shipping and returns.
  • Start Simple: Use native Shopify codes for basic offers; move to bundling apps like MBC Bundles when you need more complex logic like Mix & Match or BOGO.
  • Test and Iterate: Change one variable at a time and measure the impact on your Revenue per Visitor.

The Responsible Merchant's Motto: A discount is a tool to build a relationship, not just a way to buy a transaction. Use them sparingly and strategically.

If you are ready to take your discounting strategy to the next level, we invite you to explore the flexibility of MBC Bundles. Whether you want to implement quantity breaks, curated sets, or a full "build-your-own" experience, our goal is to help you grow your store sustainably and thoughtfully.

FAQ

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

To make a discount apply without the customer entering a code, choose Automatic discount instead of Discount code when you first click "Create discount." Note that customers can generally only use one automatic discount at a time, and automatic discounts take precedence over manual codes in many scenarios. Always test the checkout flow to ensure the correct discount is being applied.

Can I limit a discount code to specific products or collections?

Yes. During the setup process in the Shopify admin, look for the Applies to section. You can select "Specific collections" or "Specific products." This is highly recommended for protecting your margins on high-cost items or preventing discounts on new arrivals that are already selling well at full price.

Why isn't my Shopify discount code working at checkout?

The most common reasons are: the code has expired, the cart doesn't meet the minimum purchase requirements, or the code is being used for a product that was excluded in the settings. Additionally, check for discount conflicts. If you have an automatic discount running, it might be blocking the manual code. If you are using a third-party app for bundles, ensure the app's settings are synchronized with Shopify's native discount engine.

Is it better to offer a percentage off or a fixed dollar amount?

This depends on the price of your products. Generally, the "Rule of 100" applies: if an item costs less than $100, a percentage discount (e.g., 20% off) usually sounds more appealing. If an item costs more than $100, a fixed dollar amount (e.g., $25 off) often feels like a larger, more tangible saving to the customer. Always consider the "perceived value" from the shopper's perspective.