How to hide particular collections and categories from non logged in customers?

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?

https://restor.pk/

Hi @Aliza11

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:

Yes, it is possible to hide certain categories and collections from B2C customers who purchase without logging in on Shopify. You can do this by using Shopify’s customer account and authentication features in combination with conditional logic in your theme’s Liquid code. Here’s an overview of the steps:

  1. Create customer accounts: First, you need to enable customer accounts in your Shopify store so that B2B customers can log in.

  2. Create customer groups: Next, create two customer groups in your Shopify admin: one for B2B customers and another for B2C customers.

  3. Assign customers to groups: Assign your B2B customers to the B2B group and B2C customers to the B2C group.

  4. Modify your theme code: In your Shopify theme’s code, you can use conditional logic to determine whether a customer is logged in or not and whether they are part of the B2B or B2C group. Based on that information, you can show or hide certain categories and collections.

Thanks, Kate for the assistance. Can you please help me with this? B2B customer accounts have been created please guide me that how can I make groups?

Hi @Aliza11

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:

Here’s how you can create customer groups in Shopify:

  1. Go to your Shopify admin and navigate to the “Customers” section.

  2. Add tag for B2B Customer accounts. Example “B2B Account”

  3. From the Customers page, click Create segment.

  4. In the editor, select filters that group customers with common characteristics.

  1. Save