How to Set Up a Discount Code on Shopify for Growth

Learn how to set up discount code on Shopify with our step-by-step guide. Boost AOV and conversions using intentional discounting and advanced bundle strategies.

13 min
How to Set Up a Discount Code on Shopify for Growth

Table of Contents

  1. Introduction
  2. The Foundation: Before You Create Your First Code
  3. How to Set Up a Discount Code on Shopify: Native Steps
  4. Clarifying Your "Why": Choosing the Right Discount Strategy
  5. Understanding Margin and Operational Checks
  6. Moving Beyond Simple Codes: The Power of Bundling
  7. Performance and Measurement: Tracking What Matters
  8. When to Bring in Professional Help
  9. Summary: The Responsible Journey to Discounting
  10. FAQ

Introduction

Getting your first few sales on Shopify is a milestone, but the real challenge for growing DTC brands is building a repeatable system that increases customer lifetime value and average order value (AOV). You have likely spent months refining your product, perfecting your brand voice, and driving traffic to your store. However, if your visitors are browsing without buying, or only buying a single low-margin item and never returning, your growth will eventually stall.

Discount codes are often the first lever Shopify merchants pull to solve these issues. Whether it is a welcome offer for new subscribers, a seasonal clearance event, or a Buy X, Get Y bundle to move inventory, the "how" of setting up the code is just as important as the "why" behind the strategy. For new founders and high-SKU stores alike, understanding the technical steps to create these offers is only half the battle. The other half is ensuring those discounts don't erode your margins or clutter your user experience.

In this guide, we will walk through exactly how to set up a discount code on Shopify using native tools, while also exploring when to transition into more advanced bundling strategies. We will approach this through our "Bundle with Intention" framework: starting with strong foundations, clarifying your goals, checking your margins, choosing the right offer, and constantly reassessing your data. Our goal at MBC Bundles is to help you move beyond reactive discounting and toward intentional merchandising that builds trust with your shoppers.

The Foundation: Before You Create Your First Code

Before navigating to the "Discounts" tab in your Shopify admin, it is vital to remember that a discount cannot fix a broken shopping experience. We believe in a foundations-first approach. If your product pages are slow, your shipping policy is hidden, or your mobile layout is clunky, a 20% off code will not be the "silver bullet" for your conversion rate.

Before setting up your code, audit the following:

  • Site Speed: Ensure your theme is optimized so shoppers don't bounce before the discount pop-up even loads.
  • Trust Signals: Clear return policies, reviews, and secure payment icons should be visible to reduce friction.
  • Mobile UX: Over 70% of Shopify traffic often comes from mobile devices. Ensure your discount entry field and any promotional banners are easy to read and interact with on a small screen.

Key Takeaway: Discounts are a supportive tool, not a replacement for product-market fit or a clean user experience. Use them to enhance a solid foundation, not to patch a leaky funnel.

How to Set Up a Discount Code on Shopify: Native Steps

Shopify makes the technical process of creating a discount code relatively simple. There are two primary ways to offer savings: Discount Codes, which customers must manually enter at checkout, and Automatic Discounts, which apply once certain criteria are met in the cart.

Step 1: Navigate to the Discounts Section

Log in to your Shopify admin and click on "Discounts" in the left-hand navigation menu. This is your command center for all active, scheduled, and expired promotions.

Step 2: Choose Your Discount Type

Click the "Create discount" button. You will be presented with several options:

  • Amount off products: A fixed dollar amount or percentage off specific items or collections.
  • Amount off order: A discount applied to the entire subtotal of the cart.
  • Buy X Get Y (BXGY): A "BOGO" style offer where buying a certain quantity of one item triggers a discount on another.
  • Free shipping: Removing the shipping cost based on a minimum spend or specific countries.

Step 3: Configure the Code and Value

If you select "Discount code," you will need to give it a name (e.g., WELCOME10).

  • Percentage: Best for higher-priced items where "20% off" sounds more significant than a dollar amount.
  • Fixed amount: Best for lower-priced items where "$10 off" feels more tangible than "5% off."

Step 4: Set Requirements and Eligibility

This is where you "Bundle with Intention." You can set a Minimum Purchase Requirement, such as a minimum dollar amount (e.g., "Spend $50, get $10 off") or a minimum quantity of items.

You can also restrict the code to specific Customer Segments. For example, you might create a code that only works for first-time customers or your most loyal "VIP" segment.

Step 5: Define Combinations and Active Dates

Shopify allows you to decide if this discount can "stack" or combine with other offers. This is a critical step for protecting your margins. You can choose whether your new code can be used alongside other product discounts, order discounts, or free shipping offers. Finally, set your start and end dates.

What to do next:

  • Test the code yourself by adding items to your cart and reaching the checkout page.
  • Confirm the code applies to the correct products.
  • Ensure the "Compare at" prices on your site don't conflict with the new discount logic.

