Locksmith supports hiding locked products across your shop, preventing them from appearing to unauthorized customers in collection listings, search results, and anywhere else product lists appear.

However, if a collection has some products which are locked, and some that aren't, the result can be a collection with empty or partially-empty pages. This is because Shopify only permits filtering products out of a collection page by page - there's no way to reshuffle products so that every page appears full.

To solve this problem, try these steps:

  1. Create versions of each collection that are geared toward each audience. For example, if you have a "Staff" collection that has some manager-only products, create one "Staff" collection with just non-manager products, and another "Staff" collection with all the manager-friendly products.
  2. Next, add links to all versions to your shop's navigation menus. We'll take care of filtering the links themselves in the next step, but for now, make sure your shop's navigation gives your visitors a way to get to the collection that's right for them.
  3. Finally, lock each collection, making sure to check the box labeled "Hide any links to this collection and its products in my shop's navigation menus". This will instruct Locksmith to only show a collection link to the visitor if they're qualified to open its lock.

Handling the "All" collection

Shopify generates a default collection called "All", located at the /collections/all url of your shop. Out of the box, this collection contains your entire product catalog.

Because this collection is subject to the same conditions that are described above, it may be useful to override this collection with one that just contains the products in your shop that are public friendly.

To do that, simply create a new collection in your shop called "All", and manually specify the products (either individually or using conditions) that should be visible to the public. This will override the default collection, and visitors who open it will see normal, full collection pages, containing your public-friendly products.

Handling "Frontpage" collections, and other theme-specific product areas

Some themes include the ability to feature a collection of products on the frontpage, or elsewhere. Since most themes don't support swapping collections based on the visitor, it'll require custom code to use audience-specific collections in these cases.

This is something we can handle for free for Locksmith subscribers. If you need this for your shop, make sure your Locksmith subscription is in good standing, then drop me a line at isaac@uselocksmith.com.

Did this answer your question?