Is there a way to hide specific products from the product recommendations?

Hi @selinadg ,

First you need to add grouppeople tag for the products you don’t want to show.

Next you will need to change the code to check it: https://i.imgur.com/zR5Z9hQ.png

{%- for product in recommendations.products -%}

  • {% assign check = 0 %}

    {% for tag in product.tags %}

    {% if tag contains ‘grouppeople’ %}

    {% assign check = 1 %}

    {% break %}

    {% endif %}

    {% endfor %}

    {% if check == 0 %}

    {% include ‘product-card-grid’, max_height: 250, product: product, show_vendor: section.settings.show_vendor %}

    {% endif %}

  • {%- endfor -%}

    Hope it clear to you.

    1 Like