We have set the product visibility for the category "Für Geschäftskunden".
This category should only be visible for users in the "Geschäftskunden" group.
The products inside this category are not visible, as expected. However, the category itself still appears in the shop even for users not in the group. It even says there is one product in it, when you click on it, none appear.
It should be so that for users not in the group "Geschäftskunden" not only the products are invisible but the category itself as well. That should be the case on all category and product pages, special loops and the navigation.
This depends a bit on the theme and site widgets, so it does not always work the same on all sites. However, there are a few settings that can be made which may help resolve this.
1) In B2BKing -> Settings -> Other please enable the Product Visibility Cache setting:
2) In B2BKing -> Settings -> Access, disable the "Hidden has priority" setting:
These settings make visibility work at a deeper level (using hooks that are accessed earlier) and can often help completely hide categories.
Please try setting these 2 options and let me know if the categories are still showing there,
Unfortunately, all the settings change is hide the products for the group "Geschäftskunden" as well (even though it shouldn't). The category itself is still visible for everyone.
I am not entirely sure why that is, as normally these settings can also completely hide the category.
I wonder if maybe there is some kind of conflict or something else affecting the site. If you'd like, we can check it directly on the site - for that, we would need a backend login to the site or to a staging clone site.
If we are not otherwise able to get this to apply, there is another option, to hide them through group-specific CSS. We can apply CSS for only specific groups to hide specific categories.
Another possibility that comes to mind now is perhaps a conflict with the languages plugin (e.g. different visibility by language). It may be needed to go to both language versions of a category and set visibility in both.
If you have any further issues, just let me know and we can look further into that,
We have now noticed that there is, in fact, a problem with the translation and the B2BKing plugin.
There is a french translation and, even though the translated category is configured as well, when you open the shop in the translated version, no products show up.
The translated products and categories work like the original ones in Polylang, so it is unclear to me why they behave differently.
We have set the product visibility for the category "Für Geschäftskunden".
This category should only be visible for users in the "Geschäftskunden" group.
The products inside this category are not visible, as expected. However, the category itself still appears in the shop even for users not in the group. It even says there is one product in it, when you click on it, none appear.
It should be so that for users not in the group "Geschäftskunden" not only the products are invisible but the category itself as well. That should be the case on all category and product pages, special loops and the navigation.
Attached files: Screenshot at Apr 03 11-53-18.png
Hello Daniel,
Thank you for purchasing our plugin,
This depends a bit on the theme and site widgets, so it does not always work the same on all sites. However, there are a few settings that can be made which may help resolve this.
1) In B2BKing -> Settings -> Other please enable the Product Visibility Cache setting:
2) In B2BKing -> Settings -> Access, disable the "Hidden has priority" setting:
These settings make visibility work at a deeper level (using hooks that are accessed earlier) and can often help completely hide categories.
Please try setting these 2 options and let me know if the categories are still showing there,
Kind regards,
Stefan
Hello Stefan
Thank you for your reply.
Unfortunately, all the settings change is hide the products for the group "Geschäftskunden" as well (even though it shouldn't). The category itself is still visible for everyone.
I am not entirely sure why that is, as normally these settings can also completely hide the category.
I wonder if maybe there is some kind of conflict or something else affecting the site. If you'd like, we can check it directly on the site - for that, we would need a backend login to the site or to a staging clone site.
If we are not otherwise able to get this to apply, there is another option, to hide them through group-specific CSS. We can apply CSS for only specific groups to hide specific categories.
Hi Daniel,
Thank you for the access details,
I installed B2BKing Pro on the site, but I actually do not seem to be able to reproduce the issue.
I took a video showing how I am hiding some categories and then seeing them hidden on the frontend completely:
https://www.loom.com/share/544c39f2a8494739b8b9664cfcc94506?sid=8a2087cd-260a-4d03-9be6-7e1a5a6f2777
I also went over some of the B2BKing settings at the end.
I am probably missing something, or we are doing something differently or with different settings. Any idea what that could be?
Kind regards,
Stefan
Hello Stefan
Thank you very much for your help.
I have again checked all settings and created new examples. Now it seems to work as intended.
I am still unsure what the problem exactly was, perhaps an error in the setup/settings or maybe incorrect caching?
Anyways, the problem is now solved, thanks again!
Glad to hear that seems to be solved,
It certainly could have been a caching issue.
Another possibility that comes to mind now is perhaps a conflict with the languages plugin (e.g. different visibility by language). It may be needed to go to both language versions of a category and set visibility in both.
If you have any further issues, just let me know and we can look further into that,
We have now noticed that there is, in fact, a problem with the translation and the B2BKing plugin.
There is a french translation and, even though the translated category is configured as well, when you open the shop in the translated version, no products show up.
The translated products and categories work like the original ones in Polylang, so it is unclear to me why they behave differently.
A possibility is that this is caused by the plugin's product visibility cache (this saves a list of visible products in a cache).
This setting is found in B2BKing -> Settings -> Other -> "Product visibility cache".
If enabled, please try disabling that to check if it resolves the issue.