Only this pageAll pages
Powered by GitBook
1 of 28

B2B Lock,Password Protect

Loading...

General

Loading...

Loading...

Loading...

Loading...

Lock

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Hide price

Loading...

Loading...

Loading...

Loading...

Hide add to cart button

Loading...

Loading...

Loading...

Loading...

Settings

Loading...

Loading...

Loading...

Loading...

Enable app embeds on theme

In order to apply the lock to your site, please make sure that the app is integrated to the live/current theme.

Steps to manage

  1. Open the app > On the app dashboard page, navigate the App status section > Integrate theme:

There will be a popup screen shows up as below, kindly select the theme you want the app to work on and click Enable embed app:

  1. You will be redirected to the App embed page in Theme customize. From there, click Save to embed the app to the theme:

  1. You can check the lock on the storefront to see how it works.

Note

  • If you install the app on an unpublished theme, please preview the theme to check the result.

  • If you install the app on the live theme, please check the live website and see the result.


Need support?

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

Disable app embeds on theme

To prevent the app data from working on your theme, you just need to disable the app embeds on your theme.

  1. Open the app > On the app dashboard page, navigate the App status section:

  1. Click on the theme name displayed in the App status setting, you will be redirected to the App embed in Theme customize:

Delete/Duplicate Lock(s)

Delete a Lock:

Steps to manage

1. Open the app > click Locks

2. Tick on the lock you want to delete > click Remove

Lock(s) are deleted from the lock list in the app.

[email protected]
3. In the theme editor, disable the app embed block

4. Click Save to update the theme

Check the result on the front end


Need support?

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

Duplicate a Lock

Steps to manage

  1. Open the app > Click Locks

  2. Hover on the lock, you will see 3 icons shown up. Click on the Duplicate icon:

An exact lock is created:


Need support?

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

Creating locks for a specific page

Steps to manage

  1. Open the app > click Locks > click the Create Lock button

  2. Choose the type of lock you want > Specific Pages > Create lock:

  1. Set up Name for the lock.

  2. In the Lock resources setting > Click Manage collections and select the collection you want to add to this lock:

You can choose more than one 1 page to lock.

The app takes page data from Shopify Pages to show you the page list like that in the lock.

  1. Set up Lock conditions: Select who can (or cannot) access the content, and the direct page when customers access the Lock. Refer to this :

  1. Click Save to update the changes

Check the result on the front store.

Need support?

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

Display “Login to see Add to cart” button/link on the front store

After setting Hide add to cart button for specific products and customers, you can also display a button or link on the collection page or product page to direct customers to login page.

Please follow the steps set it up.

Step to manage

1. Open the app > click Settings

2. In Color Settings dropdown, select Price & Add to cart

Select one of the 2 option:

  • Plain text: the text will display under the product title, customers click text and it direct them to login page

  • Button: the Login to view price button displays below the product title, customers click button and it directs them to the login page

4. Configure the text/button color

5. Click Save

Check the result on the front store

Need support?

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

Creating Lock for collections

Steps to manage

  1. Open the app > click on the Locks section > Create Lock

  1. Choose the type of lock you want > Specific Collections > Create lock:

Creating Lock for specific products

Steps to manage

  1. Open the app > click on the Locks section > Create Lock

  1. Choose the type of lock you want. There are 6 contents the app supports hiding: Entire website, Product, Collection, Blog, Page URL, Page.

In this case, please choose "Specific products" to start setting up lock for the products you want.

Get Started with Sami B2B Lock,Password Protect

Welcome to Sami B2B Lock, Password Protect — the simple, powerful solution to secure your Shopify store for B2B customers. This app helps you lock pages, hide prices, and protect your store with passwords, so only authorized visitors can access sensitive content.


What can you do with this app?

  • Lock specific products, collections, or pages

