craftberry
Contact Us
Shopify Discount Codes and Free Shipping Offers: How to Set Them Up

Shopify Discount Codes and Free Shipping Offers: How to Set Them Up

Learn how to create Shopify discount codes and free shipping offers, choose a threshold, combine discounts safely, and protect your margin.

Preslav Nikov

Written by:

Founder / CEO

Published on: November 26, 2026

Ilina Nikova

Reviewed by:

Ilina Nikova

Marketing Lead

Reviewed for accuracy by Ilina Nikova

Last updated: November 26, 2026

Shopify discount codes and free shipping offers are two of the fastest ways to lift sales, but they only pay off when the numbers work.

You create both from the Discounts page in your Shopify admin: pick a discount type, choose whether customers enter a code or get the offer automatically, set the conditions, and save.

The harder part is deciding which offer to run and what it will cost you once shipping, margin, and fulfilment are counted.

This guide explains the types of Shopify discounts, how to create a discount code step by step, how to set up a free shipping offer and choose a sensible threshold, how to combine offers without losing money, and what happens after the order arrives.

It also covers the mistakes that turn a good promotion into a loss.

Types of Shopify discounts

Shopify offers four kinds of discounts, and each one fits a different goal. Pick the type first, then decide how customers get it.

Discount typeWhat it doesBest for
Amount off productsTakes a percentage or fixed amount off selected products or collectionsSales, clearing stock, promoting one range
Buy X get YGives a discount or free item when customers buy specific productsBundles, raising items per order
Amount off orderTakes a percentage or fixed amount off the whole orderWelcome offers, seasonal sales
Free shippingRemoves shipping charges, for all or selected countries and ratesLifting average order value, reducing cart abandonment

Discount codes vs automatic discounts

A discount code is a word or phrase customers type in at checkout, or that staff enter at the point of sale. Codes suit email campaigns, influencers, affiliates and loyalty rewards, because you can track which code was used and limit who has it.

An automatic discount applies at checkout with no code. Customers see the discount in their cart, so it suits store-wide sales and free shipping thresholds, where you want every eligible shopper to get the offer without hunting for a code.

A useful rule: use codes when you want to control or measure who gets the offer, and automatic discounts when you want everyone to get it.

Remember that discounts apply to the order subtotal before tax, and tax is calculated afterwards, so check how a discount affects the final total in a test order.

How to create a Shopify discount code, step by step

The steps are almost the same for every discount type. You can follow Shopify's discount documentation for the exact screens.

  1. Open Discounts. In your Shopify admin, go to Discounts and click Create discount.
  2. Choose the type. Pick amount off products, buy X get Y, amount off order, or free shipping.
  3. Choose the method. Select Discount code and enter a code, or generate one. Keep codes short and easy to type, such as WELCOME10 or SPRING15.
  4. Set the value. Enter a percentage or a fixed amount, and choose what it applies to, such as specific products, collections, or the whole order.
  5. Add requirements. Set a minimum purchase amount or minimum quantity if you want to protect your margin.
  6. Choose who can use it. Open it to all customers, or limit it to specific customers, customer segments, or markets.
  7. Set usage limits. Usage is unlimited by default. Cap the total number of uses, or limit each customer to one use, especially for welcome and influencer codes.
  8. Choose combinations. Decide which other discount classes it can combine with, such as product, order, or shipping discounts.
  9. Set the active dates. Add a start date and an end date for time-limited promotions. With no end date, the discount never expires.
  10. Save and test. Add tags to keep your list organised, save, then place a test order to check the code works and the total is right.

For an automatic discount, follow the same process but choose Automatic discount as the method and give it a clear title, because customers see that title in their cart and at checkout.

Naming and tracking your codes

Use a separate code for each channel, such as one for your newsletter, one for each influencer and one for paid ads. That way the Discounts page shows exactly which campaign brought in orders, and you can end one code without touching the others.

Avoid putting the discount value in a code you plan to reuse, such as SAVE20, because you will want to change the amount later.

How to set up a free shipping offer on Shopify

Free shipping is one of the most effective offers because it removes a cost customers dislike seeing at checkout. It is also the offer most likely to cost you money if you set it up without checking your numbers.

The cost problem is well documented. Research from the Baymard Institute puts the average cart abandonment rate at about 70%, based on 50 studies, and 40% of shoppers who abandon for a reason other than browsing say extra costs such as shipping, tax, and fees were too high.

Showing a clear free shipping offer early removes one of the most common reasons to leave.

Create the free shipping discount

Go to Discounts, click Create discount, and choose Free shipping. Then work through these settings:

  • Method. Choose Automatic discount for a store-wide threshold, or Discount code for a campaign you want to control.
  • Countries. Apply it to all countries or only the ones you serve profitably. Free shipping to a far-away country can cost more than the whole order is worth.
  • Exclude shipping rates over an amount. Use this to stop expensive rates, such as express delivery, from being given away free.
  • Minimum purchase. Set a minimum order value or quantity. Only product prices count towards it: taxes and shipping never do.
  • Eligibility, usage limits and dates. Limit it to certain customers or markets if needed, cap the uses, and set when it starts and ends.

