Z O B A E R

Loading

Guide Shopify guide

Shopify Back in Stock Alerts: Free Setup, Klaviyo or App

Shopify has no built-in back in stock alert. Here is a free notify me button with Flow and Messaging, the Klaviyo way, and when an app is easier.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify back in stock alerts: free notify me button, Klaviyo or app, guide by Zobaer H.

Shoppers who find your best product marked “Sold out” often leave and buy elsewhere. A Shopify back in stock alert gives them a reason to wait: they leave their email, and you write to them the day the item returns. Shopify doesn’t include this feature, so you build it or add it.

In this guide I show you three ways to do it, from free to paid. I have set up stock alerts on many client stores, and I will be honest about where each way stops working. Prices and app details are as of November 2026.

Here is what you will learn:

  • What Shopify gives you for free, and what it does not
  • A free notify me button with Shopify Flow logo Shopify Flow and Shopify Messaging logo Shopify Messaging (tested code for Dawn and Horizon)
  • A no-code option with Shopify Forms logo Shopify Forms, and its limits
  • The Klaviyo logo Klaviyo way, if you already use it
  • When a back in stock app is the easier choice

Does Shopify have back in stock alerts built in?

No. There is no built-in Shopify back in stock alert for shoppers. There is no “Notify me” button in Dawn or Horizon, and the Shopify Messaging automation templates (such as abandoned cart, welcome and post-purchase emails) don’t include a restock alert.

What Shopify gives you are the parts, enough for a free setup on a small catalog:

Shopify partWhat it does hereCost
Theme customer formSaves the email and a tagFree
Shopify FormsNo-code sign-up formFree app
Shopify FlowSpots the restock, finds the shoppersFree app
Shopify MessagingSends the email10,000 emails/month free

Shopify Flow is free on the Basic, Grow, Advanced and Plus plans. Shopify Messaging gives every store on those plans 10,000 free emails each month, then charges $1 USD per 1,000 extra emails.

Before you start: make sold-out variants show as sold out

Every Shopify back in stock method depends on correct stock numbers. If Shopify thinks an item is in stock, no button appears.

  1. Open the product in Products and click the variant.
  2. In the Inventory section, turn on Track quantity.
  3. Under Sell when out of stock, keep Stop selling when out of stock. If you pick Continue selling when out of stock, the variant never counts as sold out.
  4. Click Save.

Now Dawn and Horizon show the buy button as Sold out when that variant hits zero. That is where your notify me button goes.

Way 1: The free notify me button with Shopify Flow and Messaging

This free Shopify back in stock setup has three parts. A small form on the product page saves the shopper’s email with a tag for the sold-out variant. Shopify Flow watches for the restock. Then Shopify Messaging emails everyone with that tag.

Step 1: Add the notify me button to the product page

The code below shows a small restock alert box only when the selected variant is sold out. It uses Shopify’s own customer form, which creates a customer, subscribes them to email marketing and adds one tag: restock- plus the variant ID. When the shopper picks another size, the box updates by itself.

In Dawn: go to Online Store, then Themes, and click Customize. Open a product template, click Product information, then Add block, and choose Custom Liquid. Paste the code and drag the block right under Buy buttons.

In Horizon: open the same product template. Inside Product information, open Details, click Add block and choose Custom Liquid. Paste the code, place it under Buy buttons and click Save.

{%- unless product.available and product.has_only_default_variant -%}
<div class="restock-alert" data-restock{% if product.selected_or_first_available_variant.available %} hidden{% endif %}>
  {%- form 'customer', id: 'RestockAlert', class: 'restock-alert__form' -%}
    <p class="restock-alert__title"><strong>Sold out.</strong> Get one email when it is back.</p>
    <input type="hidden" name="contact[tags]" value="restock-{{ product.selected_or_first_available_variant.id }}" data-restock-tags>
    <div class="restock-alert__row">
      <input type="email" name="contact[email]" required placeholder="Your email" aria-label="Your email" autocomplete="email">
      <button type="submit" class="button">Notify me</button>
    </div>
    <p class="restock-alert__note">You also join our email list. Unsubscribe anytime.</p>
  {%- endform -%}
  <p class="restock-alert__thanks" hidden>Thanks! We will email you when it is back in stock.</p>
</div>
<script type="application/json" data-restock-variants>
  { {%- for v in product.variants -%}"{{ v.id }}": {{ v.available }}{%- unless forloop.last -%},{%- endunless -%}{%- endfor -%} }
</script>
<style>
  .restock-alert[hidden], .restock-alert [hidden] { display: none !important; }
  .restock-alert { margin: 1.2rem 0; padding: 1.2rem; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; }
  .restock-alert__title { margin: 0 0 .8rem; }
  .restock-alert__row { display: flex; flex-wrap: wrap; gap: .8rem; }
  .restock-alert__row input { flex: 1 1 18rem; min-width: 0; padding: 1rem 1.2rem; font: inherit; border: 1px solid rgba(0,0,0,.3); border-radius: 6px; }
  .restock-alert__row .button { flex: 0 0 auto; min-height: 4.4rem; }
  .restock-alert__note { margin: .6rem 0 0; font-size: .9em; opacity: .75; }