Clarifying Your "Why": Choosing the Right Discount Strategy

Setting up a code is easy; setting up the right code requires strategy. At MBC Bundles, we encourage merchants to identify their primary goal before launching a promotion.

If Your Goal is to Increase AOV (Average Order Value)

AOV is the average dollar amount a customer spends when they place an order. If your AOV is currently equal to the price of your cheapest product, you are likely leaving money on the table.

  • The Strategy: Use a "Spend X, Get Y" threshold.
  • The Scenario: If your current AOV is $40, set a discount code for 15% off that only activates at $60. This encourages the shopper to add one more item to their cart to "unlock" the savings.

If Your Goal is to Improve Conversion Rates

Conversion rate is the percentage of visitors who complete a purchase. If your traffic is high but your sales are low, visitors might need a small nudge to overcome "price hesitation."

  • The Strategy: A simple, low-barrier welcome code.
  • The Scenario: Offer a flat 10% off for email signups. This reduces the risk for a first-time buyer and allows you to build an email list for future marketing.

If Your Goal is to Move Excess Inventory

Sometimes you have stock that isn't moving, which ties up your capital.

  • The Strategy: Use a "Buy X Get Y" (BOGO) offer or a deep discount on a specific collection.
  • The Scenario: If you have an overstock of "Product A," create a code where buying any "Product B" gives them "Product A" at 50% off. This clears your shelves while still maintaining some margin on the primary purchase.

Understanding Margin and Operational Checks

Before you blast your new discount code to your email list, you must perform a margin check. A 20% discount doesn't just take 20% off your top-line revenue; it takes a much larger bite out of your actual profit.

The Profitability Audit

If a product costs you $20 to make and you sell it for $50, your gross profit is $30. If you offer a 20% discount ($10), your profit drops to $20. Now, factor in shipping costs, transaction fees, and advertising costs. If those total $15, you are only making $5 in actual profit. One return or customer support issue could turn that sale into a net loss.

Inventory and Fulfillment Complexity

When you set up a discount code—especially a "Buy X Get Y" or a bundle-style offer—you increase the complexity of your fulfillment.

  • Inventory Accuracy: Ensure your Shopify inventory counts are 100% accurate before launching. A successful promotion that results in overselling and backorders will hurt your brand trust.
  • Shipping Weights: If your discount encourages people to buy three items instead of one, ensure your shipping rates are set up to handle the increased weight.

Discount Stacking and Conflicts

"Discount stacking" refers to when a customer tries to use multiple offers at once. For example, they might try to use a 10% welcome code on top of an automatic "Buy 2 Get 1 Free" offer.

  • Shopify Realities: Native Shopify settings now allow for more flexible combinations, but it is your responsibility to check the boxes for "Product discounts," "Order discounts," or "Shipping discounts" in the "Combines with" section of the discount setup.
  • The Risk: If you don't configure this correctly, you might accidentally give away 40% or 50% of your price, which can be devastating for a small business.

Caution: Always test your discount combinations in a private/incognito browser window. Try to "break" the checkout by applying multiple codes to see how the system handles the logic.

Moving Beyond Simple Codes: The Power of Bundling

While native Shopify discount codes are a great starting point, they often lack the "merchandising" feel that high-growth stores need. This is where MBC Bundles on Shopify comes in. Bundling is the practice of grouping products together and offering them as a single unit, often at a discount.

Why Bundles Outperform Standalone Codes

A standalone discount code puts the work on the customer. They have to find the items, add them to the cart, and remember to enter a code. Bundles, however, simplify the decision-making process.

  • Reduced Choice Overload: Instead of choosing between 10 different accessories, a "Starter Kit" bundle chooses the best three for the customer.
  • Perceived Value: A bundle feels like a curated "deal" or a "solution" rather than just a price cut.
  • Visual Appeal: Bundles can be displayed on the Product Detail Page (PDP) with their own images and descriptions, making the value proposition immediate.

Common Bundle Mechanics

If you find that simple codes aren't moving the needle, consider these intentional bundle types:

  1. Quantity Breaks (Volume Discounts): "Buy 1 for $20, Buy 2 for $35, Buy 3 for $45." This is incredibly effective for consumable goods like supplements, skincare, or food.
  2. Mix & Match: Let the customer build their own bundle from a specific collection (e.g., "Pick any 3 T-shirts for $50"). This gives them a sense of control while still increasing your AOV.
  3. Buy X Get Y (BOGO): This can be a "Free Gift with Purchase" or a "Buy One Get One 50% Off." It is excellent for clearing seasonal stock or introducing customers to a new product line.
  4. Bundle Builders: A more advanced, step-by-step experience where shoppers are guided through a "Build Your Own Box" journey.

Performance and Measurement: Tracking What Matters