Choose a free shipping threshold that works

A threshold is the order value at which shipping becomes free. Set it slightly above your current average order value, so shoppers add one more item to qualify instead of everyone getting free shipping on small orders.

As an illustration, if your average order is $40, a threshold of $50 or $55 pushes customers to add a small item. If you set it at $20, you give away shipping on most orders and gain nothing.

Before you commit, work out three numbers: your average order value, your average shipping cost per order, and your gross margin. Free shipping only makes sense when the margin on the larger order covers the shipping you now pay for.

If your margins are thin, consider a flat shipping rate or free shipping only on a few products or one region.

Know your real shipping costs

A free shipping offer means you pay the carrier, so you need to know what that actually is, and carrier prices change. PluginHive's post on the USPS rate increase covers the 2027 price increase and what stores should know, which matters if you absorb shipping costs.

If you ship with several carriers, a Shopify multi-carrier shipping app can show live rates from each one, so you can see what a free-shipping order really costs and choose the cheapest option for each parcel.

If most of your parcels go with one carrier, the Shopify FedEx app shows FedEx rates, prints labels, and tracks shipments, so your free shipping threshold is based on the real FedEx price.

To see how shipping rates, labels, and tracking work in practice, watch PluginHive’s video on setting up UPS shipping in Shopify. The same process is similar for other supported carriers.

Combining discounts, setting limits and protecting your margin

Decide what can stack

Shopify lets you choose which discount classes can combine: product discounts, order discounts, and shipping discounts. A free shipping offer that also combines with a 20% order discount can leave you with a very thin or negative margin on small orders.

Start with the safest setup, where each offer stands alone, then allow one combination at a time and test it. One detail to remember: a minimum purchase for free shipping counts product prices after any combinable discount, so a deep discount can push an order below your threshold.

Put limits on every offer

Most discount problems come from offers with no limits. Before you publish a code, ask four questions:

  • Who can use it? Restrict welcome codes to new customers or a customer segment, and keep influencer codes to a specific audience.
  • How often? Limit each customer to one use, and set a total cap for flash sales.
  • For how long? Always set an end date for promotions, and deactivate old codes so they do not keep circulating on coupon sites.
  • On what? Exclude products with thin margins, and exclude expensive shipping rates from free shipping.

Check the margin before launch

Work out your profit per order after the discount and the shipping you now cover. If a $60 order has a 40% gross margin, you make $24 before costs.

A 15% discount takes $9 off the price, and a $7 shipping label takes another $7, leaving $8. That may be fine for winning a new customer, and not fine on every order.

Run the same sum for your typical order before you launch.

Plan for the sales spike

A good promotion drives more orders than usual, and a bad one can sell stock you do not have.

Check your stock before a campaign, hold back products that are almost sold out, and decide in advance what you will do if items run short, such as ending the code early or setting clear delivery dates for delayed orders.

That way a successful promotion does not turn into a stream of unhappy customers.

After the order: fulfilling discounted and free shipping orders

A promotion is only successful if the extra orders ship correctly and on time. During a sale, manual fulfilment becomes the bottleneck, and late or confusing deliveries lead to refunds and support emails.

Automating the steps after checkout helps: PluginHive's guide to Shopify order automation shows how to speed up processing.

For customer updates, a Shopify shipment tracking app sends shipping emails and gives customers a tracking page, so they check the status themselves instead of asking whether their free-shipping order has left.

Conclusion

Shopify discount codes and free shipping offers work best when they are specific, limited, and tested.

Choose the right discount type, use codes when you want control and automatic discounts when you want everyone to benefit, set a free shipping threshold above your average order, and always check the margin and stock before you launch.

Then make sure fulfilment can keep up, so the extra orders become happy customers.

Written by

Preslav Nikov

Preslav Nikov

Preslav Nikov is the Founder and CEO of craftberry, Shopify Premier agency. A developer turned enterprise strategist, he has guided 800+ successful digital storefront launches and migrations since 2015, driving over $450M in client sales. Recognized by Forbes 30 Under 30, his frameworks power global leaders like vivo, Shelly Group, Pepper, and Midi Health.

Blurred blue and peach gradient
Craftberry team memberCraftberry team memberCraftberry team member

Running promotions on Shopify?

We build and improve Shopify stores for brands that want a direct sales channel they own. Shopify Premier Partner, 800+ projects since 2015.

Contact us

Share this article

FAQs

We help brands grow through connected strategy, technology, creative, and marketing.

Contact us
Go to Discounts in your Shopify admin, click Create discount, choose a type, select Discount code as the method, set the value, requirements, and dates, then save.
Create a Free shipping discount, choose Automatic discount or a code, set the countries, and add a minimum purchase amount if you want a threshold.
Only if the discounts are set to combine. You choose which discount classes can stack when you create each discount.
Slightly above your average order value, and high enough that the margin on the larger order covers your shipping costs.

From the journal

View all