Skip to content

B2B Catalogs

Applies toShopify

How it works

A product hidden from a customer doesn't show to them on product pages, collection pages or in store search. If a customer opens a hidden product's URL directly, they see an access denied page instead. Hiding happens as the page loads, so a hidden product can still take a place in a collection grid and count towards product and filter totals: see Collection grids, search and filter counts.

To make this work, B2B Catalogs changes the files of each theme you enable it on, so the theme can check who's browsing.

How a customer's tags decide what they see

Customer tags

A customer tagged b2b is a B2B customer. Everyone else is a retail (B2C) customer.
(this flows forward)

Product tags

b2b-only products are shown only to B2B customers. b2c-only products are shown only to retail customers.
(this flows forward)

Customer group rules

If you need it, the sparklayer.settings metafield hides variants from particular B2B customer groups, such as customers tagged b2b-vip. It doesn't hide anything from retail customers.
(this flows forward)

What they see

Hidden products drop out of product pages, collections and search. A direct link shows the access denied page.

To set up the tags, see Show or hide products.

B2B Catalogs or B2B-only content

B2B Catalogs hides whole products from B2B or retail customers, and variants from B2B customer groups. It can't hide a single variant from retail customers: see Variants and retail shoppers. To change what B2B customers see in other ways, use one of SparkLayer's other options:

OptionUse it toHow
B2B CatalogsHide whole products from B2B or retail customers across your store, and variants from B2B customer groupsTags in your Shopify admin, no code
Shopify B2B-only contentHide prices from signed-out visitors, show B2B-only content, menus and banners, or redirect pagesLiquid code in your theme
How products are shownChange what SparkLayer's product interfaces show signed-in B2B customers, including hiding a variant or stopping it being added to the cartSettings in your theme's code and the sparklayer.settings metafield

display: false in the sparklayer.settings metafield on its own only hides a product inside SparkLayer's views, such as search, quick order and the cart. Your theme's collection pages, product pages and featured sections need B2B Catalogs. See What hides what.

Install and enable B2B Catalogs

  1. Install B2B Catalogs (opens in a new tab) from the Shopify App Store. The app guides you through setup.
  2. Open the app in your Shopify admin. Under Enable on your theme, choose a theme from the drop-down and click Enable.
  3. Tag your customers and products. See Show or hide products.
More detail

B2B Catalogs adds a snippet to the theme, snippets/sparklayer-b2b-catalogs-access-denied.liquid, which shows the access denied page. If the app can't change a theme because of invalid Liquid syntax, see B2B Catalogs limitations.

Enable or disable it on other themes

Once you've enabled B2B Catalogs on one theme, the app lists all your themes under Enable on your theme. Each theme shows its Type (Published or Unpublished) and Status (Enabled or Disabled).

  1. Open B2B Catalogs in your Shopify admin.
  2. Find the theme and click Enable or Disable in the Action column.

You can enable it on published and unpublished themes, and on as many themes as you like.

More detail

Disabling B2B Catalogs on a theme removes its visibility rules from that theme, along with any changes you've made to the access denied page. Before you uninstall the app, disable it on every theme: see Uninstall B2B Catalogs.

Troubleshooting

Get help

Email support@sparklayer.io, or click the message icon in the B2B Catalogs app. See Contact support for when we're available and what to include.

Next steps

Was this page helpful?

Last updated