product category filter in collection.rain

sspindsspind Member Posts: 13

Hi!


Can somebody pls tell me why this code is not working in collection.rain.

The code should show a predefined snippet selected by product categories.

The product categorie seems to exist (link in BE shows category id)


{% for category in shop.categories %}

    {%if category.id == '9775609' %} {% include 'snippets/kategorietop.rain' %}    {% endif %}

 {% endfor %}


I also tried

{% for category in product.categories %}

does not show eather anything, there is no debug info.

Sign In or Register to comment.