Hide products in all collection

Hide products in all collection

Add this code in main-collection-product-grid.liquid:

Idea

{% for product in collection.products %}

  {% unless product.metafields.seo.hidden.value == 1 %}

    {% render 'product-card', product: product %}

  {% endunless %}

{% endfor %}


    • Related Articles

    • Hide products from Google & Shopify Search

      1. Access Your Shopify Admin Log in to your account to enter the backend of your store. Familiarize yourself with the intuitive Shopify admin page and interface, setting the stage for effortless product management. Think of it as your store's control ...
    • Make mega menu show only collection that consist of products

      In header-mega-menu.liquid and header-drawer.liquid, add the followings: {%- if childlink.object and childlink.object.products_count == 0 -%} {%- continue -%} {%- endif -%} and {%- if grandchildlink.object and grandchildlink.object.products_count == ...
    • Setting up collections or grouping your products

      You can group your products into collections to make it easier for customers to find them by category. You can create two types of collections, an automated or manual collection. After you create a collection, it can be displayed on your online store ...
    • Remove/hide Sold out Badge for out of stock Products

      In base.css file, add this code at the bottom: .grid__item .card-wrapper:has(.price--sold-out) .card--media .card__badge { display: none !important; }
    • Selling digital products

      Along with physical goods, you can also sell digital goods on your Shopify store. Digital goods are often available to the customer immediately after they make their purchase. Some common digital products are online services and downloadable files, ...