Order quantity
Match customers whose total order count meets a minimum — good for loyalty and repeat-buyer perks.
Order quantity matches a customer based on how many orders they've placed with your store in total, rather than what they bought. It's a good fit for loyalty or repeat-buyer perks — for example, unlocking a discount code or an exclusive product only for customers who've ordered from you a certain number of times before.
Like most access rules (aside from the action-based ones such as Passcode, Secret link, Subscribe, and Confirmation prompt), Order quantity can be set to match If the customer meets the order-count threshold, or Unless they don't — inverting it to match customers below the threshold instead. See Combining rules.
Add the rule
Open Locks and create a new lock, or open an existing one to edit it.
Choose the content you want to protect. See Access rules overview for how rules fit into a lock.
Click the Unlock rules tab, then in the Condition type dropdown, select Order quantity.

Set the Order threshold — the minimum number of orders the customer must have placed for the rule to match. The default is 1 order.
Ignore cancelled orders is on by default, so cancelled orders don't count. Untick it if you want them included.

Choose If or Unless.
Click Save.
This rule counts up to the customer's 50 most recent orders placed within the last 60 days. Orders older than 60 days are not included. If the customer placed more than 50 orders during that period, only the newest 50 are counted.
Example: Unlock rewards after three orders
Suppose customers should be able to open a rewards page after placing at least three non-cancelled orders.
Select the Repeat-customer rewards page as the content to protect.

On the Unlock rules tab, set Condition type to Order quantity and leave Rule logic on If.
Set Order threshold to 3. Leave Ignore cancelled orders ticked — it's on by default.

Leave the rule's Redirect URL empty.
In Messages, set the Access denied message to:
Sign in with an account that has placed at least 3 orders to unlock these rewards.

Click Save.
Result on the storefront
A signed-in customer with at least three counted orders can open the rewards page. A guest or a customer with fewer than three counted orders sees the Access denied message above.

Related docs
Last updated
Was this helpful?