To begin configuring product visibility, the first step is to go to B2BKing->Settings->Access Restriction and disable "All products visible". This allows you to set product visibility by category or product.
By default, all categories will be hidden for all groups. In many cases, it's simpler to start with all products visible and just hide specific items.
To do that and make all categories visible in bulk, go to B2BKing->Tools->Visibility Editor, choose "All categories visible to ALL" and click on "Set all categories":
Go to each WooCommerce category and scroll down to Group Visibility rules:
Check each option per your needs and save settings.
You can set visibility not only per category, but also for each individual product. To do this go to the Edit product page, and scroll down to product visibility settings:
To set visibility for the product individually, change "Follow category rules (Default) to "Manual Setting". This will allow you to set visibility settings for each group:
In most cases, we recommend that you go to B2BKing -> Settings -> Other and enable "Product Visibility Cache":
This can have a significant effect on maintaining good performance when using visibility. It also helps apply visibility at a deeper level and may help hide products and categories in places where they're otherwise visible.
A common situation that occurs when using visibility is seeing that products are hidden, but categories are not. Often this can be resolved by enabling the product visibility cache.
However, that does not always work, and it will depend on the specific element, menu, widget that displays categories and how it works.
In cases where that does not work, the issue can usually be resolved by adding group-specific CSS to hide elements. We can assist you with writing the correct CSS via support.
All visibility settings are added through product or category meta data. Therefore you can also import visibility or modify it programmatically. Here's how that works:
1. Meta keys for a category:
Meta value: the value can be 1 for visible and 0 for invisible
2. Meta keys for a product:
Meta value: the value can be default (corresponds to "follow category rules") or manual (corresponds to manual visibility)
3. Meta keys for manual product visibility:
These work the same way as category meta data.
Powered by BetterDocs