flash

Cyber Monday Deal | Save 30% on Lifetime Plans!

How to Sell Protected Content Using a WooCommerce Simple Product

Estimated reading: 5 minutes 243 views

Note: This feature is exclusively available in the Business Plan of Password Protected. Get Password Protected Pro now.

Password Protected Pro allows you to sell access to protected WordPress content (any page or post) through WooCommerce. After a customer purchases, it automatically generates a unique password and bypass link, so customers receive their access details on the order confirmation page and in their WooCommerce order email.

A simple product has one price and one set of access rules, so it suits a single report, page, or resource. Need several options, such as 7-day and 30-day passes? Use a WooCommerce variable product instead.

Before You Begin

Make sure you have:

  • Password Protected Pro (Business plan) installed and activated.
  • WooCommerce installed and activated.
  • The WooCommerce integration enabled from Password Protected → Integrations.
  • The page or post you want customers to access after purchase must have Individual Page/Post Protection enabled.

Configure WooCommerce Purchase Access

1. Enable WooCommerce Integration

  1. From your WordPress dashboard, go to Password Protected → Integrations.
  2. Locate the WooCommerce integration.
  3. Enable the integration and save your changes.
Enabling WooCommerce integration in Password Protected Pro.

2. Protect Your Page or Post

  1. Go to Password Protected → Content Protection → Post Type Protection.
  2. In the Individual column, tick the post type you want to sell access to (such as Page or Post) and click Save Changes. Don’t tick Global: that protects every item of that post type.
Enabling Individual protection for Pages and Posts under Post Type Protection.
  1. Open the page or post you want to protect.
  2. Scroll to the Password Protected Pro meta box below the editor, tick Enable Password Protection, and click Save Changes.
  3. Publish the page.
Enabling password protection in the Password Protected Pro meta box.

3. Create a WooCommerce Simple Product

  1. From your WordPress dashboard, go to Products → Add New.
  2. Enter the product title, description, and price.
  3. Under Product data, select Simple product.
  4. Enable the Virtual checkbox.

Note: The Purchase Unlock settings are available only when the product is marked as Virtual.

Configuring a virtual Simple Product in WooCommerce.

4. Enable Purchase Unlock

  1. In the Product data panel, open the Password Protected Pro tab.
  2. Enable Purchase Unlock.
  3. Under Unlock Content Type, select Individual Pages.
  4. Use Select Page to choose the protected page or post customers should access after purchase.
Enabling Purchase Unlock and selecting protected content.

5. Configure Access Settings

Set the conditions that determine when customers receive access and how long they can use it.

  • Order Status: Select whether access credentials are generated when the order reaches Processing or Completed.
  • Usage Limit: Sets the maximum number of times the password can be used. Leave blank for unlimited usage.
  • Quantity Based Usage Limit: Increases the allowed uses based on the quantity purchased.
  • Expiry: Sets how long the password remains valid in days, weeks, or months. Leave blank for no expiration.
  • Expiry Date Based on Purchased Quantity: Extends the access duration based on the quantity purchased.
  • Set Expiry Date on First Access: Starts the expiration period when the customer first accesses the protected content.
Configuring password usage limits and expiration settings.

6. Customize the Purchase Confirmation Message

The Purchase Confirmation Message shows customers the access information after purchase.

You can edit the default message and add or remove merge tags to control which access details customers see.

Available merge tags include:

  • {password_protected_site_url} — Inserts your website’s URL into the message.
  • {password_protected_page_url} — Inserts the permalink of the protected page or post linked to this product (password required unless the customer uses the bypass link).
  • {password_protected_password} — Displays the generated password for the selected page or post.
  • {password_protected_bypass_link} — Provides a direct link to access the protected content.
  • {password_protected_usage_limit} — Displays the allowed number of uses.
  • {password_protected_expiry} — Displays the password expiration information.

Under Display Message on Order Received page, choose where the message appears:

  • After Thank You Note
  • In Order Details Table
  • After Order Details Table

Note: Keep the password and bypass-link merge tags in your confirmation message so customers can receive their access details.

Customizing the purchase confirmation message and its display location.

7. Publish the Product

Once you’ve configured the access settings, click Publish to save your WooCommerce product.

Your product is now configured to provide access to the selected protected content when the required order status is reached.

How Customers Access Protected Content

After purchasing the product, customers receive their access credentials on the WooCommerce order confirmation page and through their order email.

The animation below shows a customer buying the product, receiving the password and bypass link, and opening the protected page:

Customer buying a WooCommerce product and receiving a password and bypass link to protected content.

Customers can access the protected content in two ways:

  • Bypass Link: Opens the protected page without requiring the customer to enter the password manually.
  • Password: Allows customers to visit the protected page and enter their generated password.

Access remains available according to the usage and expiration rules configured for the product.

Troubleshooting

  • Where do customers find their password after buying?
    On the WooCommerce order-received page and in their order email. The purchase confirmation message controls what they see.
  • Why Isn’t a Password Generated After Purchase?
    Check the WooCommerce order status. Access credentials are generated when the order reaches the status selected under Order Status.
    If Order Status is set to Completed, note that WooCommerce only completes orders automatically when every item is both virtual and downloadable. Orders for virtual-only products usually stay in Processing until you mark them Completed, so either complete the order manually or select Processing.
  • What happens when the password expires or reaches its usage limit?
    The customer can no longer use it to open the protected page. You can review remaining uses and expiry under Password Protected → Manage Passwords.
  • Can I sell several access durations for the same page?
    Yes. Use a WooCommerce variable product and give each variation its own price, usage limit, and expiry.

Need Help?

If you need assistance with configuring WooCommerce purchase access, contact our support team with details about any error messages you’re seeing. Your feedback is valuable in helping us improve the experience for everyone.

Share this Doc

How to Sell Protected Content Using a WooCommerce Simple Product

Or copy link

CONTENTS