</style>
<script>
  (function () {
    var map = {};
    try { map = JSON.parse(document.querySelector('[data-restock-variants]').textContent); } catch (e) {}

    document.addEventListener('submit', function (e) {
      if (e.target.closest('[data-restock]')) sessionStorage.setItem('restockPosted', Date.now());
    });

    function currentId(box) {
      var scope = box.closest('section, .shopify-section') || document;
      var input = scope.querySelector('form[action*="/cart/add"] input[name="id"]');
      if (input && input.value) return input.value;
      return new URLSearchParams(location.search).get('variant');
    }

    function check() {
      var box = document.querySelector('[data-restock]');
      if (!box || box.dataset.done) return;
      var id = currentId(box);
      if (!id) return;
      var soldOut = map[id] === false;
      box.hidden = !soldOut;
      if (soldOut) box.querySelector('[data-restock-tags]').value = 'restock-' + id;
    }

    var posted = Number(sessionStorage.getItem('restockPosted'));
    var box = document.querySelector('[data-restock]');
    if (box && posted && Date.now() - posted < 120000) {
      sessionStorage.removeItem('restockPosted');
      box.dataset.done = '1';
      box.hidden = false;
      box.querySelector('form').hidden = true;
      box.querySelector('.restock-alert__thanks').hidden = false;
      return;
    }
    check();
    setInterval(check, 300);
  })();
</script>
{%- endunless -%}

I tested this code in Chrome against Dawn-style and Horizon-style product forms, on a 360 px phone and on desktop, and it passed Shopify’s Theme Check. In-stock products stay unchanged.

Shopify back in stock notify me button: Custom Liquid block under Buy buttons in Dawn and Horizon
Step 1: add a Custom Liquid block under Buy buttons. Dawn and Horizon only differ in where you click Add block.
Restock alert form on a phone when a sold-out size is selected on a Shopify product page
The result: pick a sold-out size and the restock alert box appears under the Sold out button.

Change the words to match your store, and translate them if you sell in several languages.

Step 2: Build the Shopify back in stock workflow in Flow

Install the free Shopify Flow app, click Create workflow and build these steps:

  1. Trigger: choose Product variant back in stock. Shopify says it fires when a variant’s stock goes from 0 or less to 1 or more, whether the change comes from an order, a manual edit or an app.
  2. Action: add Get customer data. Set Maximum number of results to 100, pick a sort order, and under Query choose Advanced. Paste this query, which finds everyone tagged for this exact variant:
tag:'restock-{{productVariant.legacyResourceId}}'
  1. Action: add For each and loop over the list from Get customer data.
  2. Inside the loop: add the Shopify Messaging action Send marketing email and write your email (Step 3).
  3. Inside the loop: add Remove customer tags and remove the same restock tag, so nobody gets a second email next time.
  4. Turn the workflow on.
Shopify back in stock workflow in Shopify Flow: Product variant back in stock, Get customer data, For each, Send marketing email, Remove customer tags
Step 2: one Shopify back in stock workflow covers every variant, because the query uses the ID of the variant that came back.

Shopify warns that if a Get customer data query fails, the API often returns all results instead of none. So test before you trust it: tag a test customer with your own email, set a sold-out test variant to 1 and check that only you get the email.

Step 3: Write the restock alert email in Shopify Messaging

Keep the email short: one line saying the item is back, a big button to your store and a note that stock is limited. Test it with the Send test option before you go live.

This is the first place the free method dead-ends. The Liquid variables in Shopify Messaging emails cover the customer, the shop and abandoned carts. They don’t include the product from your Flow trigger. So one email can’t show “Your Linen Shirt in size M is back” for every product. You have two choices:

  • A general email for all products: “Something you asked about is back in stock,” with a link to your new arrivals or best sellers.
  • One workflow per hero product: duplicate the workflow, add a condition on the product title, and use a static Product section in that email. This is fine for 3 to 5 products, not 50.

Where the free method stops working

The free Shopify back in stock way suits a small store with a few sought-after products. These limits all come from Shopify’s own help pages:

  • Marketing emails only. Send marketing email only reaches customers subscribed to email marketing. That’s why the form subscribes them, and why the code says so next to the button.
  • 100 shoppers per restock. Get customer data returns at most 100 customers per run. A product with a longer waitlist needs another run or an app.
  • No product in the email unless you build one workflow per product, as above.
  • Existing customers. Shopify notes that when an existing customer submits a Shopify Forms form, some fields might not update. Test the theme form with an email that already exists in your store too.

The no-code option: Shopify Forms

Don’t want to paste code? Shopify Forms can collect the emails instead. Create an inline form, set Marketing consent to On form submission, and add a tag such as restock-linen-shirt in the Tags section. Then add the Forms app to your product template in the theme editor and paste the form’s Form ID.

The limits are bigger here. The tag is fixed per form, so you need one form per product. A store can have up to 25 forms, and Forms has no conditional logic. The form shows whether the item is in stock or not, unless you give each sold-out product its own template. In your Flow query, use the tag of that form instead of the variant ID.

Way 2: Shopify back in stock alerts with Klaviyo

