Shopify themes, liquid, logos, and UX
Huge plea for help, been stuck on this for days! Everything with my code is working okay for the goal of restricting access unless a customer logs in. But the problem with this collection template, is it's affecting every single collection (all collections are restricted unless you log in), so i'm assuming there's a problem with my "else" are anything below that.
I only put the collection template under 1 collection, "revolving market", for my site www.preluxed.com.au, but every collection is affected. please help, for reference my theme is "Taste" and here is my code i added. Thanks everyone!! I just want it to affect the collections i add the template under.
Please exchange the lines.
When you write
If customer
Content will available to login user only
Else
Content will visible to everyone
Endif
Hope this will help...
Hi could you please let me know what the replacement coding for the "
Content will available to login user only" and "Content will visible to everyone" as i tried and am beginner not sure how to work it
{% if customer %}
{pages['No.access'].content}
Visible to login customer only
{% else %}
{% section 'main-collection-banner' %}
{% section 'main-collection-product-grid' %}
{% endif %}
replace your code with above.
Thanks for that, i put it in but it still isn't working, and now the page won't show. I think it's so difficult 😞
User | RANK |
---|---|
215 | |
180 | |
63 | |
54 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023