Welcome! Locksmith is a simple yet powerful tool to help you make sure the right people see the right things in your Shopify store.
To get started, head to the “Locks” tab in Locksmith. The search bar at the top of the screen allows you to find the resource that you'd like to lock.
A lock restricts access to something on your shop.
You can lock:
- Your entire shop
- The shopping cart
- The login page
- The registration page (type register into the Locksmith search bar)
- Product variants
- And more, with custom Liquid locks: Create a custom Liquid lock by clicking the something else link under the Locksmith search bar.
After searching, once you click on the search result you want to hide, you’ll be brought to the lock settings page. There you'll see some useful options, such as:
- Is the lock currently active?
- Should it protect the products in this collection?
- Should it hide the collection, and it's products, from search results and other lists?
- Should it hide links to this resource from the navigation menu?
- Under Advanced Options: Is this a manual lock?
You'll see different options depending on what type of resource you’ve locked.
A key permits access to the locked resource based on your criteria.
- Keys allow you to specify the exact conditions that give your customers access to the locked resource.
- Check out the full list of keys here, or in the dropdown menu on the right side of the lock page.
- You can also create your own custom keys with Liquid. Create a custom key by choosing (custom) from the key dropdown menu.
OR versus AND
Locksmith gives you flexibility to add multiple keys and logically chain them together to create unique unlock conditions.
- When you set up your key and click the Create Key button, you’ll be presented with another dropdown menu automatically. Selecting from this dropdown will add a separate key to your lock.
- Keys connected by the OR statement can individually open your lock whether or not the conditions on the other keys are met.
- Adds another condition to the current Key. Choose your first condition, and then click the blue "and" to add another condition.
- If you connect Key conditions with AND, all of those conditions must be met before the visitor gets access.
IF and UNLESS
Use the inverse of a key for added flexibility.
- This is the default setting on your keys. The visitor gets access if they meet the conditions of that key.
- Next to Permit you'll see a blue IF. Click on that to turn it into UNLESS.
- Unless sets up the key so that the visitor gets access if the inverse of that key is met.
- For example: Permit unless the customer is tagged with 'wholesale'.
Sounds great! I want to:
... protect all of my products:
- Shopify gives you a collection that contains your entire catalog by default.
- Type “all” into the Locksmith search bar, and click on the All Products link that appears.
... require a passcode:
- Lock the resource by searching for the name in the Locksmith search bar.
- Use the key Permit if the visitor gives the passcode..., and set your desired passcode.
- Customize what your visitor sees under Advanced Settings in that key.
- You can use multiple passcodes with the key Permit if the visitor gives one of many passcodes.
- Note the current limitations of passcode keys. We're working on this. :)
... lock my wholesale products:
- Check out this detailed guide to selling wholesale with Locksmith.