Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Private Collection by Tag Shopify 2.0 (Prestige Theme)

Private Collection by Tag Shopify 2.0 (Prestige Theme)

dmitry_z
Shopify Partner
68 0 7

I'm looking to lock 1 collection to customers with "VIP" tag, tried a few solutions but they don't work on Shopify 2.0.

 

I created new collection template (collection.private-come-together.json) and also new Section (private-collection-template.liquid) to replace this part in Template json:

"sections": {
"main-1": {
"type": "private-collection-template",
"blocks": {
"9e0d0566-5da8-4ced-bef0-bda787d72437": {
"type": "Filter",
"settings": {

 

Then I tried to add the following to Section (private-collection-template.liquid)

 

{%if customer.tags contains 'vip'%}
{% section 'collection-template' %}
{%else%}
{{ pages.no-access.content }}

{%endif%}

 

But I'm stuck to actually make this template to be tag locked. 

 

Could anyone please help me to make it work? 

 

Shopify 2.0

Prestige Theme

- Dmitry
Replies 0 (0)