Hello everyone, i wanna ask if it’s possible if i create one page and display product just specifically for agents and stockist and only them are can access that page and buying from there, i don’t want that page can be seen by public or another customer (whose not agent), how i can make this happened?
Info : agents/stockist are already in the list, not a new one.
Hi veluxe1 — doable, but the right route depends on how airtight it needs to be, so here’s the honest version.
Since your agents/stockists are already a defined group, tag those customer accounts (e.g. agent). Then gate a page/template with Liquid:
{%- if customer and customer.tags contains 'agent' -%}
{%- comment -%} show the agent products here {%- endcomment -%}
{%- else -%}
<p>This page is for registered agents. Please log in.</p>
{%- endif -%}
Keep those products out of public view by not adding them to any public collection and excluding them from search (Search & Discovery). Surface them only inside that gated template.
The caveat most answers skip: Liquid gating hides the UI, it isn’t true access control. Someone who knows a product URL can still reach it (and maybe add to cart). If it just needs to be hidden, the above is enough. If agents get different pricing or it must be genuinely locked — on Shopify Plus, native B2B / catalogs is the proper tool (separate catalog + pricing per company, enforced at checkout); otherwise a customer-tag locking app (the “gated store / wholesale lock” category) enforces it at page and cart level, which plain Liquid can’t.
So: simple hidden agent page → customer tags + the check above + hidden products. Real restriction/pricing → B2B (Plus) or a locking app. Tell me which you need and I’ll get specific on the template.
Good catch, tim_tairli — you’re right, I must have missed that. Since 2 April 2026 the foundational B2B tools (company profiles, payment terms, volume pricing, and up to 3 catalogs assigned via Markets) are on Basic/Grow/Advanced too — Plus is now only needed for scale (unlimited catalogs, direct catalog assignment to companies/locations, partial payments/deposits).
@veluxe1 — that upgrades the recommendation: the clean, properly-enforced route is now a B2B catalog for your agents’ company, no Plus and no third-party app required. Put the agent-only products in that catalog, keep them out of the online-store catalog, and they’re visible + priced only for logged-in company contacts, enforced at checkout — real access control, unlike the Liquid hide. The customer-tag/Liquid approach is still fine for a quick hidden page without enforced pricing, but B2B is the sturdier answer now that it’s on every paid plan.
Hi @veluxe1
You can achieve this without making the page public by following these steps:
Tag your customers
Go to Customers.
Open each agent/stockist account.
Add a tag such as agent or stockist.
Create the private page or collection
Create a new page or collection containing the products you want only agents/stockists to access.
Don’t add links to it in your main navigation.
Restrict access in your theme
In the page or collection template, check whether the customer is logged in and has the required tag.
Example:
{% if customer and customer.tags contains 'agent' %}
<!-- Show page content -->
{% else %}
<p>You do not have permission to view this page.</p>
{% comment %} Or redirect to another page {% endcomment %}
{% endif %}
Hide products from regular customers
Remove these products from your public collections.
Exclude them from your main navigation.
Optionally, prevent them from appearing in search results.
Test
Log in with an agent account to verify access.
Log in with a regular customer account (or stay logged out) to confirm the page is blocked.
If you don’t want to edit theme code, there are also apps that let you restrict pages, collections, and products based on customer tags without any coding.
Indeed, it is possible to set this up without requiring any complicated work. Based on your platform, this is the simplest approach to handle it since you want to handle it yourself:
If Shopify is being used:
You can make advantage of the Locksmith app.
How it operates: After installation, you may make a “Key” (rule) for that particular site.
Change the rule’s settings to “Allow access only if the customer is logged in and has a specific tag” (such as “Agent”).
Result: That page and its items won’t be shown to anyone who isn’t logged in or doesn’t have that tag.
If WooCommerce or WordPress are being used:
Members is a plugin that you can utilize; there is a free version.
How it operates: You can limit content according to user roles with this plugin.
Settings: You can designate your current agents to the newly created position “Agent.”
You can then limit the view to just the ‘Agent’ role in the settings of that particular page or product category.
As a result, only your agents who are logged in will be able to access the page, which will be immediately concealed from the general public.
You have total control over managing access whenever you need to add or remove an agent with either of these extremely user-friendly alternatives.
If it work, please mark my comment as a solution.
Thanks!