You may also like items

Hello all,

Hope you are well !

I was looking how to remove certain items from “you may also like” section and after some digging I managed to do find this :

  • I added a tag “AVIS” and put this code :

{% for recommendation in recommendations.products %}
{% if recommendation.tags contains “AVIS” %}
{% continue %}
{% else %}

  • {% render 'card-product', card_product: recommendation, media_aspect_ratio: section.settings.image_ratio, image_shape: section.settings.image_shape, show_secondary_image: section.settings.show_secondary_image, show_vendor: section.settings.show_vendor, show_rating: section.settings.show_rating %}
  • {% endif %} {% endfor %}

    It did remove the undesired items. However, it’s now blank :

    The idea would be to keep the 4 you may also like items but do not use the ones that contain “AVIS”

    Custom Chip Bags – Hint of Happiness

    password : seiyud

    Thank you so much in advance for your help !

    Karla

    @Karla8 it is showing 4 on product page

    Hello Suyash1,

    It looks like it only affects this item :

    Custom Chip Bags – Hint of Happiness

    When I check other products, I indeed have all 4 :thinking: