Hide Membership Product from Product & Collection Pages | Control Visibility with AiTrillion Membership V2

Hide Membership product from products/collection page

Introduction
In this article, we'll explore the intricacies of hiding memberships from product collections effectively.

Here are the steps to hide membership from product collection -:

  1. Add a hidden tag to membership products:

    • Go to your Shopify admin, click "Products," and then search for the membership products which are auto-created through the membership plans.

    • Open the product in Edit mode.

    • Add a tag named "hidden" from the product tag section.

    • Save the product.

  2. 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' %} <!-- Your code to display the product --> {% endunless %} {% endfor %}

    • Related Articles

    • Manage Membership Plans

      Introduction In this article, we'll explore the various ways members can manage their membership plans with ease and convenience. From navigating user-friendly dashboards to accessing support resources, we'll delve into the features and ...
    • Import members in Membership

      Introduction In this article, we will explore the process of importing members into Membership V2. Note: The members can only import into the manual renewal plan. To create a manual membership - Click here. Here are the steps to import members in ...
    • How To Setup Recurring Membership Module? (Membership V1)

      Watch the Quick Video below to set up the Membership module Membership Module Integration Steps Create Plan Add Short-codes in theme liquid files(Optional) Add Short-codes in theme liquid files only if using Restricted Access(Plan Rules) in ...
    • Add a Single Customer to Manual Membership

      Introduction In AiTrillion’s Membership V2, you have the flexibility to add individual customers to a membership plan manually—perfect for cases where automation isn't ideal or when handling special member requests. This article walks you through the ...
    • Create A One Time Payment Plan With Membership Module (Membership V1)

      Follow the below steps for guidance – Step 1: Go to Membership >> Dashboard >> Choose Add Paid Plan Step 2: Add plan details Plan Status: (Active or Deactivate) Payment type: (Stripe or PayPal) for paid plans only Plan Type: One Time Plan Name: ...