How To Create Discount Codes On Shopify Step By Step Guide

You’re ready to run your first sale, launch an email campaign, or reward your loyal customers. The excitement is real—until you log into your Shopify admin and the search begins. Where exactly do you go to make that magic happen? How do you set it up so it works perfectly at checkout? If you’re staring at the dashboard wondering how to create a discount code on Shopify, you’re in the right place.

This guide will walk you through every step, from the basic “buy one get one” offer to complex automatic discounts for specific customer segments. We’ll cover the different types of codes, the settings that trip people up, and how to ensure your promotion runs smoothly from start to finish.

Understanding Shopify’s Discount Landscape

Before you click “Create discount,” it’s helpful to know what tools are in your toolbox. Shopify offers two main avenues for promotions: discount codes and automatic discounts.

Discount codes are the classic method. You create a unique word or phrase, like SUMMER20 or WELCOME10, and your customers enter it at checkout to receive the savings. You have full control over distributing these codes—share them in an email, on social media, or with a specific group of VIP customers.

Automatic discounts, on the other hand, apply without a code. You set the rules, and Shopify does the work. For example, you could set a “Buy 2, Get 15% Off” promotion that automatically activates when a customer adds two qualifying items to their cart. This is fantastic for site-wide sales or promotions you want to be frictionless for the customer.

Today, we’re focusing on the versatile and widely used discount code. This is your go-to for most promotional campaigns.

Step By Step: Creating Your First Discount Code

Log into your Shopify admin panel. In the left-hand sidebar, you’ll find the “Discounts” option. Click it. You’ll land on the Discounts page, which shows any existing promotions. In the top right, click the blue “Create discount” button.

Choosing Your Discount Type

The first and most important choice is the discount type. This defines how the savings are calculated. Let’s break down each option.

A percentage discount reduces the order total by a set percentage. Enter “20” to give 20% off. This is great for site-wide sales or general promotions. You can optionally set a minimum purchase requirement (like “20% off orders over $50”) or a maximum discount amount to cap your loss on very large orders.

A fixed amount discount subtracts a specific dollar (or other currency) amount from the order. Enter “15” to take $15 off the total. This works well for “$10 off your first order” type promotions. Again, you can set minimum purchase requirements.

Free shipping does exactly what it says. It provides a discount equal to the cost of shipping at checkout. You can make this code apply to all shipping methods or target a specific one. This is a powerful tool to combat cart abandonment.

Finally, the Buy X Get Y discount is for “Buy One Get One” (BOGO) or “Buy 2 Get 1 Free” promotions. You define what quantity the customer must buy and what item they get for free or at a discount. This type requires a bit more configuration but is excellent for moving specific inventory.

Configuring The Basic Details

Once you select your type, you’ll fill in the core details. Give your discount a clear title for your own reference, like “June Newsletter Campaign” or “Holiday Sale 2024.” This title is only visible to you in the admin.

how to create a discount code on shopify

Next, create the discount code itself. This is what customers will type in. Keep it simple, relevant, and easy to spell. “FLASHSALE” is better than “FL4SH_S4L3_2024.” You can generate a random code if you prefer secrecy for a private offer.

Set the active dates for your promotion. You can start it immediately or schedule it for the future. Always set an end date unless it’s a permanent code like “WELCOME.” Forgetting to set an end date is a common mistake that can lead to an unintended perpetual sale.

Fine Tuning With Advanced Options

Scrolling down reveals the powerful “Advanced options” section. This is where you move from a basic site-wide code to a targeted marketing tool.

Under “Applies to,” you can limit the discount to specific products, collections, or variants. Running a sale on just your “T-Shirt” collection? Select it here. Want to exclude sale items from an extra 20% off code? Choose “Specific products” and manually select everything except your sale collection.

The “Customer eligibility” section lets you target who can use the code. The default is “Everyone.” You can change it to “Specific customers” and select individuals from your customer list, perfect for a VIP thank-you offer. The “New customers only” option is incredibly effective for acquisition campaigns.

Don’t overlook “Usage limits.” You can set a total number of times the code can be used overall and a limit of one use per customer. The “per customer” limit is crucial for preventing a single person from sharing a code endlessly or making multiple separate orders to exploit the offer.

