This is the first time I have ever used WooCommerce Private Store on a website and am very happy so far. The store is only visible when registered users or vendors are logged in. Once a vendor is logged into the website, the store becomes visible and products can be purchased.
The WooCommerce Private Store plugin by Barn2 solved my issue. It gave me a password gateway to my B2B store. Yet, just as important, Barn2 Support quickly follows up with my questions. I highly recommend Barn2 Plugins.
This plugin works perfectly to hide the store from users unlogged.
I am using Memberships plugin for login instead of the password protect, and without problems.
Incredibly easy to setup to do exactly what I needed, which was to have a member's only store. The documentation is fantastic and the support first rate. The added bonus of having specific documentation already available for my exact usage requirements saved me so much time the plug-in has already payed for itself.