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

    • 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 ...
    • 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: ...
    • How To Create Free Plan In Membership V1?

      The AiTrillion Membership + Subscription app gives you the option to create a FREE PLAN. It can be created for free membership registrations. Follow the below steps for guidance – Step 1. Go to Membership > Membership plan Step 2. Choose Add Free ...
    • Customize membership page

      Introduction Personalizing your membership page is essential for creating a unique and engaging experience for your community. By customizing the membership page, you can effectively showcase your brand identity, highlight membership benefits, and ...
    • How Does Product & Collection Discount Work Based On Members Plan? (Membership V1)

      An automatic product discount coupon can be created based on some specific collections or products for the current plan subscribers. Check the quick video to setup the discounts: Follow the below steps for guidance Step 1: Go to Membership >> ...