Unlock Exclusive Access: How to Create Private Pages for Agents & Stockists on Shopify

Hey everyone! As a Shopify expert who spends a lot of time sifting through community discussions, I often see recurring questions that highlight common merchant needs. One that popped up recently, asked by @veluxe1, was about creating a dedicated, private page for agents or stockists – a place where only they can see specific products and make purchases, completely hidden from the general public. It's a fantastic question, and the community really dug in to offer some great solutions.

It sounds simple on the surface, right? "Just make a page private!" But on Shopify, achieving true access control with different pricing or product visibility for specific customer groups can involve a few different paths. Let's break down the insights from the thread and give you some clear options.

The Quick & Dirty: Liquid Gating with Customer Tags

Many community members, like @Parampreet and @Shopatch, immediately jumped to the most straightforward (and free!) method: leveraging Shopify's customer tags and a little bit of Liquid code in your theme. This is great if you need to hide content visually and your agents don't require different pricing or truly iron-clad security.

How to Set It Up (Liquid Method):

  1. Tag Your Customers: First things first, you need to identify your agents. Go to your Shopify admin, navigate to Customers, open each agent/stockist's account, and add a unique tag like agent or stockist. This is your "key" for access.

  2. Create Your Private Content: Build a new page or a collection containing the products you want your agents to see. Crucially, do not link this page or collection in your main navigation menus. You'll share the direct URL with your agents.

  3. Restrict Access in Your Theme: This is where the code comes in. You'll edit the template for that specific page or collection. Here's the snippet @Parampreet shared, which is spot on:

    {% if customer and customer.tags contains 'agent' %}
      
    {% else %}
      

    You do not have permission to view this page.

    {% comment %} Or redirect to another page {% endcomment %} {% endif %}

    You'd replace with the actual content or collection loop for your agent products.

  4. Hide Products from Public View: Ensure these agent-specific products are not included in any of your public collections or navigation. You might also want to exclude them from search results using the Search & Discovery app or by simply not adding them to your main public catalog.

  5. Test Thoroughly: Log in as an agent to confirm access and then log out (or log in as a regular customer) to ensure the page is blocked as intended.

The Caveat: As @Shopatch wisely pointed out, this Liquid gating hides the UI, but it's not true access control. If someone somehow got the direct product URL, they could still potentially access it (and add it to their cart), even if the page itself is visually hidden. This method is perfect for visual hiding, but less so for truly enforced security or different pricing.

The App-Based Solution: Effortless Locking

If you're not comfortable diving into theme code, or you need a more robust solution than Liquid gating without going full B2B, apps are your friend! @topnewyork specifically mentioned the Locksmith app, which is a popular choice in the Shopify ecosystem. Many apps in the "gated store / wholesale lock" category offer similar functionalities.

How Apps Operate:

These apps typically work by allowing you to create "keys" or rules based on customer tags (just like our manual Liquid method). You can then apply these rules to specific pages, collections, or even individual products. The app handles the code, ensuring that only customers with the correct tag (and often, who are logged in) can view the content.

Pros: Super user-friendly, no coding required, and often provides more secure access control than simple Liquid hiding, enforcing rules at the page, product, and cart level. It's a great middle ground for many merchants.

The Robust Route: Shopify's Native B2B Catalogs

Now, for the most secure and feature-rich option, especially if your agent/stockist relationships are more formal and involve specific pricing, volume discounts, or payment terms: Shopify's native B2B catalogs. This was a crucial point brought up by @tim_tairli and elaborated on by @Shopatch.

A significant update (since April 2026, as @Shopatch clarified) is that Shopify's foundational B2B tools – company profiles, payment terms, volume pricing, and up to 3 catalogs – are now available on all paid Shopify plans (Basic, Shopify, Advanced), not just Shopify Plus! This is a game-changer for many businesses looking to manage wholesale or agent relationships directly within Shopify.

Why B2B Catalogs are the 'Proper' Way:

  • True Access Control: Unlike Liquid hiding, B2B catalogs enforce access at a foundational level. Products assigned to an agent's catalog are only visible and purchasable by logged-in contacts associated with that specific company.

  • Specific Pricing: You can set unique pricing for products within a catalog, ensuring your agents get their special rates, distinct from your public store prices.

  • Volume Pricing & Payment Terms: Access to features like volume discounts and custom payment terms (e.g., net 30) directly integrated into the checkout process.

  • Scalability: While Shopify Plus offers unlimited catalogs, the ability to have up to 3 catalogs on standard plans is more than enough for many small to medium businesses managing a specific agent/stockist group.

If you're serious about managing a wholesale or agent channel with full control over pricing and access, diving into Shopify's native B2B tools is highly recommended. It's the most robust, properly enforced solution that ensures your exclusive products and pricing remain truly exclusive.

So, which route is best for you? If you need a quick visual hide and don't care about airtight security or unique pricing, the Liquid code method is a free starting point. If you want more security and ease of use without code, a locking app is a fantastic choice. But for comprehensive, truly enforced access, special pricing, and a scalable solution for your wholesale or agent business, Shopify's built-in B2B catalogs are now more accessible than ever and offer the most robust features. It's exciting to see how Shopify continues to empower merchants with these powerful tools, making it easier to grow your business, whether you're selling direct to consumer or managing a complex network of agents and stockists. Start your Shopify store or leverage these advanced features today to streamline your operations!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases