Cart conditions
Match visitors based on what's currently in their cart — specific products, variants, item count, or subtotal.
Cart conditions are four related access rules that all look at the visitor's current shopping cart:
Cart contains selected products — a specific product is currently in the cart.
Cart contains selected variants — a specific variant is currently in the cart.
Cart quantity — the total number of items in the cart is at least a number you set.
Cart total — the cart's subtotal is at least a dollar amount you set.
They're a good fit for free-gift unlocks (add a specific product to reveal a bonus item) or minimum-order-value gating (unlock a discount or perk once the cart reaches a spending threshold).
Like most access rules (aside from the action-based ones such as Passcode, Secret link, Subscribe, and Confirmation prompt), each of these four can be set to match If the cart meets the condition, or Unless it doesn't — inverting it to match carts that don't meet the condition instead. See Combining rules.
Add a cart condition 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 Cart contains selected products, Cart contains selected variants, Cart quantity, or Cart total.

Configure that rule (see each section below).
Choose If or Unless.
Click Save.
Cart contains selected products
Select one or more products. The rule matches whenever any of those products is currently in the visitor's cart — this checks presence only, regardless of how many units or which specific variant.

Cart contains selected variants
Select one or more specific variants. The rule matches whenever any of those exact variants is currently in the cart. Use this instead of Cart contains selected products when the condition should depend on a specific size, color, or other variant option, not just the product as a whole.

Cart quantity
Set a number. The rule matches whenever the total number of items in the cart — across all products, not just a specific one — is at least that number.

Cart total
Set a dollar amount. The rule matches whenever the cart's subtotal is at least that amount.

Cart quantity and Cart total only support "at least" (≥) today. Even though the number field might look like a general-purpose input, there's currently no way to configure "exactly," "at most," or "less than" for either of these two rules. If you need content to unlock only below a certain quantity or amount, use the Unless toggle together with a slightly higher threshold, or plan around the "at least" behavior directly — don't build a lock expecting a different comparison, since it isn't supported.
Examples
Each example below represents a separate Lock. Leave the rule's Redirect URL empty so visitors who do not qualify see the configured message.
Cart contains selected products
Suppose a bonus-offer page should open after the visitor adds any variant of The Complete Snowboard to the cart.
Select the Snowboard bonus offer page as the content to protect.

On the Unlock rules tab, set Condition type to Cart contains selected products, leave Rule logic on If, then click Specific products and add The Complete Snowboard.

In Messages, set the Access denied message to:
Add The Complete Snowboard to your cart to unlock this offer.

Click Save.
The page opens when any The Complete Snowboard variant is in the cart. Otherwise, the visitor sees the message above.

Related docs
Last updated
Was this helpful?