I see blank spaces in my collections and/or searches where locked product used to be!
Some strategies to improve the appearance of your collections and searches when Locksmith is filtering out products
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.
There are, however, some other options to get around this issue.
Option 1: Turn up the maximum number of products that are displayed per page
Option 2: Don't mix locked products and unlocked products in the same collections
Simple enough. To make sure that each customer type gets pointed to the right collections, follow these steps.
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.
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.
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.
Option 3: Use an app to create "infinite scroll" pages on your store
The Product Filter and Search app from Boost Commerce is a solid app that integrates with Locksmith and works to remove locked products from collection pages AND searches, based on the rules that you've set up in Locksmith. They also have an infinite loading feature that nicely gets around the issue of collection pages appearing empty. Please note that you will have to contact their support directly in order to "turn on" the Locksmith integration.
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. Most themes don't support swapping collections based on the visitor, so it will require custom code to use audience-specific collections in these cases. This kind of thing would only work with specific key types such as customer tags or e-mail addresses.
Feel free to get in touch if you have questions about any of this! You can do that by just hitting the message icon on the bottom right of this screen ↘️