If you already use Klaviyo, use its built-in back in stock feature. It shows a notify me button on sold-out variants, puts the right product in each email and can send in batches. As of November 2026, the Klaviyo app listing shows a Free plan (up to 250 active profiles and 500 emails a month) and an Email plan from $20 a month for 251 to 500 contacts. Check that your plan includes back in stock before you build.

  1. Connect Shopify to Klaviyo and make sure Klaviyo’s onsite tracking (Klaviyo.js) is active. Delete any old Klaviyo back in stock code from theme.liquid, or you get two buttons.
  2. In Klaviyo, go to Sign-up forms, click Create form and search for a Back in Stock template. You can only have one back in stock form per account.
  3. In the Product display button step, choose Replace add to cart button or Stacked (under the Sold out button).
  4. Optional: under Targeting and behavior, include or exclude products by tag. Publish the form.
  5. Go to Flows, click Create flow and search for a back in stock template. It starts with the Subscribed to Back in Stock trigger, then a Back in stock delay, then your email. Set the email to Live and turn Smart Sending off so everyone gets it.
  6. In the delay’s settings, set a Restock minimum and choose whether to notify everyone at once or in batches.

Batches matter when 300 people wait for 20 units. The free Flow way can’t do that.

When is a back in stock app easier?

A dedicated Shopify back in stock app is easier once your catalog or waitlist outgrows the free way. If an app adds its notify me button as an app block, you can place it in Product information, because Dawn and Horizon both accept app blocks there.

Pick an app when any of these is true:

  • You have dozens of products and want each email to show the exact product and variant.
  • Popular items get more than 100 sign-ups between restocks.
  • You want SMS alerts, waitlist reports or pre-orders in the same place.

Before you install one, read recent reviews and check the monthly price at your sign-up volume.

Which way should you use?

Choose your Shopify back in stock setup by catalog size and the tools you already pay for:

NeedShopify Flow logo Free Flow wayKlaviyo logo KlaviyoApp
CostFreeFree plan, then paidUsually monthly
Product in emailManualAutomaticAutomatic
Waitlist per restockUp to 100BatchesDepends on app
SetupCode + FlowForm + flowInstall + block
Best forFew productsKlaviyo usersBig catalogs
Shopify back in stock options compared: free Shopify Flow and Messaging, Klaviyo, or a back in stock app
Start free with a few products. Move to Klaviyo or an app when the list grows.

My rule on client stores: under 10 restocked products with small waitlists, the free way is enough. If you already pay for Klaviyo, use Klaviyo. Otherwise, a back in stock app saves you hours of upkeep.

Common problems and fixes

Most Shopify back in stock problems come from stock settings or consent, not from the code. Check these first.

  • The button never shows. The variant is still available. Check Track quantity is on and Continue selling when out of stock is off, and that you edited the template the product uses.
  • Two notify me buttons. An old app or old Klaviyo code is still in the theme. Remove it, or remove my Custom Liquid block.
  • The workflow ran, but nobody got an email. The shoppers aren’t subscribed to email marketing, or the tag in your query doesn’t match the tag on the customer. Open a test customer and compare.
  • Everyone got the email. The query failed and returned all customers. Fix the query and test with one tagged customer first.
  • The same person got two emails. You forgot the Remove customer tags step, so the tag stayed for the next restock.
  • Shoppers can’t add to cart after the email. It sold out again, or something else is wrong: see my add to cart button fixes.

For stores in the EU and UK: tell shoppers in plain words that the restock alert also adds them to your email list, as the code does. If your other Messaging emails fail too, check my abandoned cart email fixes. Shopify explains the Flow trigger on its Product variant back in stock help page.

Frequently asked questions

Does Shopify have back in stock notifications?

Not as a ready Shopify back in stock feature. Shopify gives you the parts: a Flow trigger called Product variant back in stock and the Shopify Messaging email action. You add the notify me button yourself, with code, Shopify Forms, Klaviyo or an app.

How do I add notify when back in stock on Shopify for free?

Add a customer form in a Custom Liquid block that tags shoppers with the variant ID. Then build a Shopify Flow workflow that finds those customers on restock and sends a Shopify Messaging email.

Can Shopify Flow send back in stock emails to customers?

Yes, through the Send marketing email action from Shopify Messaging. It only reaches customers who are subscribed to email marketing, and Flow’s Get customer data step returns up to 100 customers per run.

Where should the notify me button go?

Right under the Sold out button, inside Product information. In Dawn, add the block there directly. In Horizon, add it inside Details, under Buy buttons.

Is Klaviyo back in stock free?

Klaviyo lists a free plan with up to 250 active profiles and 500 emails a month, as of November 2026. Larger lists need a paid plan, so check that back in stock is part of yours.

What is the best Shopify back in stock app?

The one that fits your volume and budget. Compare recent reviews, the price at your sign-up count, and whether each email shows the exact variant.

A Shopify back in stock alert is one of the cheapest ways to turn a sold-out page into a future sale. For more ideas, see my guide to Shopify upsells without an app and the free Shopify tools. If you would rather have it set up for you, I build back in stock alerts as part of my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything