How to hide products from "All Products" tab?

Tourist
6 0 0

Hi there, Larry here.

How can I hide my products (wholesale products) from "All Products" tab?
I don't want a customer to see my wholesale products when they click on the Shop (All Products) button.

0 Likes

Hello 

 

Want to modify or custom changes on store hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Content Writer | Digital Marketing | SEO Expert | Site Optimization | Web Design | Web Development
0 Likes
Highlighted
Shopify Partner
462 80 94

@Muezart 

 

You need somehow identify the wholesale products, adding tag to such products.

Also you need to hide them from search as well, they can appear in search as well.

When you tag them, for example, "wholesale_product" then in templates where you loop over the products, you need to exclude them, using

{% unless product.tags contains 'wholesale+product' %}
here the products are being loaded....
{% endunless %}
Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes