I have two types of customers. One will be logged in to purchase as they will be B2B and the second is those who can purchase without logging in they will be B2C. I want to hide a few categories and collections from B2C customers who will purchase without logging in. Is it possible?
{% if customer %}
Your stuff here
{% endif %}
You have to add that condition on your liquid template when you need
Where and how? Can you please write the code in detail?
As I have explained the scenario in detail.