hidden collection via customer tags shows "no access" message, but is also showing product...

gnlweirdness
New Member
3 0 1

So I am using the simple code:

{% if customer.tags contains ‘vip’ %}
{% section ‘collection’ %}
{% else %}
{{ pages.no-access.content }}
{% endif %}

I have set up my no access page, and tested this. It works, the warning removes for customers with my tag. But for some reason the test product is still showing in the collection to anyone with the link. 

I am very confused as to why this is happening as the collection is set up to be viewed by only those tagged.

0 Likes