Installation & basic setup
WooCommerce Private Store just takes a few minutes to set up. Your entire WooCommerce store will be completely private and hidden from the public parts of your website.
1. Install WooCommerce Private Store
Once you have purchased WooCommerce Private Store, you can get the plugin files and license key from the confirmation page. You will also receive a confirmation email with your license key and a download link to the plugin. If you don’t receive this email, please check your spam folder. If it’s not there, send us a support request.
Your confirmation email also contains a link to download your purchase invoice as a PDF.
Once you have downloaded the plugin, go to your WordPress admin, then go to Plugins → Add New → Upload Plugin. Click Choose File and select the woocommerce-private-store.zip file you just downloaded. Once uploaded, click Activate.
2. Enter your license key
Next, go to WooCommerce → Settings → Products > Private Store and enter your license key. You can get this from the order confirmation page and the order confirmation email. Click Save Changes to validate and store your license key. If you get an error saving your license key, please try again. If the error persists, please view our troubleshooting page.
Once your license key is active, the plugin will instantly hide WooCommerce from public view. The following instructions will tell you how to choose a password(s) and configure your private store further.
3. Configure the plugin settings
Use this video tutorial to watch the private shop plugin being set up, or read the written instructions below.
You will find the settings for the plugin in WooCommerce → Settings → Private Store.
Enter your license key here. The plugin will only work with a valid license key.
Enter one or more passwords that will be used to password protect WooCommerce. Customers can use any valid password to unlock your entire store. There is currently only one password, which when entered, will unlock all shop pages including the main shop page, products, product categories, the shopping cart, checkout, and the “My Account” area.
Password Expires After
This setting controls how long the customer will remain logged into the store before their password expires. This works by adding a cookie in the user’s browser. The minimum cookie expiry period is 1 day and the maximum is 9999. Enter the number of days you would like them to remain logged in after entering a correct password.
Login Redirect URL
By default, if a customer logs into the private store via the main login page then they will remain on that page and will see a message that the store is unlocked.
If a customer tries to access a page in your store by clicking on a direct link (e.g. to a product page if they know the URL) then they will be shown the login form. On entering the correct password, the store will be unlocked and they will be taken back to the page they were trying to view.
You can add a Login Redirect URL to automatically redirect customers to a specific page (e.g. the main shop page) after entering a correct password.
Logged In Users
Tick this box to automatically unlock the store if the customer is logged into their WordPress user account (e.g. administrators, blog authors, logged in customers, etc). This means that logged in users can access your private WooCommerce store without having to enter a password.
For more advice on using this option, please see our article on How to Unlock the Private Store for Logged In Users.
Hide the login form when the store is locked
This option only appears when the ‘Logged In Users’ box is ticked.
It hides the password input form and submit button from the store login page. If you do this, then the only way to unlock the store will be to log into a user account on your website.
We recommend using the the Form Message field (see below) to provide clear instructions on how customers can log into their user account. You can either do this by linking to your login page, or you can embed a login form created using a plugin such as Theme My Login or Profile Builder.
WooCommerce Private Store comes with a login form shortcode which you can use to add a password entry form anywhere on your site. These settings allow you to configure the login form which is created by the shortcode:
You can enter some text here to customise the wording that appears on the WooCommerce login form, above the password entry box.
This is the message displayed to customers above the password box on the login form. (Tip: This field supports HTML in case you want to add more advanced content here.)
This is the label used next to the password box on the login form.
Tick this to put the label inside the password box (i.e. a placeholder) rather than in front of it.
You can change the text on the ‘Submit’ button for the password protection form for WooCommerce.
4. Create a password entry login form
If you’re using the password protection provided by WooCommerce Private Store then you can add a login form to any page or widget. Customers will use the login form to enter their password and unlock your store. Once a customer has unlocked the private store, they will be able to view all the WooCommerce content including menu links to the main Shop page, product categories, product widgets etc.
Note: If you’re ticked the Logged In Users option on the settings page, then you don’t need to use the built-in password protection. Instead, the store will automatically unlock whenever a customer logs into their WordPress user account on your website. If you’re using this option, you can use the built-in WordPress login form (at /wp-login.php), the WooCommerce Account page (which shows a register/login form for logged out users), or another login plugin such as Theme My Login.
Plugin installation & setup service
If you don’t want to set up the plugin yourself, the one of Codeable’s WordPress experts will be happy to do it for you. They can install and set up WooCommerce Private Store to meet your exact requirements.
To book the plugin setup service, simply click the ‘Get Started’ link above and enter your information. The price and project description have been pre-filled for you. You should read through the description and add information about the type of protection you require for your private store. You can then submit the project, and a Codeable expert will contact you soon.
WooCommerce Protected Categories
The WooCommerce Private Store plugin is designed to hide your entire WooCommerce store. If you just want to protect parts of your online shop while leaving other areas of your store public, you might be better off with our WooCommerce Protected Categories plugin instead.