How to Hide a WooCommerce Shop from Guests, so only Logged In Users can see it

WooCommerce Private Store Plugin We’ve recently added a new feature to our WooCommerce Private Store plugin. As well as hiding a WooCommerce shop behind simple password protection, you can automatically hide a WooCommerce shop from guests so that only logged in users can see it.

There are lots of reasons for wanting to hide WooCommerce from people who don’t already have an account on your website. You may have a WooCommerce wholesale store that is only available to logged in wholesalers. Maybe you’re setting up a members-only WooCommerce shop and want to hide it from non-members. Whatever your reason, you can easily hide WooCommerce from guest users using WooCommerce Private Store.

Get WooCommerce Private store and start hiding WooCommerce today!

How does it work?

The new option in WooCommerce Private Store lets you tick a box to automatically unlock your shop for logged in users. If you tick this box on the settings page then it works like this:

  1. A guest user visits your website. They can see all your main pages but none of the WooCommerce content. If you have links to the WooCommerce shop page, categories etc. in the menu then these will be hidden from public view. Any WooCommerce sidebar widgets are hidden too. The same applies to other WooCommerce elements such as the cart. The guest user has no idea that your WooCommerce shop exists. Even if they try to access a WooCommerce page directly (e.g. if they know the URL of a product), they will be asked to enter a password.
  2. The user logs into their account. Some visitors to your website will have an account, which they can log into. They can login using the usual WordPress/WooCommerce login page. (This might be /wp-login or a front end login, if you have one.)
  3. The hidden WooCommerce shop is unlocked. After logging in, all the WooCommerce content becomes visible to the user. This might include links to the main Shop page in the menu, WooCommerce widgets and all the individual pages within WooCommerce. The logged in user can browse your store and buy products with no restrictions.

How to hide a WooCommerce shop from non logged in users

If you like what I’ve described above, the good news is that it’s really easy to set up. Here’s how to do it. I have assumed that you already have a WordPress website with WooCommerce set up, and you’re ready to hide the WooCommerce shop from logged out visitors.

  1. Buy WooCommerce Private Store. Download the plugin files and license key from the order confirmation page or the email receipt.
  2. Log in to the WordPress admin and go to Plugins > Add New.
  3. Click ‘Upload’ and then ‘Browse’ and upload the plugin files you downloaded in step 1.
  4. Install and activate WooCommerce Private Store.
  5. Go to WooCommerce > Settings > Private Store. Enter your license key and configure the other plugin settings. Make sure you tick the ‘Logged In Users’ box. (You can ignore the ‘Login Form’ settings as you won’t be using password protection for your store. Instead, you will use the WordPress user login.)
  6. Click ‘Save’.

Hide WooCommerce Shop From Logged Out Users

And that’s it! Your WooCommerce shop is now completely hidden from public view. Guests can see your normal web pages but none of the WooCommerce content. Once they log in to their account, the whole of WooCommerce instantly unlocked for them. Simple!

Yes. All the links to your WooCommerce content will be hidden from logged out users (guests). This could be menu items linking to your main Shop page, categories or individual products. It could be the WooCommerce widgets listing products, categories etc. It also includes elements such as the shopping cart icon.

All WooCommerce content – and the links to it – will be hidden from guest users. As if by magic, all this hidden content will become visible when a user logs in.

What if I don’t want my customers to have individual user accounts?

That’s fine. The plugin also lets you hide a WooCommerce shop behind a simple password. Instead of having to log into their account, customers visit your private store login page and enter a password.

On entering a correct password, the hidden WooCommerce shop is fully unlocked for them. This includes the main WooCommerce Shop page and all your products, categories, product tags, etc. Customers can find products, add to cart and check out in the usual way.

I just want to hide parts of WooCommerce

If you want to hide parts of WooCommerce but not your whole shop then I’d recommend our other plugin, WooCommerce Password Protected Categories.

This lets you lock down specific categories within a WooCommerce store, and the products within them. Your other categories and main Shop page remain public. This means that you can have public and hidden areas within a single WooCommerce shop.

Do you have a hidden WooCommerce shop?

Now it’s your turn.

Do you use WooCommerce Private Store or a different solution to hide a WooCommerce shop? Is it more useful to password protect WooCommerce or to hide it from users until they login? Are there any other features you would expect from a private WooCommerce plugin?

Please leave your comments below.