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
Highlighted

Hello 

 

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes
Shopify Partner
455 80 98

@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