Collection template
Find any “for” loops for products in the collection:
{% for product in collection.products %}
and add this snippet right after the opening of the loop:
{% if product.type == 'PPLR_HIDDEN_PRODUCT' %}{% continue %}{% endif %}
You may also need to do this if the collection shows a list of product types in a dropdown — replace product.type
with whatever is needed to skip our type.
Sometimes there are multiple collection templates, and this change should be applied to each template.
Search template
Find any “for” loops for items in the search results:
{% for item in search.results %}
and add this snippet right after the opening of the loop:
{% if item.type == 'PPLR_HIDDEN_PRODUCT' %}{% continue %}{% endif %}