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:
- Create the page you want to direct customers to.
- Create a product in WooCommerce.
- Attach the password list to the product and the page you want the password/s to unlock.
- 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.
Table of Contents
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:
- From your WordPress dashboard, go to Pages > Add New.
- This page is your end product, so customize it as you see fit with page content, a title, and more.
- 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.
- Next, click the Activate Protection toggle button to protect the page.
- 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.
- 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.
- In this section, you can also customize the protection form in Overwrite Defaults.
- 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:
- From your WordPress dashboard, go to Products > Add New.
- 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.
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
- While still on the product edit screen, scroll down to the Product data section.
- 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.
- Next, click the Passster tab on the left of this section.
- Click the checkbox next to Generate password. This will create a new password each time the product is purchased automatically.
- 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.
- 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.
- Lastly, select the page you want customers to access after purchasing in the Protected Page dropdown.
- 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:
- Go to WooCommerce > Settings from your WordPress dashboard and click the Emails tab at the top of the page.
- Scroll down the page until you get to the Passster: Send Password email and click the Manage button on the right.
- 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.
- Once happy, click the blue Save Changes button at the bottom of the page.