Finally, set a minimum purchase requirement if needed. This can be a minimum subtotal (the cart value before tax and shipping) or a minimum quantity of items. Use this to increase average order value.

Testing Your Discount Code Before Launch

Never, ever launch a discount code without testing it. A misconfigured code can cost you money or frustrate customers. Here’s a safe way to test.

First, use the “Preview” function on the discount creation page. Shopify will show a summary of how the discount will apply based on your settings. Double-check everything, especially the dates and usage limits.

For a real-world test, place a test order. Add the exact products your discount should apply to (and some it shouldn’t) to your cart. Go to checkout as a guest or with a test customer account. Enter your new discount code and verify that the discount amount calculated is correct.

Check that any minimum requirements work—try with a cart that’s below the minimum to ensure the code is correctly rejected. Complete the purchase using a Shopify-provided test payment gateway (like Bogus Gateway) so no real money changes hands. Then, immediately cancel the test order from your admin to keep your records clean.

Promoting And Managing Your Active Codes

Your code is live. Now, get it in front of people. Shopify provides a direct link for each discount code. On the Discounts page, click on your active code. Near the top, you’ll see a “Discount URL.” This link will automatically apply the code at checkout for any customer who clicks it. Use this in your email marketing, social media bios, and ads.

how to create a discount code on shopify

You can also show a discount code box directly on your cart page. This is enabled by default in most themes and reminds customers they can enter a code. For automatic discounts, the cart page will typically display a message like “Spend $50 more for free shipping!” which can help drive conversions.

Keep an eye on the “Usage” column on your main Discounts page. It shows how many times each code has been used. This is your key performance indicator for the promotion. If a code isn’t being used, revisit your marketing channels. If it’s being used too quickly and you’re at risk of exceeding your budget, you can pause it at any time.

Troubleshooting Common Discount Code Issues

Even with careful setup, things can go wrong. Let’s solve the most frequent problems.

If a customer reports that a code is “invalid” or “not applicable,” check these settings first. Is the code active? Did the start date pass and the end date not arrive yet? Are they logged in with an account that is not in your “Specific customers” list if you set that limitation? Is their cart meeting all the minimum requirements (subtotal, product type, quantity)?

Another common hiccup involves combining codes. By default, only one discount code can be used per order. Automatic discounts and discount codes cannot be combined unless you use a third‑party app. If you run a site‑wide automatic sale, any discount codes will typically be disabled during that period. Plan your promotional calendar to avoid overlap.

For percentage or fixed amount discounts applied to specific items, ensure the discount is calculating on the correct price. If you have a product variant that’s already on sale, the discount code will apply to the current, sale price unless you’ve structured the discount to apply to the original compare‑at price, which requires careful setup.

Strategic Tips For Maximizing Impact

Think beyond a simple percentage off. Use discount codes strategically. Create a unique code for each marketing channel (e.g., “INSTA20” for Instagram, “YT15” for YouTube). This lets you track which channels are driving the most sales and highest value customers.

Consider the psychology of the code. “FREESHIP” creates a different perception than “SAVE5.” Free shipping thresholds are notoriously effective at increasing order size. A “Buy One Get One 50% Off” often moves more units than a flat “25% Off Everything” sale.

Use the “New customers only” filter aggressively for acquisition. Use the “Specific customers” filter for loyalty rewards and win‑back campaigns. The goal is to use discounts not just as a blunt instrument for revenue, but as a surgical tool for customer relationship management.

Your Next Steps For Shopify Promotion Success

Now you know exactly how to create a discount code on Shopify. The process is straightforward once you understand the dashboard and the purpose of each setting. Start with a simple percentage‑off code for a weekend sale to get comfortable. Use the preview and test order functions religiously.

As you grow, explore apps from the Shopify App Store that extend discount functionality—like loyalty programs that generate unique codes for members, or tools that allow limited‑time flash sales with countdown timers. But master the built‑in system first. It’s powerful enough for most promotional needs.

Log into your Shopify admin, navigate to Discounts, and click “Create discount.” Your next revenue‑boosting campaign is a few clicks away.

Leave a Comment

close