Hide prices from guest users

Goal Let visitors browse your catalog, but hide prices until they log in.

When to use this recipe

  • You run a hybrid B2B + B2C or wholesale store.

  • You want only logged-in customers to see prices and place orders.


Step 0 – Before you start

Make sure:

  • B2B Lock is installed and the App Embed is enabled.

  • You can open the app and see the Locks list.


Step 1 – Lock content

  1. Go to Apps → B2B Lock → Locks.

  2. Click Add lock.

  3. In Step 1 – Lock content:

    • Name your rule: Hide prices from guests

    • Choose Hide prices as the target.

    • Decide the scope:

      • All products, or

      • Only specific products/collections (e.g., wholesale catalog).

(Screenshot idea: Rule Builder – Step 1 with “Hide prices” selected.)


Step 2 – Control access

  1. Switch to Step 2 – Control access.

  2. Add condition:

    • If the customer is signed in → Logged-in customers see prices; guests don’t.

  3. Scroll down to the message settings and customize what guests see instead of prices, for example:

    • Text: “Please log in to see prices.”

    • Add Login / Create account links if available.

(Screenshot idea: condition list with “is signed in” selected.)


Step 3 – Advanced settings

You can keep this simple for now:

  • Leave most options as default.

  • Optionally:

    • Fine-tune whether “Add to cart” is shown or hidden for guests.

    • Adjust any extra messaging or styling.

Click Save.


Check your storefront

  1. Open your storefront in a private/incognito window (guest).

  2. Navigate to a product or collection covered by this rule:

    • You should not see prices.

    • You should see your custom “login to see price” text.

  3. Log in as a customer and refresh:

    • Prices should appear as normal.

Last updated

Was this helpful?