How it works
enabling on your theme to get started, install the https //apps shopify com/search?q=b2b%20catalogs app and you'll see a list of your store themes simply enable the themes you'd like b2b catalogs to be active on configuring your catalogs b2b catalogs uses a combination of customer tags, product tags, and product metafields to control product visibility across your store customer tags to identify a customer as a b2b buyer, add the b2b tag to their customer record in shopify this is the same tag used across sparklayer to identify b2b customers tag description b2b marks the customer as a b2b customer products tagged as b2b only will be visible to them, and products tagged as b2c only will be hidden product tags you can control basic product visibility using the following product tags in shopify tag description b2b only hides the product from standard (b2c) customers only customers with the b2b tag will see it b2c only hides the product from b2b customers only standard (b2c) customers will see it where products are hidden when a product is hidden using b2b catalogs, it is hidden across your store including product pages, collection pages, and your store's search results please note products tagged as b2b only will still appear in the sitemap automatically generated by shopify however, their product pages won't be visible to search engines, so they won't show up in external search results if you need these products to be completely removed from your sitemap, you'll need to follow shopify's guidance on hiding pages from search engines keep in mind that doing this may also prevent those products from appearing in your store's own search results advanced catalogs customer group visibility for more granular control, you can use the sparklayer settings product metafield to show or hide products for specific customer groups this is useful if you want certain products to only be visible to particular segments of your b2b customers understanding customer group names the group name you use in the metafield corresponds to your sparklayer customer groups in shopify, customers are assigned to groups via tags using the format b2b \[group] for example customer tag in shopify group name in metafield b2b vip vip b2b wholesale wholesale b2b trade trade the b2b prefix is used on the shopify customer tag, but when referencing the group in the metafield, you only use the group name (e g vip, not b2b vip) you can learn more about how customer groups work in our customer groups guide setting up the metafield in shopify before using advanced catalogs, you'll need to create the sparklayer settings metafield definition in your shopify admin here's how in your shopify admin, go to settings > custom data > products click add definition set the following values field value name sparklayer settings namespace and key sparklayer settings type json then click save once the metafield definition has been created, you can add visibility rules to individual products by editing the product in shopify and scrolling down to the metafields section how the rules work the sparklayer settings metafield accepts a list of rules, where each rule specifies a customer group and whether the product should be displayed for that group json { "customer group" "group name", "display" true/false } by default, all customer groups can see a product setting display to false will hide it for that group please note products using customer group metafield rules must still be tagged b2b only for the visibility behaviour to apply using the "base" group the special customer group base controls the default visibility for all b2b customers this is useful when you want to hide a product from everyone and then selectively show it to specific groups for example, setting the base group to false will hide the product for all b2b customer groups, even if the product is tagged b2b only examples hide a product from all b2b customers except a specific group in this example, the product is hidden for all b2b customers except those in the "vip" customer group (i e customers with the b2b vip tag) json \[ { "customer group" "base", "display" false }, { "customer group" "vip", "display" true }] hide a product from a specific customer group in this example, the product remains visible to all b2b customers except those in the "vip" customer group json \[ { "customer group" "vip", "display" false }] summary what you want to do how to do it show a product only to b2b customers add the b2b only tag to the product show a product only to b2c customers add the b2c only tag to the product hide a product from a specific b2b customer group add a sparklayer settings metafield with the group set to display false show a product only to a specific b2b customer group set base to display false and the target group to display true