Logged-in customers
Restrict a lock to signed-in customers, or the reverse — require visitors to be signed out.
The Logged-in customers rule checks one simple fact about the visitor: are they currently signed in to a customer account on your store. It’s the most common access rule in the app, and it’s usually the first one merchants reach for when they want to hide pricing or content from guests.
How it works
Section titled “How it works”The rule looks at whether the storefront visitor has an active customer session. It doesn’t check anything about who they are — no tags, no order history, nothing — just whether they’re logged in at all. If you need to also check something about the account itself, add Customer tags, B2B customer, or another identity rule alongside it in the same access key.
Adding the rule
Section titled “Adding the rule”-
Open the lock you want to protect and click the Unlock rules tab.
-
Add an access rule and choose Logged-in customers from the Condition type dropdown.

Adding the Logged-in customers rule to an access key.
-
Choose whether the rule should match If or Unless.
-
Save the lock.
If vs Unless for this rule
Section titled “If vs Unless for this rule”This is one of the clearest rules to reason about with If/Unless:
- If the visitor is signed in — the content unlocks only for customers who are logged in. Guests are blocked. This is the default, and what you want for most “members only” or “wholesale accounts only” locks.
- Unless the visitor is signed in — inverted: the content unlocks only for visitors who are not logged in. Use this when you want a page or offer aimed specifically at guests (for example, a new-visitor promotion that should disappear once someone logs in).
Common example: hide price for guests
Section titled “Common example: hide price for guests”A frequent way to use this rule is paired with Hide price and Add to cart rather than a full block:
- On the Lock setup tab, set the content to lock to the product or collection you want to gate.
- Click the Unlock rules tab to continue.
- Add the Logged-in customers rule, matching If. There’s nothing else to configure — the app confirms this with “No extra setup needed. Customers only need to be signed in.”

The Logged-in customers condition has no settings of its own beyond If or Unless.
- In the same tab’s right-hand sidebar, under Blocked visitor behavior, turn on Hide price, Hide Add to cart, or both.
- Save.
Result on the storefront
Section titled “Result on the storefront”With the example above, guests can still browse the product page, but the price and Add to cart button are replaced with a login message. Signed-in customers who satisfy the Lock’s other conditions see the normal price and buy box.

The result of the example: guests can browse the product, but the price and buy buttons are replaced.