flash

Cyber Monday Deal | Save 30% on Lifetime Plans!

How to Sell Protected Content Using a WooCommerce Variable Product

Estimated reading: 6 minutes 217 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 variable products.

You can offer different access options, such as a 7-day pass, a 30-day pass, or access to different protected pages, within a single product. Each variation can have its own price, protected content, usage limit, and expiration settings.

In this guide, you’ll learn how to create a variable product, configure purchase access for each variation, and test the purchase process.

Only need one price and one set of access rules? Use a WooCommerce simple 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.

Note: Each variation that provides access to protected content must be marked as Virtual.

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 Pages or Posts

  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 each 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 Variable Product

  1. From your WordPress dashboard, go to Products → Add New.
  2. Enter the product title and description.
  3. Under Product data, select Variable product.
Selecting Variable product as the product type in WooCommerce.
  1. Open the Attributes tab and add an attribute, such as Access Duration.
  2. Enter the available options, such as 7 Days, 30 Days, and 1 Year.
  3. Enable Used for variations and click Save attributes.
Adding product attributes for a WooCommerce variable product.

4. Generate Product Variations

  1. Open the Variations tab under Product data.
  2. Click Generate variations or add variations manually.
  3. Confirm the action to create your product variations.
Generating WooCommerce product variations from selected attributes.

5. Configure Each Variation as Virtual

Configure each variation separately to enable purchase-based access.

  1. Expand the variation you want to configure.
  2. Enter the price for that variation.
  3. Enable the Virtual checkbox.

Note: Unlike Simple Products, the Virtual option must be enabled individually for each variation that offers protected content.

Enabling the Virtual option for a WooCommerce product variation.

6. Enable Purchase Unlock for Each Variation

  1. Expand the variation and locate Password Protected Pro — Purchase Unlock.
  2. Enable Purchase Unlock.
  3. Under Unlock Content Type, select Individual Pages.
  4. In the Select Page dropdown, choose the protected page or post that customers will access after purchasing this variation.
Enabling Purchase Unlock and selecting protected content for a WooCommerce variation.

7. Configure Access Settings

Customize the access rules for each variation based on the access you’re offering.

  • 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 for a WooCommerce variation.

8. Customize the Purchase Confirmation Message

The Purchase Confirmation Message controls the access information displayed to customers after purchasing a variation.

You can customize the message and dd or remove merge tags to control which access details customers see.

  • {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.
  • {password_protected_bypass_link} — Provides a direct link to the protected content.
  • {password_protected_usage_limit} — Displays the allowed number of uses.
  • {password_protected_expiry} — Displays 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 receive their access details.

Customizing the purchase confirmation message, its merge tags and display location on the Order Received page.

9. Configure Remaining Variations

Repeat the configuration process for each additional variation.

Each variation can provide access to a different protected page or offer different usage limits and expiration periods for the same page.

10. Publish the Product

  1. Click Save changes at the bottom of the Variations panel.
  2. Click Publish to save the product.

Your WooCommerce variable product is now configured to provide access to protected content according to each variation’s settings.

How Customers Access Protected Content

When customers visit the product page, they can select their preferred variation, such as a 7-day or 30-day access pass.

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

Here’s how:

Customers Access Protected Content

Customers can access the protected content in two ways:

  • Direct Access Link: Opens the protected page without manually entering a password.
  • Password: Allows customers to enter the generated password on the protected page.

Access remains available according to the usage and expiration settings configured for the purchased variation.

Troubleshooting

Why Is the Password Protected Pro Tab Missing?
Make sure the selected variation has the Virtual checkbox enabled. Purchase Unlock settings are available only for virtual variations.

Why Are Variation Settings Not Saving?
For variable products, Purchase Unlock settings are located within each variation under the Variations tab, rather than in a separate Password Protected Pro tab.

Why Is the Protected Page Not Listed?
Click Save changes in the Variations panel before publishing or updating the main product.

Why Is the Password Not Generated After Purchase?
Make sure the page or post is published, its post type is enabled under Post Type Protection, and Advanced Protection is enabled.

Why Can’t the Customer Access the Protected Page?
Check that the WooCommerce order has reached the configured Order Status. Also confirm that Purchase Unlock is enabled and the correct protected page is selected for the purchased variation.

Why Customer Cannot Access the Protected Page?
The password may have expired or reached its usage limit.
Go to Password Protected → Manage Passwords and review the password’s usage and expiration details.

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 Variable Product

Or copy link

CONTENTS