Locksmith
Install LocksmithContact us
  • Quick Start
  • πŸ’‘Basics
    • A Locksmith Overview
    • Creating locks
    • Creating keys
    • Compatibility with other apps and Shopify features
    • Removing Locksmith
  • πŸ”†Tutorials
    • Approving customer registrations
    • Creating restricted wholesale products
    • Hiding product prices and/or the add to cart button
    • Selling digital content on Shopify
    • More tutorials...
      • Setting up multiple price tiers
      • Customizing messages
      • Customizing the customer login page
      • Customizing the registration form
      • Customizing the passcode form
      • Customizing Locksmith’s "Access denied content" messages, and redirecting customers
      • Customizing the email list signup form
      • Showing multiple prompts on the same page
      • Showing content only to specific Markets
      • Input lists
      • Protecting against bots
      • Earn recurring revenue on your exclusive content using ReCharge
      • Use Locksmith and PayWhirl together to grant access based on subscriptions
      • Liquid locking basics
      • Restricting checkout from the cart
      • Confirmation key condition
      • Restricting customers to a specific collection
      • Passcode-specific redirects
      • Grow your subscriber lists with Klaviyo
      • Use Klaviyo as an access control list
      • Use Mailchimp to collect customer emails
      • Hiding out-of-stock products
      • How to use a private browsing session
      • Granting access to variants by visitor input
      • Offering different variants by postal code
      • Locking products by tag
      • Locking multiple pages at once
      • Making a product accessible exclusively from the direct product link
      • Creating private team areas
      • Importing customers in bulk
      • Disabling Locksmith for certain theme files
      • Adding translations to your Locksmith messages
      • Redirecting using Locksmith
      • Locking variants
        • Limiting the scope of variant locks using the product tag key condition
        • Handling JavaScript DOM errors caused by variant locks
      • Locking the customer registration form
      • Locking the search results page in your store
      • How to clear cache for a single website
      • Disabling Locksmith for certain theme files
      • πŸ› οΈManual mode
      • Grant access for a limited time when using passcodes or secret links
      • Testing Locksmith on unpublished themes
      • Locking blog posts
      • How to access your browser's dev tools
      • Restricting the cart for mixed products and combinations of products
      • Locking products by vendor
      • How do I hide my Shopify store's header and footer
      • Hiding navigation links for locked resources
      • Hiding products from product-grids
      • Restricting a product so that it can only be purchased by new customers
      • Automatically managing the seo.hidden metafield using Locksmith
      • Locking the home page
      • Setting up checkout validation with Locksmith
      • How to hide theme sections, blocks, and snippets
  • πŸ”‘Keys: Access methods in Locksmith
    • About key conditions
    • Customer account keys
    • Passcode keys
    • Secret link keys
    • Visitor location keys
    • More about keys...
      • Inverting conditions in Locksmith
      • Combining key conditions
      • "Has purchased..." key
      • Using the "Force open other locks" setting
      • Liquid key basics
      • Manual mode
      • Excluding content from locks
      • IP address keys
      • Newsletter keys
      • Limiting the scope of variant locks using the product tag key condition
  • 🌻FAQs
    • Why aren't my locks working?
    • FAQ: I see blank spaces in my collections and/or searches when locking
    • Can Locksmith hide content from my in-store search?
    • Locksmith is not working with my page builder app
    • What should I do if my site is loading slowly?
    • I'm the administrator of my site and I cannot access pages because of Locksmith locks.
    • More FAQs...
      • I'm having trouble using Locksmith with a site speed optimization app.
      • The app isn't loading. What do I do?
      • Can Locksmith protect shipping methods, billing methods, or coupon codes?
      • I switched themes, and Locksmith isn't working
      • Why isn't my passcode, secret link, newsletter, or location key working?
      • Can Locksmith lock Shopify's public JSON API for my online store?
      • Why are my customers seeing a reCAPTCHA when logging in?
      • My passcode or newsletter prompt is not updating on my store when I change it.
      • My featured collections on my home page only show one product.
      • My infinite scrolling doesn't show all of my products.
      • My customers have to enter their e-mail address into the Mailchimp key every time they visit.
      • How do I know which customers have used a certain key?
      • Why is Locksmith adding information to my orders?
      • Locksmith isn't installing correctly!
      • Locksmith is not uninstalling correctly!
      • How does Locksmith affect search engines and SEO?
      • How do I change where customers are redirected to after registration on Shopify
      • The thing I want to lock isn't showing up in the Locksmith search
      • I am getting an "already taken" error when trying to create a metafield definition for seo.hidden
      • How do I add a hero banner image to Locksmith's access messages
  • πŸ“’Policies
    • Usage agreement
    • Locksmith's pricing policy: Pay what feels good
    • Privacy policy
    • Data policy
    • Contact us
  • πŸ”¦Developer Tools
    • Locksmith Admin API
    • Locksmith Storefront API
    • Locksmith variables
    • Unsupported functionality
    • Requests from Locksmith
  • More developer docs...
    • Using the Admin API with Locks
  • App Integrations
    • Easy Appointment Booking