Hide prices until customers log in or enter a password

  • Control access for wholesale or VIP customers

  • Create custom rules for different customer groups, etc, ...


  • 🚀 Quick Start Guide

    1. Install the App

    You can install the app from the Shopify App Store: 👉 Sami B2B Lock, Password Protect

    2. Enable App Embed

    After installation, go to your Shopify Theme > App Embeds, and enable Sami Lock. Don’t forget to Save the changes.

    3. Create Your Lock

    Explore Sami B2B Lock, Password Protect and create custom lock rules to control who can access your store’s products, collections, or pages

    4. Test Your Lock

    Visit your store in a private/incognito window or a different customer account to see the rule in action. Make adjustments as needed.


    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    document
    [email protected]
    [email protected]

    Set up Name for the lock.

  • In the Lock resources setting > Click Manage collections and select the collection you want to add to this lock:

    1. In the Product Settings section, tick on the checkbox to hide the product, product price, or the “Add to cart” button. You can select one of these options or select all.

    You also can configure to hide the product/product price of this collection within other collections/pages in your store by toggling on the setting below:

    1. Set up Lock conditions: Select who can (or cannot) access the content, and the direct page when customers access the Lock. Refer to this document:

    1. Click Save to update the changes.

    Check the result on the front store.

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    1. Set up Name for the lock:

    1. In the Lock resources section, you can choose between the “All products” option or the “Manual products” option. In this case, we use the “Manual products” option as an example:

    *You can choose more than one product.

    1. In the Product Settings section, tick on the checkbox to hide the Product, Product price, or the “Add to cart” button. You can select one of these options or select all.

    You also can configure to hide the product in other places by using the below settings:

    These settings help you:

    • Hide products within collection pages/product lists

    • Hide products on Google via search/search engine.

    1. Set up Lock conditions: Select who can (or cannot) access the content, and the direct page when customers access the Lock. Refer to this document:

    1. Click Save to update the changes

    Check the result on the front store.

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    Require customers to enter passcode to add product to cart

    Steps to manage

    1. Open the app > click Locks > click Create Lock button or open an existing Lock

    2. Enter the Lock Name

    3. In Lock resources > Content to lock section, select Specific products or Specific collections option > Add products/collections you want to apply the Lock

    4. Then the product Product settings option will show up, tick on Hide product button add to cart checkbox

    5. In Lock conditional section > Select who can (or cannot) access the content > select Visitors with passcode

    6. Enter passcode and description

    7. Click Save

    Now, view your front store:

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Enable or disable Lock(s)

    Disable a Lock

    When a lock is disabled in the app, it doesn’t work on the site.

    Steps to manage

    1. Open the app > click Locks

    2. Hover the lock > click on the Disable icon:

    Enable a lock

    When a lock is enabled in the app, it works on the site.

    Steps to manage

    1. Open the app > click Locks

    2. Hover the lock that has been disabled > click on the Enable icon:

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Lock conditions

    Logged-in customer:

    If you create a lock with this condition, the customers will be immediately redirected to the Login page of your store (or any pages that you choose in the “Redirect to” section).

    [email protected]
    [email protected]
    Selected customers:

    There are two types of this condition, Automate condition and Manual.

    1. The Automate condition option will help you manage the customers to be able to see the locked site by the customer tag. Then once the customers access the locked site, they will be redirected to the Login page of your store (or any pages that you choose in the “Redirect to” section).

    The customer tag will be added to the customer account in the Customers folder of Shopify.

    You also can use other conditions for this Automate option:

    • The customer's email contains: Show content to customers logging in to your store with email ID that contains the text you put in the setting.

    • B2B customer: Show content for customers that have B2B account. The B2B account is determined by the company information in their account. If the account doesn't have this information, the app will hide content from them.

    1. The Manual option will help you choose and manage the customers who can be able to view the locked site

    Visitors with passcode:

    This condition will make the customers enter a passcode to view the locked site. They will be redirected to the lock page which has a passcode input field.

    Secret link:

    Just like the “Visitors with passcode” condition, the customers will need a code to add to the tail of the page URL. Then they will be able to see the locked site.

    The normal link has this form: abc/product/special

    The secret link will be like this: abc/product/special?access=test1234

    The URL tail: ?access=test1234 is the code you have to set up in the app setting. You will have to create a code tail and add it to the tail of the page URL you want to access that locked page

    Then once the customers access the locked site, they will be redirected to the lock page.

    Country restriction:

    This lock condition allows you to hide content based on customer's IP address. If the customer's IP is outside of the country you set up in the app, the lock will be activated.

    We take data from customer's IP and location to activate the lock (not from the Shopify Market data)

    You can either configure which countries are granted access to the locked content or are restricted from seeing the content:

    • Allow only these countries:

    • Block these countries:

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    Translate app widget on the front store

    To achieve the result of automatic translation, please make sure the target language has been added to your font store. Please follow this article to know more: Shopify in multiple languages · Shopify Help Center

    Steps to manage

    1. Open the app > click Translation

    2. Click Add language > select the target language you want in the dropdown > click Add button

    3. Enter the fields with the target language you want to use in your front store

    4. Click Save

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Hide add to cart button for non-logged in customers

    Steps to manage

    1. Open the app > click Locks > click Create Lock button or open an existing Lock

    2. Enter the Lock Name

    3. In Lock resources > Content to lock section, select Specific products or Specific collections option > Add products/collections you want to apply the Lock

    4. Then the product Product settings option will show up, tick on Hide product button add to cart checkbox

    5. In Lock conditional section > Select who can (or cannot) access the content > select Logged in customers

    6. In ACCESS part, select Can access

    7. Click Save

    Check the result on the front store

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Configure color of text and button

    This setting allows you configure of text, button and notification message that describe the Locks on the front store.

    Steps to manage

    1. Open the app > click Settings

    2. In the Color Settings dropdown, select one of app config you want. They are Placeholder resources, Price & Add to cart, Notification with passcode, Input passcode, Notifications with message

    3. Click color buttons on the left to change the color of text and buttons and view the result on the preview section on the right

    4. Click Save

    Check the result on the front store

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Creating Lock for the whole website

    Steps to manage

    1. Open the app > click Locks > click the Create Lock button

    2. Choose the type of lock you want > Whole website > Create lock:

    Display “Login to view price” button/link on the front store

    After setting , you can also display a button or link on the collection page or product page to direct customers to login page.

    Please follow the steps set it up.

    Step to manage

    1. Open the app > click Settings

    2. In Notifications section, select Price & Add to cart

    Hide product price for non-logged in customers

    Steps to manage

    1. Open the app > click Locks > click Create Lock button or open an existing Lock

    2. In Lock resources > Content to lock section, select Specific products or Specific collections option > Add products/collections you want to apply the Lock

    Hide add to cart button for specific customers

    Steps to manage

    1. Open the app > click Locks > click Create Lock button or open an existing Lock

    2. Enter the Lock Name

    3. In Lock resources > Content to lock section, select Specific products or Specific collections option > Add products/collections you want to apply the Lock

    4. Then the product Product settings option will show up, tick on Hide product button add to cart checkbox

    5. In Lock conditional section > Select who can (or cannot) access the content

    [email protected]
    [email protected]
    [email protected]
    Set up Name for the lock.
  • As this lock is created to lock the whole website, it means whichever pages you click on in the store site, it will be locked!

  • So in the Lock resources section, there are two settings to help you exclude the page you want customers to access whereas the whole website is locked.

    • Exclude url: Write down the page URL you want your customers to see when accessing the site. To set it up, kindly write the URL tail only.

    For example, the page URL has format like this: https://trang-test12.myshopify.com/products/gift-card

    You should write: /products/gift-card -> Click Add icon:

    • Allow access to the homepage: Tick on this setting, customers will be able to view your homepage, then if they click on anything else in the homepage, the lock will work!

    If you untick all these above settings, the whole website will be locked and the lock works immediately once the customers access your site. They cannot go anywhere else until they satisfy the lock condition (login or enter passcode):

    1. Set up Lock conditions: Select who can (or cannot) access the content, and the direct page when customers access the Lock. Refer to this document

    1. Click Save to update the changes

    Check the result on the front store

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    Select one of the 2 option:

    • Plain text: the text will display under the product title, customers click text and it direct them to login page

    • Button: the Login to view price button displays below the product title, customers click button and it directs them to the login page

    1. Configure the text/button color.

    2. Click Save

    Edit "Login to see price" text:

    On the same Settings page > Click Translation > Find the section for the Login to see price text and edit:

    Check the result on the front store

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    Hide price for specific products and customers

    Then the product Product settings option will show up below, tick on Hide product prices checkbox

    1. In Lock conditions section > Select who can (or cannot) access the content > select Selected customer

    1. In ACCESS part, select Can access

    2. In Redirect to part, select Login Page

    3. Click Save to update the changes

    Check the result on the front store

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    6. In ACCESS part, select Cannot access or Can Access and set up the direct link

    7. Click Save

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected]

    Require customers to enter passcode to see product price

    Steps to manage

    1. Open the app > click Locks > click Create Lock button or open an existing Lock

    2. In Lock resources > Content to lock section, select Specific products or Specific collections option > Add products/collections you want to apply the Lock

    1. Then the product Product settings option will show up below, tick on Hide product prices checkbox

    1. In Lock conditions section > Select who can (or cannot) access the content > select Visitors with passcode

    1. Enter the passcode and description

    2. Click Save

    Now, view your front store:

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Hide product price on the front store for specific customers

    1. Open the app > click Locks > click Create Lock button or open an existing Lock

    2. In Lock resources > Content to lock section, select Specific products or Specific collections option > Add products/collections you want to apply the Lock

    1. Then the product Product settings option will show up below, tick on Hide product prices checkbox

    1. In Lock conditions section > Select who can (or cannot) access the content > select Selected customer

    1. In ACCESS part, select Cannot access

    There are 2 types to select customer:

    • Manual: click Manage customer button and select customers from all customers in your store

    • Rules: set up condition with customer tag. For example: customers – is tagged with – wholesale. Customers who has tag “wholesale will not be able to view the price o the selected products.

    1. Click Save to update the changes

    Check the result on the front store

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Translate Checkout rule's default messages

    In the app, error messages are divided into two types:

    • Custom message → A general message shown to the customer.

    • Condition-based messages → Displayed based on the specific conditions configured in the app, helping the customer understand the exact reason why checkout is not allowed.

    Error messages also support multi-language. If multiple languages are enabled and published in Shopify (Admin → Settings → Languages), then when customers switch the theme language, the checkout error messages will automatically be translated as well.

    Step to manage:

    1. Go to Locks > Open the created lock:

    1. In the Checkout rules section, navigate the Error message part > Default language, you will see all languages available (to add more languages, please set up in Shopify Settings as mentioned above)

    1. Click on the language you want and translate the texts:

    1. Then Save the changes.

    How does Lock notifications display on the front store?

    After config the Lock access in the app, you want to check the result on the front store?

    Please view this article to know more how the Lock notification show up on your site.

    There are 5 configurations. They are Placeholder resources, Price & Add to cart, Notification with passcode, Input passcode, Notifications with message

    Placeholder Resources

    On the collection page, the default lock icon shows up at the position of the product, below is the Message that notify about the hidden product.

    The Lock content is usually Hide products on all pages.

    Price & Add to cart

    If you select setting to hide add to cart and product price for non-logged in customers, there will be Login to see price link/button on the front store that directs non-logged in customers to the login page.

    Notifications with passcode

    On the front store, the page or product price is hidden and customers only can view the page if they enter the passcode.

    The widget will include one lock icon, the passcode box and the message.

    For example:

    • Enter the passcode to view the page

    Input passcode

    The widget will include the passcode box and the message.

    For example:

    Enter the passcode to view product price

    Notifications with message

    The widget will include a Lock icon, placeholder, notifications message, and a Back button that directs customers to the previous page.

    Need support?

    If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address

    Creating a Checkout lock

    This Lock type prevents customers from completing checkout with restricted products. Customers can still add those products to the cart, but the order will be blocked once they proceed to checkout.

    An error message will appear to inform customers of the reason:

    Step to manage:

    1. From the app's dashboard page > go to Locks page > Create lock > Choose lock content: Checkout lock

    [email protected]
    [email protected]
    [email protected]

    Set up name for the lock in the Lock information part.

  • In the Checkout rules setting, set up condition to apply this lock for products.

  • If a customer proceeds to checkout and either the cart items or the customer information match the rules configured in the app, the system will automatically display an error message on the checkout page. In this case, the customer will not be able to complete the checkout and create the order.

    There are currently 7 conditions. It can be applied based on Product condition or Customer condition:

    For example, restrict 2 products from being paid at checkout

    • Please use condition: Select products

    • Click Add another condition to have more rules for this lock:

    • There are two types of error messages:

      1. Custom message – a general notification shown to the customer.

      2. Condition-based messages – displayed based on the specific conditions configured in the app, helping the customer understand the exact reason why checkout is not allowed.

    In this case, the default error messages shown to customers are:

    ‘Product {title} cannot be checked out’ and ‘Your email is not eligible for checkout’

    These appear based on the conditions you configured: Select products (block listed) and Customer email (is equal to)

    How to translate the texts there to another language?

    1. After finishing the setup, click Save.


    You have finished the Lock setup part. Now to officially activate the lock rule at checkout page, you have to add Sami B2B Lock to your Shopify Checkout page.

    1. Go to Shopify Settings > Checkout > Scroll down to the bottom of the page > Checkout rules > Add rule:

    1. Click Validation to complete the checkout rules:

    1. Turn on the validation:

    The configuration is completed. You can check the result in the front store now.

    Don't forget to activate the app in your theme. Kindly refer to this document to know how to embed the app.