A Shopify free shipping bar is a short message that tells shoppers how close they are to free shipping, like “You’re $17.50 away from free shipping.” It sits in the cart, or as a line at the top of every page. It is a simple way to nudge shoppers to add one more item.
Most results for this topic are app listings, but you don’t need one. In this guide I show you how to add a Shopify free shipping bar with the settings and code your theme already has, in both of Shopify’s free themes, Dawn and Horizon. I have set this up on many client stores, and I tested the code below.
Here is what you will learn:
- How to set up a real free shipping rate first
- Way 1: a simple “Free shipping over $50” line in the announcement bar
- Way 2: a free shipping progress bar in the cart drawer and cart page, with copy-paste code
- How to pick your free shipping threshold
- When an app is worth it, plus fixes for common problems
Before you start: set up a real free shipping rate
A Shopify free shipping bar only makes a promise. Your shipping settings keep it. If checkout still charges shipping on a $50 order, shoppers feel tricked. So start in your shipping settings.
- In your Shopify admin, go to Settings, then Shipping and delivery.
- In the Shipping profiles section, click the profile your products use, such as General shipping rates.
- In the shipping zone you want, click the … menu next to your rate and choose Edit shipping option.
- Select Offer free shipping and enter the minimum amount, for example $50.
- Click Done, then Save.

You can also use the Order amount rate type: one range that charges shipping, and a top range with a Minimum of $50 and a price of 0. Leave the Maximum empty on the top range, or large orders get a shipping error at checkout. Shopify’s guide to setting up shipping zones and rates shows both ways.
Some stores have the newer setup, where shipping lives under Markets, then Shipping. There, the switch is called Offer free shipping over a minimum order amount.
Shopify compares your minimum with the cart value after discounts and before taxes. And the free rate only applies in the zones where you add it. Write down your minimum, because you will type the same number into the bar.
How to choose your free shipping threshold
A good free shipping threshold sits a little above what people already spend. If most orders are around $40, a $50 goal asks for one more small item. A goal far above normal orders feels out of reach, and shoppers ignore it.
- Open Analytics in your admin and find your average order value for the last few months.
- Look at your real shipping cost per order and your profit margin. Free shipping is never free for you.
- Set the free shipping threshold a bit above your average order value, where one extra product gets most shoppers there.
- Check again after a month or two. If almost no one reaches it, lower it. If nearly everyone already does, raise it.
There is no single right number for every store, so use your own data.
Way 1: Add a static free shipping message to the announcement bar
The quickest Shopify free shipping bar is one line in your announcement bar: “Free shipping on orders over $50.” It shows on every page, needs no code, and takes two minutes.
- Go to Online Store, then Themes, and click Customize.
- In the left sidebar, under Header, click Announcement bar.
- Click the first Announcement block and type your message in Text.
- Optional: add a Link to your shipping policy page.
- Click Save.
This works the same way in Dawn and Horizon. If you want several messages that rotate or scroll, see my guide to the scrolling announcement bar in Shopify.
The limit: the message never changes. It can’t tell a shopper with $32.50 in the cart that they need $17.50 more. For that, you need a free shipping progress bar.