Powered by GitBook
On this page
  • Locks
  • Keys
  • Chaining (Combining) conditions together: OR versus AND
  • OR
  • AND
  • Inverting Keys
  • The "force open other locks" setting
  • Setting up cart/checkout validation

Was this helpful?

Export as PDF
  1. Basics

A Locksmith Overview

PreviousQuick StartNextCreating locks

Last updated 4 months ago

Was this helpful?

Locksmith is a simple yet powerful tool to help you make sure the right people see the right things in your Shopify store. In the spirit of the name of our app - Locksmith - you'll be using "locks" to determine what content in your store is restricted and using "keys" to denote how, when, and who gets access.

Locks

Locks are created using the search bar within our Locksmith app. You can search for most resources in your store by name. More in depth information on the in-app search bar here:

A lock restricts access to something on your shop.

You can lock:

  • Your entire shop

  • Pages

  • Products

  • Collections

  • Prices - .

  • The shopping cart

  • The login page

  • The registration page (type 'register' into the Locksmith search bar)

  • And more, with custom Liquid locks: Create a custom lock by clicking the Start a Liquid Lock link above the Locksmith search bar..

After searching, once you select the search result you want to hide and click Save. You'll see some useful options, such as:

  • Is the lock currently active?

  • Should it also protect the products in this collection? (Disabling this means only the collection page itself will be locked.)

  • Should it hide the collection, and it's products, from search results and other lists?

  • Should it hide links to this resource from navigation?

You'll see different options depending on what type of resource you’ve locked.

Keys

A key permits access to the locked resource based on your criteria. They are created on the lock page using the "+ Add key" button:

Keys allow you to specify the exact conditions that give your customers access to the locked resource.

  • Check out the full list of keys in the dropdown menu on a lock page.

  • You can also create your own custom keys with Liquid. Create a custom key by choosing custom Liquid from the keys menu.

More information on creating keys here:

Chaining (Combining) conditions together: OR versus AND

Locksmith gives you flexibility to add multiple keys and logically combine them together to create unique unlock conditions.

OR

  • When you set up your key, you can create another key right away, by clicking on Add Another Key. This button allows you to add another separate key to your lock.

  • Keys connected by the OR operator can individually open your lock whether or not the conditions on the other keys are met.

This allows you to specify multiple different conditions that a customer can use to access. When used, a customer only needs to meet one of the conditions in order to access.

Notice that there are multiple key symbols, and each key is preceded by "Permit if the customer..." text:

AND

  • Adds another condition to the current key. Choose your first key, and click on the "+ add key condition" below the condition. You'll see another selector to add your next condition.

  • If you connect key conditions with AND, all of those conditions must be met before the visitor gets access.

Notice that there is only one key symbol for each key, and each condition is inset under the symbol and text:

Inverting Keys

Use the inverse of a key for added flexibility.

  • In the key, click the "invert" box in the upper right.

  • This creates the opposite effect for the key.

  • For example: Permit if the customer is not visiting from the United States. --When used on the Locations key.

Our guide that explains this a bit more is here:

The "force open other locks" setting

If you have created several locks that cover overlapping content (e.g. locked collections with some of the same products inside), you may want to turn ON the "force open other locks" key setting. This setting tells Locksmith to grant access to all of the content covered by the current lock, even if other locks might apply:

Setting up cart/checkout validation

Locksmith has a feature you can use to create a checkout rule that ensures that products tagged with a specific product tag cannot be purchased without a specific customer tag:

Let us know if you have any questions for us! You can contact us via email at team@uselocksmith.com.

Under Advanced: Is this a manual lock? (More on that .)

πŸ’‘
✨
✨
Creating locks
more information here
Product variants
here
Creating keys
Combining key conditions
Inverting conditions in Locksmith
Using the "Force open other locks" setting
Setting up checkout validation with Locksmith