A rolling 30-day purchase limit caps how much one customer can buy within the last 30 days, counted back from today. Every purchase counts for 30 days and then drops out. There's no reset date: the allowance comes back purchase by purchase, as each one ages out of the window.
Short version: a monthly limit asks "how much this month?". A rolling limit asks "how much in the last 30 days?". The second has no 1st of the month to wait for, and no month boundary to buy across.
What does a rolling 30-day limit mean?
Picture a window 30 days wide that moves forward one day at a time. On any given day, the store looks back over that window and adds up what the customer bought: units, orders, spend or weight, depending on the limit. If the new order would take the total over the cap, it's refused.
The window is "rolling" because it never starts or stops on a fixed date. Tomorrow it covers a slightly different 30 days than today, so the oldest day drops out and today joins. The same idea is called a sliding window or a trailing window elsewhere, for example in rate limiting or in "trailing 30-day" sales figures.
Rolling windows are common wherever a limit has to be fair over time rather than tidy on a calendar. One well-known example is in US law: the Combat Methamphetamine Epidemic Act limits pseudoephedrine purchases to 9 grams per customer within a 30-day period, regardless of the calendar month.
Rolling 30 days vs calendar month
| Rolling 30 days | Calendar month | |
|---|---|---|
| Resets | Never all at once; each purchase drops out 30 days after it | For everyone on the 1st |
| Buy on the 31st, again on the 1st | Blocked | Allowed |
| Gap between allowances | At least 30 days | Anything from 1 day to almost 2 months |
| Rush on the 1st | No | Often |
| Easy to explain | "One every 30 days" | "One per customer each month" |
| Fits | Fair shares, scarce stock, allocations | Calendar restocks, monthly allowances |
Neither one is better in general. A calendar month is easier to say on a product page and lines up with monthly restocks. A rolling window is harder to game and spreads demand out.
A worked example
Take a limit of 1 bag per customer, and a customer who buys on these days:
| Purchase | Calendar month (1 per month) | Rolling 30 days (1 per 30 days) |
|---|---|---|
| March 31 | Allowed (first in March) | Allowed |
| April 1 | Allowed (first in April) | Blocked: March 31 still counts |
| April 15 | Blocked: April's allowance used | Blocked: March 31 still counts |
| April 30 | Blocked | Blocked: March 31 counts through today |
| May 1 | Allowed (first in May) | Allowed: March 31 has dropped out |
The calendar limit let the customer buy two bags in two days, then nothing for a month. The rolling limit kept them a month apart. (The day an allowance comes back depends on how a system counts days; the example uses OrderRules' counting, explained below.)
With a higher cap the window works the same way, it just holds more. With 3 units per 30 days, a customer who buys 2 on March 1 and 1 on March 10 has used the allowance. On April 1, the March 1 purchase drops out and 2 units come back. On April 10, the March 10 one drops out too.
When does a purchase stop counting?
That depends on how a system counts days, so check it before you write the rule on your product page. Two details matter:
- Whose day counts. Almost always the store's timezone, not the customer's.
- Whether the order day itself is day 0 or day 1. This decides whether the allowance comes back on day 30 or day 31.
In OrderRules, an order counts on the day it's placed and on the 30 days after it, in your store's timezone, and stops counting at midnight after that. An order placed on March 3 counts through April 2 and stops counting on April 3.
What a rolling limit can count
A rolling window works for any kind of limit, not just units:
- Units: "2 of this product every 30 days."
- Orders: "1 order every 30 days," whatever is in it.
- Spend: "$500 every 30 days" on a collection.
- Weight: "40 lb every 30 days," for flat-rate shipping caps or fair shares of a harvest.
It can apply to one product, a collection, or the whole store. The narrower the scope, the less it gets in the way of everything else a customer buys.
Why stores use rolling limits
- Scarce products. Seasonal sweets, rice, a popular sauce, a monthly coffee release: everyone gets a turn, and nobody buys two allowances across a month boundary.
- Allocations and fair shares. When supply is fixed, a rolling cap spreads it across customers and across the month.
- No rush on the 1st. Monthly resets send everyone back on the same day. A rolling window spreads repeat purchases out.
- Harder to game. There's no reset date to wait for, so there's no trick to it.
The trade-off is the message. "One per customer each month" is instantly clear; "one every 30 days" needs a line more. Put it on the product page, so nobody finds out at checkout.
What a rolling limit can't do on its own
A rolling purchase limit counts customer accounts. It can't tell that two accounts belong to one person, or that two people share an address. And it only works if the store knows who the customer is, so it needs customers to log in. For very scarce releases, check shipping addresses on orders before you ship.
How to set a rolling 30-day limit on Shopify
Shopify can't do it on its own. Its quantity rules cap what's in a single cart, not what a customer bought before, so a customer can simply order again tomorrow. You need an app that remembers past orders and checks them at checkout.
In OrderRules:
- In Customer Limits, tick Enable per-customer limits.
- Add a rule: choose the Limit Type (Total Quantity (units), Number of Orders, Total Spend or Total Weight), the Scope (Storewide, Specific Product or Specific Collection), the Max Count, and Period Rolling 30 days.
- Check the wording in Settings β Customer Limit Messages. One template covers every rule. For a rolling rule, word it without the period, for example
You've already bought the most allowed for {product}: {value} per customer. - Test it with a logged-in test customer: buy up to the limit, then try once more.
Checkout counts the cart plus the customer's past orders, including Shop Pay and other express checkouts. While customer limits are on, guest checkout is blocked across the store, and customers see your log-in message.
Two things to know before you switch it on:
- It starts empty. The first time you add a rolling rule, only orders placed from then on are in the window. Set it up before a release, not after.
- 30 days is the only rolling window. For other spans, use a calendar period: Per Week or Per Year.
Cancelling an order in full gives the allowance back; a refund on its own doesn't. POS orders aren't blocked, but they count toward the customer's limit. Per-customer limits are on the Pro plan.