Hide specific products from certain users (product-level)

Goal Hide only selected products from certain customers (or guests), while leaving the rest of the store visible.

When to use this recipe

  • You have wholesale-only products that retail shoppers shouldn’t see.

  • You’re piloting a new line with a small group of customers.

  • You offer special items for VIPs or distributors only.


Step 0 – Before you start

Decide:

  • Which products you want to hide.

  • Who should still see them (e.g., tagged customers, logged-in only).


Step 1 – Lock content

  1. Go to Apps → B2B Lock → Locks → Add lock.

  2. In Step 1 – Lock content:

    • Name the rule: Hide product X from retail customers

    • Choose Hide products as the target.

    • Select the specific product(s) you want to hide:

      • Use search or product picker.

(Screenshot idea: product selector with one or more products checked.)


Step 2 – Control access

Now choose who can see these products.

Examples:

  • For wholesale-only products:

    • Condition: If the customer is tagged with wholesale

  • For logged-in customers only:

    • Condition: If the customer is signed in

Steps:

  1. In Step 2 – Control access, add your main condition (e.g., customer tag or signed-in).

  2. Optional: add OR conditions for additional groups (e.g., distributor tag).

Everyone who does not match the conditions will:

  • Not see those products in collections or search.

  • Be blocked from viewing the product detail page directly.


Step 3 – Advanced settings

Fine-tune:

  • Exclude any edge cases (e.g., test products or staff-only links).

  • Optionally add a fallback message if a blocked user hits the product URL directly (e.g., “This product is not available for your account”).

Click Save.


Check your storefront

  1. Visit a collection that contains the hidden products as a guest or non-tagged customer:

    • Hidden products should not appear in the grid.

  2. Log in as a customer matching your condition (e.g., tagged wholesale):

    • The same collection should now include those products.

Last updated

Was this helpful?