← All recipes
✓ Available · copy-paste buildStarter

Purchase Limit Guard

Makes 'limit 2 per customer' hold across orders, not just one cart: catches the same person (new email, same phone or address) buying past your limit on tagged products, pauses shipping and emails you. Never cancels or refunds for you.

What it does: Shopify's add-to-cart limit caps one cart, not one person. A reseller or a bot can place five orders of 2, or use a new email each time. This adds up what the same person has bought of each limited product across their recent orders. 1. Mark the product. Tag it limit-2 (or limit-1, limit-3 …). Untagged products are never checked. 2. Count per person. On every new order, units of a limited product are added up with the same person's orders from the last 30 days (you can change the window), matched by account, email, phone or address. 3. Pause and tell you. Over the limit, the order is tagged over-limit (order and customer), its shipping is paused, and you get an email with the count and the earlier orders it found. You cancel, trim or let it go.

How it matches (you can read every rule): the same customer account; the same email ignoring case and +anything (and dots, for Gmail); the same phone, last 10 digits; or the same street line and ZIP, with Street/St, Apartment/Apt and # treated alike. Cancelled orders, refunded units and orders tagged keep don't count.

This is an automation, not AI. The checks are a short piece of plain JavaScript in Flow's Run code step. It never cancels, refunds or blocks anyone at checkout.

Why people want this: A Shopify Community thread on stopping resellers during limited sales (Nov 2026) sums up the gap: Shopify's "native purchase limits are per order, not per customer, so a determined buyer places three orders of one" (community.shopify.com/t/716641). On r/shopify, an owner preparing a drop worried that "someone could place several orders using the same account" (reddit.com/r/shopify/comments/1w60et0), and the replies agreed that "shipping address is what actually catches people". This checks that for you on every order.

How you install it

Copy-paste build, about 15 min. There's no one-click import file for this recipe yet. You create the workflows in Shopify Flow and paste in our exact settings, rules code and email text, step by step. Built from Shopify's documented Flow steps, with the rules code unit-tested; it hasn't been run end-to-end in our own test store yet, so the 14-day 'it didn't run' refund applies.

What it does

Shopify's add-to-cart limit caps one cart, not one person. You tag each limited product limit-2 (or limit-1, limit-3). On every new order, plain JavaScript rules in Flow's Run code step add up the units of each limited product in that order plus the same person's orders from the last 30 days (up to 100 orders; the window is yours to change). The same person means the same customer account, the same email ignoring case, +tags and Gmail dots, the same phone (last 10 digits), or the same street line and ZIP with Street/St and Apt/# treated alike. Cancelled orders and refunded units don't count. Over the limit, the order and customer are tagged over-limit, shipping is paused and you get an email with the count and the orders it found.

Who it's for

  • Stores running limited drops, restocks or sale items that resellers and bots buy out
  • Owners who set a cart limit and still see the same person place three orders of one
  • Anyone who doesn't want a monthly order-limit app for a few hot products

What you get

  • Exact copy-paste settings for one Shopify Flow workflow
  • Rules code for Flow's Run code step, with the test cases we ran
  • Step-by-step build checklist written for beginners
  • Over-limit email text with what-to-do steps (cancel, trim or keep)
  • Limit window settings: weekly restocks, 30-day drops or one per customer ever
  • Busy-store query that compares only orders with your limited SKUs
  • Store profile worksheet to tailor it to your store
  • Test plan so you know it works
  • Safety rails: tags and shipping holds only, never cancels; keep tag; refunded units don't count
  • 12 months of updates and a 14-day 'it didn't run' refund

Setup time and cost

Setup: ~15 min. Platform: Shopify Flow (free). Price: $39 one-time, or included in All-Access.

FAQ

Does it block the order at checkout?

No. Flow only sees orders after they're placed, so it pauses shipping and emails you before anything ships. Hard-blocking at checkout needs a checkout validation app, or Shopify Plus bot protection for drops. Shopify's free add-to-cart limit (Settings, Checkout) still caps a single cart; use both.

Will it cancel or refund orders?

No. It tags, holds shipping and emails you. You cancel, trim the extra units or let it go.

How do I choose which products are limited?

Add a product tag like limit-2. Untagged products are never checked, and removing the tag ends the limit.

Can I do one per customer, ever?

Yes. Tag the product limit-1 and set the look-back window to 365 days. It checks up to 100 earlier orders; busy stores can compare only orders containing the limited SKUs.

Is there a one-click import file?

Not yet. You build it by copying the exact settings and code from the guide, about 15 minutes. The rules are unit-tested, but it hasn't been run end-to-end in our own test store yet, so the 14-day 'it didn't run' refund applies.

Is this an AI agent?

No. Recipes are Shopify Flow automations, not AI. This one runs on its own inside Shopify Flow, following rules you can see. Our live AI product is AI Support Triage (https://www.agents4ecom.ai/ai/support-triage), which sorts support email and drafts replies for you to review. It's available to US stores only: $29/mo for 300 messages, or $49/mo for 1,500.

Do I need to be technical?

No. Copy and paste each setting from the step-by-step guide.

What if it doesn't work in my store?

You're covered by a 14-day 'it didn't run' refund.

Related guides

Setup checklist (3 steps)

  1. Tag each limited product limit- plus the number allowed per customer (for example limit-2).
  2. Open the Flow app and create the workflow: Order created, then Get order data with the query from the build guide, then Run code with the rules pasted in.
  3. Unlocks after purchase · copy-paste settings included

The full checklist, copy-paste settings and troubleshooting guide unlock after purchase.