How to Sell Passwords with WooCommerce

If you’re looking to sell access to a page in your WordPress site and you want to do so with a WooCommerce product, this guide is for you.

In this guide, we’ll do the following:

  1. Create the page you want to direct customers to.
  2. Create a product in WooCommerce.
  3. Attach the password list to the product and the page you want the password/s to unlock.
  4. Customize the email customers will receive once they’ve purchased the product.

Note: This guide requires the plugin Passster. Make sure to have it installed before following these steps.

Step 1: Create the page you want to direct customers to

The first thing we’ll need to do is create the password-protected page you want to direct customers to once they’ve purchased your product.

To do this, take the following steps:

  1. From your WordPress dashboard, go to Pages > Add New.
  2. This page is your end product, so customize it as you see fit with page content, a title, and more.
create protected page
  1. Once you’re happy with your page content, it’s time to protect it so only customers with a password can access it. To do this, click the Page tab in the right-hand sidebar and scroll down to the Passster section.
  2. Next, click the Activate Protection toggle button to protect the page.
  3. Next, we’ll need to select what protection type you want. In this case, select either Password List or Password Lists from the Protection Mode dropdown.
protected page password lists
  1. Underneath this is another dropdown that allows you to select which of your password lists you want to use. Check out our detailed guide on password lists to see how to set these up.
select password lists protected page
  1. In this section, you can also customize the protection form in Overwrite Defaults.
  2. Once you’re happy with your page, click Publish.

Now we have our page set up. We’ll next need to create a product that customers will buy to gain access.

Step 2: Create a product in WooCommerce

This product is how you’ll sell the password that will give customers access to a page on your WordPress website.

To create it, take the following steps:

  1. From your WordPress dashboard, go to Products > Add New.
  2. On this page, you’ll create your product. Give it a name, description, image, pricing, and more. All of this will advertise the page customers will unlock once they’ve purchased.
sell a password product

Next, we’ll need to add the page and password list you’ve just created to this product.

Step 3: Attach the password list and page to the product

  1. While still on the product edit screen, scroll down to the Product data section.
  2. The first thing you’ll want to do is click the Virtual checkbox on this page. This will mean customers don’t have to enter shipping information at the checkout.
sell a password virtual product
  1. Next, click the Passster tab on the left of this section.
  2. Click the checkbox next to Generate password. This will create a new password each time the product is purchased automatically.
  3. Next, select the Password List you’ve already created from the dropdown underneath. This password list should match the password list you selected when creating your protected page.
sell a password password list
  1. Once this is done, scroll up to the top of the page and click Save Draft. This will refresh the page and add a new dropdown to the Passster tab.
  2. Lastly, select the page you want customers to access after purchasing in the Protected Page dropdown.
sell a password protected page
  1. Once you’re happy with your product, click Publish.

Note: If you don’t see the Protected Page dropdown or the page you want within the dropdown, it’s likely because the page and this product don’t use the same password list. Once they’re using the same list, your page will appear.

Now we have your protected page and product set up. The last step is to customize the email WooCommerce will send to customers once they’ve purchased.

Step 4: Customize the purchase confirmation email

This email can contain anything you like, but by default, it will contain the product name, password, and an unlock link customers can use to access the content.

To customize this, take the following steps:

  1. Go to WooCommerce > Settings from your WordPress dashboard and click the Emails tab at the top of the page.
  2. Scroll down the page until you get to the Passster: Send Password email and click the Manage button on the right.
send password email
  1. On this page, you can enable or disable this email and customize it with a different subject line and additional content to make it your own.
sell password customize email
  1. Once happy, click the blue Save Changes button at the bottom of the page.