How to hide items from 'shop all' section

This may sound super confusing but I really hope theres a way to do it.

Essentially what I want is this:

I have a spring collection to be released in september, however subscribers can pre-order it early in august (which we are currently in) before the general public. I planned on making a collection page that only subscribers could have access to via the link i send in the official email announcing the commencement of pre-orders.

HOWEVER, how do I hide these products from showing up in the ‘shop all’ section which the general public has access to? this is exclusively for subscribers

I hope theres a way to get this done I’m just not quite tech savvy enough for this. I’ve hidden all my products from Online Store for now until i figure out a way!

heres a link to my website if u need it

luxecandlestudio.com.au

I currently have the products sorted into a collection

Hey @gracieloo704

Please follow these steps:

  1. Create a New Collection for Subscribers:

    • Go to your Shopify admin, click “Products,” and then “Collections.”
    • Click “Create collection.”
    • Name the collection (e.g., “Spring Collection Pre-Order”).
    • In the “Visibility” section, uncheck “Online Store.”
    • Save the collection.
  2. Add Products to the Collection:

    • Add the products you want to be part of this exclusive pre-order collection.
  3. Share the Link with Subscribers:

    • You can find the link to the collection in your Shopify admin. Share this link exclusively with your subscribers.
  4. Hide Products from ‘Shop All’:

    • You’ll need to modify your theme’s code to exclude products from this collection in the ‘Shop All’ section.
    • Go to “Online Store” > “Themes” > “Actions” > “Edit code.”
    • Find the file that controls your ‘Shop All’ collection (this may vary depending on your theme).
    • Add a condition to exclude products from the hidden collection.

Here’s a sample code snippet that might help you exclude the products:

{% for product in collections['shop-all'].products %}
  {% unless product.tags contains 'hidden' %}
    
  {% endunless %}
{% endfor %}

You would tag the products in your hidden collection with ‘hidden’ or any identifier you choose.

Please note that this solution might require some customization based on your specific theme and setup.

Please take a backup of the theme before any change you made in your theme.

Thanks

1 Like

Hey, @gracieloo704 .

Thank you for reaching out and posting this question!

I’m delighted to see that you’ve got some suggestions from the Shopify Community! While I’m unable to assist with custom coding, you can definitely try @azamgill 's suggestion on hiding the products from Shop all and sharing the links with subscribers. However, I believe the links can still be shared by the subscribers with non-subscribers so I’m not sure if this solution is completely foolproof.

If you want to be able to control access to certain pages (eg. products, collections, etc.) and grant access to specific users, then I’d recommend using something like Locksmith - which doesn’t require much coding at all. The Locksmith app also provides a number of ways for you to grant access to the customers (eg. customer tags, customer emails, etc.) and they can be easily managed through an interface. If you need to get help with a third-party app, then the app developer is always available to assist you. Simply get in touch with them using the contact information found at the bottom of their app’s page.

That being said, I’d love to hear more about your business! What kinds of products are you selling? Do you have a marketing plan prepared for your store?

1 Like

I did consider the fact that subscribers may be able to share this link to non-subscribers but I didn’t think there was a way around it! I’ll check out that app though might be useful.

I’m a candle business so I am currently selling candles as well as wax melts! Looking at expanding my range to reed + car diffusers soon too as soo many people have been asking for them! In terms of a marketing plan not really, I’m still so new to selling - whilst I’ve come a fair way compared to when I first started selling, in marketing terms I’m pretty much empty handed :cry:

Wow thanks for all this information! I’m pretty beginner when it comes to coding, what should I put in the coding bit where you’ve put ‘your code to display the product’, essentially I just want all products that aren’t tagged with hidden to show but I don’t know how to code that because to me I would just write ‘show’ and i don’t think thats right

Hey, @gracieloo704 .

Thank you for following up!

It’s awesome to hear that you’re selling candles and wax melts, and I’m sure adding more product categories for your customers will help with expanding your audience! We’ve also got this amazing blog on ‘How To Start a Candle Business’ that may be able to help you with marketing your store!

If you have any other questions, don’t hesitate to let me know!

Hello I am also curious how to do this. Were you able to find a solution?