Shopify themes, liquid, logos, and UX
hello,
I have created custom collection name wholesale.
now I want to do restricted for this page those who are customer tags are wholesale.
https://hilasonwholesale.myshopify.com/collections/wholesale
I already done customer tags wholesale,
how can I do it?
Hey there, @phpfaruk
Bo here from Shopify Support!
That is a really great question. There is actually an application with this specific functionality. Locksmith is an app that allows merchants to lock their store or certain parts of their store from the general public. Once the site is locked customers can gain access if they have the right "key". One option for this is having the customer's email contain something specific i.e. they must be tagged with "wholesale", for example. This app comes with a 14-day trial and is then $9 per month.
We actually have a fantastic guide on selling wholesale with Shopify right here. Let me know how this goes and if there is anything else I can assist you with, I'm happy to help!
All the Best,
Bo
Bo | Retired Staff Member
without app, I want to do myself.
I know liquid .
I have tried myself, but it is not working
{% if customer.tags == "wholesale" %} {% include 'wholesale.collection' %} {% else %} <h2> you must be wholesale customer </h2> {% endif %}
.
Ah, I see, thank you for clarifying. I would recommend posting this in our Design Board so some developers will see your query, they should be able to help you out there!
All the Best,
Bo
Bo | Retired Staff Member
I myself solved.
Thanks
Hey @phpfaruk
I am so glad to hear that you found a solution. If you are willing it would be fantastic if you could share that solution with us here so that other merchants can benefit from your knowledge.
All the Best,
Bo
Bo | Retired Staff Member
I'm looking for something similar, how did you fix it in liquid?
Yes, I myself have solved it. what types of restricted do you want?
show me your store website.
User | RANK |
---|---|
74 | |
72 | |
63 | |
63 | |
41 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023