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.
Customer tags
b2b is a B2B customer. Everyone else is a retail (B2C) customer.Product tags
b2b-only products are shown only to B2B customers. b2c-only products are shown only to retail customers.Customer group rules
sparklayer.settings metafield hides variants from particular B2B customer groups, such as customers tagged b2b-vip. It doesn't hide anything from retail customers.What they see
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:
| Option | Use it to | How |
|---|---|---|
| B2B Catalogs | Hide whole products from B2B or retail customers across your store, and variants from B2B customer groups | Tags in your Shopify admin, no code |
| Shopify B2B-only content | Hide prices from signed-out visitors, show B2B-only content, menus and banners, or redirect pages | Liquid code in your theme |
| How products are shown | Change what SparkLayer's product interfaces show signed-in B2B customers, including hiding a variant or stopping it being added to the cart | Settings 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
- Install B2B Catalogs (opens in a new tab) from the Shopify App Store. The app guides you through setup.
- Open the app in your Shopify admin. Under Enable on your theme, choose a theme from the drop-down and click Enable.
- 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).
- Open B2B Catalogs in your Shopify admin.
- 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
After an app update or a change to your theme, a section such as a featured collection can start showing b2b-only products. Open B2B Catalogs, click Disable on your live (published) theme, then click Enable again. Disabling removes your changes to the access denied page, so keep a copy of them first.
The tags only work while B2B Catalogs is installed and enabled on your live (published) theme. Enabling it on an unpublished theme doesn't change your live store. Check the theme's Status shows Enabled under Enable on your theme.
Not with B2B Catalogs: it hides products, not collections. A third-party Shopify app can restrict who can open a collection's URL.
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
Mark customers as B2B and products as B2B-only or B2C-only with Shopify tags.
Show or hide variants for particular customer groups with the sparklayer.settings metafield.
Change what customers see when they open a product that's hidden from them.
Variant limits, carts, permalinks, third-party apps and theme syntax errors.
SEO and sitemaps, pricing, setup and disabling the app on a theme.
Disable the app on every theme, then uninstall it safely.
Last updated