How to hide products from "All Products" tab?

Highlighted
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
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
Shopify Partner
482 86 121

@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
Telegram: @sarhov
Try Shopify free for 14 days,
0 Likes