Once your discount code or bundle is live, your job is far from over. You must track its performance to ensure it is actually helping your business grow. We recommend tracking these metrics in plain English:

  • Average Order Value (AOV): Did the discount encourage people to spend more than they usually do?
  • Conversion Rate: Did the offer actually convince "window shoppers" to buy?
  • Attach Rate: For specific product discounts, what percentage of customers added the discounted item to their cart?
  • Revenue Per Visitor (RPV): This is perhaps the most important metric. It combines conversion rate and AOV to show the total value you are getting from every person who lands on your site.
  • Discount Recovery Rate: If you sent the code to people who abandoned their carts, how many actually came back and finished the purchase?

The "One Change at a Time" Rule

When testing discounts, avoid changing multiple things at once. If you change your product price, launch a new discount code, and update your Facebook ads all on the same day, you won't know which one caused the change in performance. Launch your discount, wait 7–14 days (depending on your traffic volume), analyze the data, and then iterate.

Segmentation Matters

Don't assume one discount fits all. A returning customer who has already bought from you three times doesn't need a "10% off" nudge as much as a first-time visitor does. Consider using different codes for different traffic sources (e.g., one for Instagram, one for your email list, and one for your "VIP" customers) to see which audience responds best to which offer.

When to Bring in Professional Help

As you scale, the technical and legal complexities of discounting can grow. It is important to know when to step back and consult the Help Center.

Theme and Performance Issues

If you are using a third-party app to create complex bundles or "frequently bought together" sections, and you notice your site slowing down or elements "flickering" as they load, it’s time to audit your code.

  • Action: Always test new apps or major theme edits on a duplicate version of your theme before publishing them to your live store. If you aren't comfortable with Liquid (Shopify’s templating language), work with a certified Shopify developer.

Payments and Security

If you notice a sudden spike in high-value orders using a specific discount code, monitor your "Fraud Analysis" in the Shopify admin.

  • Action: If you suspect a code is being abused or that "card testing" is happening on your site, contact Shopify Support and your payment provider immediately. Review your staff permissions to ensure only authorized users can create or edit discounts.

Legal and Compliance

Different regions have strict laws regarding "sales" and "discounts." For example, some jurisdictions require you to have sold an item at its "original" price for a certain amount of time before you can claim it is "on sale."

  • Action: If you are selling internationally (Shopify Markets), consult with a legal professional or a tax specialist to ensure your pricing transparency and discount advertisements comply with local consumer protection laws.

Summary: The Responsible Journey to Discounting

Setting up a discount code on Shopify is a powerful tool, but it should never be a "set it and forget it" task. By following a structured approach, you ensure that every dollar you give away in savings is an investment in your brand's future.

  1. Foundations First: Ensure your site is fast, mobile-friendly, and trustworthy before adding a discount.
  2. Clarify the Goal: Are you chasing higher AOV, better conversion, or inventory clearance? Let the goal dictate the code.
  3. Margin & Ops Check: Verify that you are still making a healthy profit and that your warehouse can handle the order volume.
  4. Bundle with Intention: Use native Shopify tools to start, but don't be afraid to move into quantity breaks or BXGY offers to create a better merchandising experience.
  5. Reassess and Refine: Use your Shopify analytics to track RPV and AOV. Change one thing at a time and listen to what the data—and your customers—are telling you.

Final Takeaway: A great discount strategy doesn't just lower prices; it increases the perceived value of your brand. When done with intention, it creates a "win-win" where the customer feels rewarded and the merchant sees sustainable, profitable growth.

FAQ

How do I stop customers from using two discount codes at once?

In your Shopify admin, when creating or editing a discount, look for the "Combinations" section. By default, Shopify discounts do not combine unless you specifically check the boxes for "Product discounts," "Order discounts," or "Shipping discounts." If you leave these boxes unchecked, the customer will only be able to use the single best discount for their cart.

What is the difference between a discount code and an automatic discount?

A discount code requires the customer to manually type a word (like SAVE20) into a box during checkout. An automatic discount applies as soon as the customer meets the criteria in their cart (like adding two items for a "Buy 2" deal). Automatic discounts generally have higher conversion rates because they reduce "friction," but discount codes can feel more "exclusive" for marketing purposes.

Why isn't my discount code showing up on the product page?

Native Shopify discount codes are typically applied at the checkout stage, meaning the price on the product page doesn't change. If you want the "sale" price to show up directly on the product page, you should use the "Compare at price" feature on the individual product settings. For more dynamic "Buy More, Save More" displays, you may need a bundling tool that integrates directly with your theme's product template.

Can I set a discount code to only work for new customers?

Yes. In the "Customer eligibility" section of the discount setup, you can select "Specific customer segments." Shopify has a built-in segment for "Customers who haven't purchased yet." By selecting this, the code will only be valid if the email address entered at checkout has no previous order history in your store.