Way 2: Add a free shipping progress bar to the cart
This is the Shopify free shipping bar most stores want: one line of text and a bar that fills up as the cart grows. You add it in two steps. First you create one small snippet file with the bar code. Then you add one line to your theme to show it in the cart.
Before you edit code, make a backup. In Online Store, then Themes, click the … button next to your theme and choose Duplicate.
Step 1: Create the free shipping bar snippet
- Go to Online Store, then Themes. Click the … button next to your theme and choose Edit code.
- In the snippets folder, add a new file named free-shipping-bar.liquid.
- Paste the code below and click Save.
{% comment %}
Free shipping bar (zobaer.me). Set your free shipping minimum below.
Use the same amount as your free shipping rate in Settings > Shipping and delivery.
{% endcomment %}
{%- liquid
assign threshold = 0
case cart.currency.iso_code
when 'USD'
assign threshold = 50
endcase
assign threshold_cents = threshold | times: 100
assign remaining = threshold_cents | minus: cart.total_price
-%}
<div class="fs-bar-wrap">
{%- if threshold > 0 and cart.item_count > 0 -%}
{%- assign progress = cart.total_price | times: 100 | divided_by: threshold_cents | at_most: 100 -%}
<div class="fs-bar">
<p class="fs-bar__text">
{%- if remaining > 0 -%}
You're <strong>{{ remaining | money }}</strong> away from free shipping
{%- else -%}
Your order ships free!
{%- endif -%}
</p>
<div class="fs-bar__track" role="progressbar" aria-label="Progress to free shipping" aria-valuemin="0" aria-valuemax="100" aria-valuenow="{{ progress }}">
<span class="fs-bar__fill" style="width: {{ progress }}%"></span>
</div>
</div>
{%- endif -%}
</div>
<style>
.fs-bar { margin: 0 0 12px; text-align: center; }
.fs-bar__text { margin: 0 0 6px; font-size: 0.9em; line-height: 1.4; }
.fs-bar__track { height: 8px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, currentColor 15%, transparent); }
.fs-bar__fill { display: block; height: 100%; border-radius: inherit; background: #2e7d32; transition: width 0.4s ease; }
</style>Now change two things near the top. Replace USD with your store’s currency code, and 50 with your free shipping threshold. Use a whole number in your normal currency, so 50 means $50.
How it works: the code reads cart.total_price, the cart total after discounts. Liquid gives money amounts in cents, so the code multiplies your threshold by 100 before it compares. Then the money filter shows the amount left in your store’s own price format, like $17.50. If the cart is empty, or in a currency you didn’t list, the bar stays hidden.
Step 2 in Dawn: show the bar in the cart
Dawn needs one line in each place where you want the free shipping progress bar.
- Cart drawer: open snippets/cart-drawer.liquid. Find the line that starts with <div class=”cart-drawer__footer” and paste the line below right under it. The bar then shows just above the total and the checkout button.
- Cart page: open sections/main-cart-footer.liquid. Find the line that starts with <div class=”js-contents” and paste the same line right under it.
{% render 'free-shipping-bar' %}For the drawer, open Theme settings, then Cart, in the theme editor and set Type to Drawer. Dawn’s default, Popup notification, has no spot for a bar.
Step 2 in Horizon: show the bar in the cart
Horizon is easier. Its cart drawer and cart page share one summary file, so one line covers both. Open snippets/cart-summary.liquid, find the line <div class=”cart-totals”>, and paste the render line right above it. The free shipping progress bar then sits at the top of the order summary.
Prefer the theme editor for the cart page? Open the Cart template, click Add block in the Cart section, choose Custom Liquid, and paste the render line into Liquid code. This updates too. The catch: on phones, Horizon shows these extra blocks under the checkout button, so I prefer the summary.

Does the Shopify free shipping bar update when the cart changes?
Liquid runs on Shopify’s servers once, when the page loads. It can’t watch the cart. So a Liquid bar would normally show an old amount until the page reloads.
Dawn and Horizon solve this for you. When a shopper adds an item or changes a quantity, the theme asks Shopify for fresh cart HTML through the Section Rendering API and swaps it in. I checked the theme code: Dawn re-renders the drawer and the cart subtotal area, and Horizon re-renders the whole cart section and the drawer. Because the bar sits inside those parts, it gets the new total every time, with no extra JavaScript.

If you put the bar somewhere the theme does not re-render, it won’t update. A common case is a Custom Liquid section on Dawn’s cart page. For that, paste this small script into the same Liquid code box, under the render line. It listens for Dawn’s cart update event and refreshes just that one section.
<script>
(() => {
const section = document.currentScript.closest('.shopify-section');
const id = section.id.replace('shopify-section-', '');
document.addEventListener('DOMContentLoaded', () => {
if (typeof subscribe !== 'function') return;
subscribe(PUB_SUB_EVENTS.cartUpdate, async () => {
const res = await fetch(window.location.pathname + '?section_id=' + id);
const html = new DOMParser().parseFromString(await res.text(), 'text/html');
const fresh = html.querySelector('.fs-bar-wrap');
const wrap = section.querySelector('.fs-bar-wrap');
if (fresh && wrap) wrap.innerHTML = fresh.innerHTML;
});
});
})();
</script>This script is for Dawn. Other themes use their own cart events, so ask your theme developer which one to listen for. I tested both pieces of code in a browser with a fake cart. The free shipping progress bar showed “$17.50 away” at $32.50, switched to “Your order ships free!” at $50, and stayed on one line on a 375 px phone screen.
Way 3: When a Shopify free shipping bar app is worth it
The free code covers most stores. An app makes sense when you need more than one simple goal, for example:
- Different goals for many countries and currencies, kept in sync for you
- Goals by location, such as only for shoppers inside your free shipping zone
- A second goal, like a free gift at a higher amount
- The bar on product and collection pages as well
If you try an app, remove the code from this guide first. Two bars that disagree confuse shoppers.
Which way should you use?
| Method | Shows amount left | Updates as the cart changes | Setup | Best for |
|---|---|---|---|---|
| Announcement bar | No | Not needed | 2 minutes, no code | Every store, as a first step |
| Progress bar snippet | Yes | Yes, in the Dawn and Horizon cart | About 15 minutes, copy and paste | Stores with one or a few currencies |
| App | Yes | Yes | Install and set up, often a monthly fee | Many markets or several goals |
My advice: for most stores, the best Shopify free shipping bar setup is both free ways together. The announcement bar tells every visitor about the offer. The free shipping progress bar tells them exactly how much is left, right when they decide.
Shopify free shipping bar tips for mobile
- Keep it to one line. “You’re $17.50 away from free shipping” fits on a phone. A long sentence wraps and pushes the checkout button down.
- Put it near the checkout button. That is where shoppers decide.
- Use clear contrast. In the snippet, you can change #2e7d32 to your brand color, as long as it stays easy to see on your background.
- Show one bar, not three. Stacked banners can take a big part of a small screen.
- Test on a real phone. Add an item, change the quantity, remove it, and watch the bar each time.
Common problems and fixes
These are the problems I see most often with a Shopify free shipping bar, and how to fix them.
The bar shows the wrong amount with discounts
The bar uses the cart total after discounts, which is also what Shopify uses for shipping rates. But a discount code typed at checkout lowers the total after the shopper leaves the cart. A $52 cart with a 10% code becomes $46.80 and drops below a $50 minimum. Say “after discounts” in your shipping policy, so no one feels misled.
The bar is missing for shoppers in other currencies
That is on purpose. If you sell in several currencies, Shopify converts your minimum, so it isn’t a round number in other currencies. The snippet hides the bar for any currency you didn’t list. If you set your own local minimum for a market (this needs Shopify Payments), add a line for that currency, such as when ‘EUR’ with your euro amount below it.
The bar doesn’t update
Check that the render line sits in the spot from Step 2. In Dawn, use the script above. Also check that you edited your live theme, not a copy.
The bar says free shipping, but checkout charges for it
The bar only knows the cart, not the address. Your free rate may only exist in one zone, such as your home country. Products can also sit in a separate shipping profile with its own rates. Check each zone and profile, then place a test order.
The bar doesn’t show at all
Check that the file is named free-shipping-bar.liquid, exactly like the name in the render line. Then check that the cart has items, the currency code in the snippet matches your store currency, and, in Dawn, that the cart Type is Drawer.
Related guides
- Shopify minimum order: set a minimum value or quantity.
- Shopify local delivery: setup, zones and fixes when it doesn't show.
Frequently asked questions
How do I add a free shipping bar on Shopify?
First set a free shipping rate with a minimum amount in Settings, then Shipping and delivery. Then add a message to your announcement bar, or add a free shipping progress bar to the cart with a snippet like the one in this guide.
Does Shopify have a built-in free shipping bar?
Not as a feature. The free themes have an announcement bar for a fixed message. A bar that shows how much is left needs a small snippet or an app.
How do I set free shipping over a certain amount on Shopify?
Go to Settings, then Shipping and delivery, and open your shipping profile. Edit the rate, select Offer free shipping, enter the minimum amount and save.
Is there free shipping progress bar code for Shopify?
Yes. A snippet compares cart.total_price with your minimum and shows the difference with the money filter. Then you render it in the cart drawer or cart summary. The full tested code is above.
How do I change the free shipping threshold in Shopify?
Change the minimum amount in your shipping rate, then change the same number in the snippet. If the two numbers differ, the bar promises something checkout doesn’t give.
Can I show free shipping on the product page?
Yes. In the theme editor, add a Text block to the product information with a line like “Free shipping on orders over $50.” A live progress bar on product pages is easier with an app.
A clear Shopify free shipping bar is one of many small details that help shoppers add one more item. For more practical guides like this, see my Shopify tips. If you would rather have it done for you, I set up shipping rates and free shipping bars as part of my Shopify store management service. Message me on WhatsApp and I will take a look.




