Issues with Crave them missing Content for liquid code?

Hi!

I am really looking for some help here. We used to use the Debut theme and I was able to set up a “Private” Wholesale collection that only worked when customer was logged in and tagged with the wholesale tag. I followed the directions on this blog and it worked great!

How to add a wholesale area to your Shopify store without an app – Envision.io

I am now ready to switch to the Theme CRAVE but I cannot for the life of me get the coding to work with this theme as mentioned in the above link. There is not coding for Content for liquid in this theme and that is what I need in order to get this started

Everything I have tried just messes up the website. Looking to publish as soon as possible

please help!

Thanks so much

Courtney

1 Like

@fizzsoakery

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Thank you

I just published the new site. And currently the wholesale is showing but in my previous site “debut” Wholesale would only work if you were logged in. I just published the new site Bath bombs, Gifts, Candles and More – Fizz Soakery

but I need to code it so the wholesale section shows a message that they must be logged in and have a wholesale account

here is a preview of what the previous site was like

https://ysdnrh9i53rpexxe-39908507799.shopifypreview.com

1 Like

@fizzsoakery

thanks for url but i can’t see any error can you please share screenshot

As mentioned it wasn’t an “error” I am receiving. In my previous theme Debut I was able to edit the Code {{ content_for_layout }} in the Edit code section in Theme.liquid.

In the NEW theme that is now active and published there is NO option for {{ content_for_layout }} in the theme.liquid area of my site. I am trying to follow these steps attached . or if you look at this link How to add a wholesale area to your Shopify store without an app – Envision.io this what I am trying to do. It worked on my old theme but does not on this one

With some playing around and different coding I actually ended up adding a new collection, created a new template for it with this code

{%if customer.tags contains ‘wholesale’%}
{% section ‘wholesale-collection’ %}
{%else%}

{{ pages.no-access.content }}

{%endif%}

BUT Now I am getting an error message on the page when I am signed in and I have the account tagged so this is where I am at now - this is the error I receive

Liquid error: Error in tag ‘section’ - ‘wholesale-collection’ is not a valid section type