Code for setting up a Private collection using Dawn theme

Hi there,

I have watched a ‘How to Video’ and it was fairly easy to follow for me to create a VIP only access collection. When I create new template using the code I was given in tutorial the words like ‘VIP’ & ‘Collection’ should then be green to be active but mine stay red.

I have already set up the VIP collection creating the ‘Conditions’ with ‘must equal to’ being ‘VIP’ but in drop down under Vendor I cannot see VIP and I guess that is due to the code still being ‘red’.

I am not a coder as you can tell but I thought the process was fairly easy until it’s not. : )

Can anyone help please. Thank you Below is the code used.

{%if customer.tags contains ‘vip’%}

{% section ‘collection’ %}

{%else%}

{{ pages.no-access.content }}

{%endif%}

HI @Sassy1 ,

Hope you are doing well.

Can you please share the store details? and also let me know what you want to achieve?

What I understand from this, You want to display the list of products if customers are subscribes the VIP newsletter. correct me if I am wrong.

Hello @Sassy1

Can you share your website URL so that I can check and provide you with that valid code to set up a private collection on your website

Hello and thank you for your quick response.
My shop url is https://www.thesistahoodau.com

I have set up everything ready including "VIP AREA ONLY’ under Main Menu,
Collection is done as well but nothing will link together without the
correct code.

Many thanks
Nella

Hi Nella,

Can you please check if customer subscribe to the VIP newsletter then does that customer have the VIP tag with in customer admin area?

based on that we can manage such things.

Hi Akibhusen

Sorry I thought I had replied to your question to me about VIP Tag, I had this set up also.

My shop url is https://www.thesistahoodau.com

I have set up everything ready including "VIP AREA ONLY’ under Main Menu,
Collection is done as well but nothing will link together without the
correct code.I have also set up the email segment that will capture ‘VIP Subscribers’ that have registered.

Thank you

Hi, can you share the link to the ‘How to Video’?

Thanks!

Hi, thanks for the video;
However I get this error section/collection.liquid does not exist

Do you know how to fix it?

Thanks for your help!