For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting started

Start protecting Shopify storefront content with Sami B2B Lock, Password Protect.

Sami B2B Lock, Password Protect lets you control who can view content and purchase products in your Shopify store. Use a Lock to protect a whole website, selected products, collections, pages, blogs, custom URLs, the cart page, or checkout—then decide which visitors can continue and what everyone else sees.

The app is designed for stores that need experiences such as wholesale-only pricing, members-only pages, private product launches, password-protected collections, customer-specific content, or checkout restrictions.

What you can do

With Sami B2B Lock, Password Protect, you can:

  • Protect your whole website or a specific part of your storefront.

  • Lock all products, selected products, variants, product tags, vendors, collections, pages, blogs, articles, URLs, the cart page, or checkout.

  • Grant access with customer login, customer tags, B2B customer status, selected customers, passcodes, secret links, subscriptions, confirmation prompts, and other conditions.

  • Limit access by date, weekly schedule, country, IP address, storefront language, order history, cart contents, cart quantity, or cart total.

  • Hide price, Add to cart, product listings, navigation links, or search-engine visibility for blocked visitors.

  • Send visitors to another page after access is granted, or add tags to an eligible Shopify customer account.

  • Let visitors request a passcode or secret link, then review and send access from the app.

  • Customize the Lock's messages, colors, templates, and translations for each storefront language.

How a Lock works

Every Lock has three parts:

Part
What it decides
Example

Content to lock

What needs protection

A wholesale collection or one product variant

Access rules

Who is allowed through

A signed-in customer with the wholesale tag

Lock behavior

What blocked visitors experience

Hide price and Add to cart, then show a login prompt

When a visitor opens protected content, Sami Lock checks the configured conditions. If all required conditions are satisfied, the visitor can continue. If not, the Lock applies the selected behavior, such as showing a message, hiding product information, displaying a passcode field, or redirecting the visitor.

For Checkout Locks, conditions work differently: they decide when the checkout error message should appear and checkout should be blocked. See Checkout for the complete flow.

Before you begin

Before creating a Lock, make sure you have:

  1. Installed the app in the Shopify store where the Lock will be used.

  2. Enabled the Sami Lock app embed on the Shopify theme you want to protect.

  3. Identified the storefront content to protect and the customer audience that should be allowed through.

  4. Prepared any Shopify data required for the rule, such as customer tags, products, collections, or test customer accounts.

Start here

Follow these guides in order when setting up the app for the first time:

  1. Install the app from the Shopify App Store and approve its permissions.

  2. Enable the app embed from the app Dashboard so Sami Lock can run on the storefront.

  3. Create your first lock with a simple product and logged-in-customer example.

  4. Learn how locks work before creating more advanced rules.

Choose the right guide

After the initial setup, use the guide that matches your goal:

Your goal
Start with

Protect products, variants, collections, pages, blogs, URLs, or checkout

Decide which customers can access protected content

Hide prices, menus, product links, or configure redirects

Send passcodes or secret links after a visitor asks for access

Change colors, templates, messages, or translations

Check an issue with the Lock or app embed

Need help?

If you encounter an issue while setting up a Lock, start with Troubleshooting & FAQ. You can also contact support@samita.io with your store URL, Lock name, affected page, expected result, actual result, and a screenshot.

Last updated

Was this helpful?