Create your first lock
Build and verify your first lock in a few minutes, using a real example — hiding a product's price from guests.
This walkthrough builds one simple, common lock: hide the price and Add to cart button on a single product so only logged-in customers can see them. It's a good first lock because it uses the three pieces every lock is built from — content to lock, an access rule, and a lock behavior — without any extra complexity.
Make sure you've already enabled the app embed on your theme, or the lock you create here won't take effect on your storefront yet.
Verify it on your live storefront
Open an incognito or private browser window and visit the product page on your live storefront. You should see the price and Add to cart button replaced with a "Login to see price" / "Login to Add to cart" prompt instead of the normal buy box.
Now log in with a customer account (in that same window, or any browser where you're signed in) and reload the product page. The price and Add to cart button should reappear normally, since you now pass the Logged-in customers rule.
If the price and Add to cart button stayed hidden for the signed-out visitor and reappeared once you logged in, your first lock is working correctly on both sides — denied and allowed.
Next steps
Last updated
Was this helpful?



